/**
 * Clipixy Auth Pages - Login, Register, Verify Email
 * Design inspired by exilevoice, using Clipixy branding
 */

 body.auth-page {
  padding: 0;
  margin: 0;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  padding: 2rem;
  padding-inline: 2rem;
  position: relative;
  overflow-x: hidden;
  box-sizing: border-box;
}

.auth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.auth-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #061A2F 0%, #0C2D4A 35%, #1a4a6b 70%, #061A2F 100%);
}

.auth-bg-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

.auth-bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,89,0.12) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  animation: auth-glow 8s ease-in-out infinite alternate;
}

@keyframes auth-glow {
  from { transform: scale(1) translate(0, 0); opacity: 0.6; }
  to { transform: scale(1.2) translate(-50px, 50px); opacity: 1; }
}

.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  min-width: 0;
  box-sizing: border-box;
}

.auth-card.auth-card-wide {
  max-width: 440px;
}

.auth-card-inner {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2.5rem;
  padding-inline: 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255,255,255,0.1);
  box-sizing: border-box;
}

.auth-logo {
  display: block;
  height: 48px;
  width: auto;
  margin: 0 auto 1.5rem auto;
  object-fit: contain;
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.25rem 0;
  letter-spacing: -0.02em;
  text-align: center;
}

.auth-subtitle {
  font-size: 0.9rem;
  color: #6b6b6b;
  margin-bottom: 1.5rem;
  text-align: center;
}

.auth-success {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  color: #047857;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.auth-success svg { flex-shrink: 0; }

.auth-error {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  color: #b91c1c;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.auth-error svg { flex-shrink: 0; }

.auth-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  color: #1d4ed8;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.auth-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.4rem;
}

.auth-field input {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  border: 1.5px solid #e8e8e8;
  border-radius: 10px;
  background: #ffffff;
  color: #1a1a1a;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.auth-field input::placeholder {
  color: #9ca3af;
}

.auth-field input:focus {
  outline: none;
  border-color: #0C2D4A;
  box-shadow: 0 0 0 4px rgba(12, 45, 74, 0.1);
}

.auth-field input:read-only {
  background: #f5f5f5;
  cursor: not-allowed;
  opacity: 0.9;
}

.auth-btn {
  width: 100%;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #FF6B59 0%, #e55a4a 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(255, 107, 89, 0.4);
}

.auth-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 107, 89, 0.5);
}

.auth-btn:active {
  transform: translateY(0);
}

.auth-btn svg {
  transition: transform 0.2s;
}

.auth-btn:hover svg {
  transform: translateX(4px);
}

.auth-footer {
  margin-top: 1.5rem;
  text-align: center;
}

.auth-footer p {
  font-size: 0.9rem;
  color: #6b6b6b;
}

.auth-footer a {
  color: #FF6B59;
  font-weight: 600;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.auth-footer-small {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: #9ca3af;
}

/* Verify code input - large centered */
.auth-code-input {
  width: 100%;
  padding: 1rem;
  font-size: 1.5rem;
  text-align: center;
  letter-spacing: 0.5em;
  border: 1.5px solid #e8e8e8;
  border-radius: 10px;
  background: #ffffff;
  color: #1a1a1a;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-code-input:focus {
  outline: none;
  border-color: #0C2D4A;
  box-shadow: 0 0 0 4px rgba(12, 45, 74, 0.1);
}

.auth-code-input::placeholder {
  color: #9ca3af;
}

.auth-link {
  color: #FF6B59;
  font-weight: 600;
  text-decoration: none;
}

.auth-link:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .auth-page {
    padding-inline: 1.25rem;
  }
  .auth-card-inner {
    padding: 1.75rem;
    padding-inline: 1.75rem;
    margin:1rem;
  }
}
