/* ============================================================
   AUTH PAGES — PREMIUM STYLES v2.0
   Login, Signup, Forgot Password, Reset, Verify
   ============================================================ */

/* ---- Auth Layout ---- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem 3rem;
  position: relative;
  overflow: hidden;
}

.auth-page::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(0, 229, 255, 0.06) 0%, transparent 65%);
  pointer-events: none;
}

.auth-page::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 50%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.07) 0%, transparent 65%);
  pointer-events: none;
}

.auth-container {
  width: 100%;
  max-width: 440px;
  animation: fadeInUp 0.5s ease;
  position: relative;
  z-index: 1;
}

/* ---- Auth Card ---- */
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 2.75rem 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 60px rgba(0, 229, 255, 0.05);
  backdrop-filter: blur(20px);
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.auth-card::after {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.04), transparent 70%);
  pointer-events: none;
}

[data-theme="light"] .auth-card {
  box-shadow: var(--shadow), 0 0 60px rgba(0, 102, 255, 0.04);
}

[data-theme="light"] .auth-card::after {
  background: radial-gradient(circle, rgba(0, 102, 255, 0.04), transparent 70%);
}

/* ---- Auth Header ---- */
.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  margin-bottom: 1.5rem;
}

.auth-logo .logo-placeholder {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.78rem;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 229, 255, 0.3);
  letter-spacing: 0;
}

.auth-logo span {
  font-weight: 800;
  font-size: 1.05rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.04em;
}

.auth-title {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.auth-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ---- Error/Success Banners ---- */
.auth-error-banner,
.auth-success-banner {
  display: none;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

.auth-error-banner.visible,
.auth-success-banner.visible {
  display: flex;
}

.auth-error-banner {
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.22);
  color: var(--accent-3);
}

.auth-success-banner {
  background: rgba(0, 229, 255, 0.07);
  border: 1px solid rgba(0, 229, 255, 0.22);
  color: var(--accent-primary);
}

[data-theme="light"] .auth-error-banner { color: #cc2244; }
[data-theme="light"] .auth-success-banner { color: var(--accent-primary); }

/* ---- Auth Form ---- */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.auth-submit {
  margin-top: 1.25rem;
  height: 48px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* ---- Auth Footer ---- */
.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.auth-footer a {
  color: var(--accent-primary);
  font-weight: 600;
  text-decoration: none;
}

.auth-footer a:hover {
  color: var(--accent-secondary);
  text-decoration: underline;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

/* ---- Password Strength ---- */
.password-strength { margin-top: 0.5rem; }

.strength-bar {
  height: 3px;
  background: var(--border-subtle);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.3rem;
}

.strength-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.35s ease, background 0.35s ease;
  width: 0;
}

.strength-fill.weak   { background: var(--accent-3); width: 25%; }
.strength-fill.fair   { background: var(--accent-gold); width: 50%; }
.strength-fill.good   { background: var(--accent-primary); width: 75%; }
.strength-fill.strong { background: var(--accent-primary); width: 100%; box-shadow: 0 0 8px rgba(0, 229, 255, 0.4); }

.strength-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ---- OTP / Code Input ---- */
.otp-container {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 1rem 0;
}

.otp-input {
  width: 48px; height: 56px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  font-family: var(--font-mono);
  background: var(--bg-input);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}

.otp-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
  background: rgba(0, 229, 255, 0.04);
}

/* ---- Verify Card ---- */
.verify-card {
  text-align: center;
  padding: 1rem 0;
}

.verify-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.verify-card h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.verify-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* ---- Spinner in button ---- */
.btn .spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}

/* ---- Step Indicator (signup) ---- */
.auth-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.auth-step {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.auth-step.active { color: var(--accent-primary); }
.auth-step.done   { color: var(--accent-primary); }

.step-dot {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bg-input);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  flex-shrink: 0;
  transition: var(--transition);
}

.auth-step.active .step-dot {
  background: rgba(0, 229, 255, 0.1);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
}

.auth-step.done .step-dot {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
}

.step-connector-line {
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
  max-width: 40px;
}

/* ---- Admin Badge ---- */
.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
  .auth-card {
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
  }
  .auth-title { font-size: 1.4rem; }
  .otp-input { width: 40px; height: 48px; font-size: 1.2rem; }
}
