/* ─── Mobinex Auth — Responsive SaaS themes ─── */

:root,
[data-theme="dark-neon"] {
  --auth-bg: #050508;
  --auth-bg-secondary: #0a0a12;
  --auth-surface: rgba(12, 12, 22, 0.85);
  --auth-surface-border: rgba(0, 245, 255, 0.18);
  --auth-text: #f0f4ff;
  --auth-text-muted: #8b95b8;
  --auth-accent: #00f5ff;
  --auth-accent-2: #a855f7;
  --auth-accent-glow: rgba(0, 245, 255, 0.35);
  --auth-accent-glow-2: rgba(168, 85, 247, 0.25);
  --auth-input-bg: rgba(255, 255, 255, 0.04);
  --auth-input-border: rgba(255, 255, 255, 0.1);
  --auth-input-focus: rgba(0, 245, 255, 0.45);
  --auth-btn-bg: linear-gradient(135deg, #00f5ff 0%, #6366f1 50%, #a855f7 100%);
  --auth-btn-text: #050508;
  --auth-hero-gradient: linear-gradient(145deg, #050508 0%, #0f0a1e 40%, #0a1628 100%);
  --auth-orb-1: rgba(0, 245, 255, 0.45);
  --auth-orb-2: rgba(168, 85, 247, 0.4);
  --auth-orb-3: rgba(99, 102, 241, 0.3);
  --auth-grid-line: rgba(0, 245, 255, 0.04);
  --auth-alert-danger-bg: rgba(239, 68, 68, 0.12);
  --auth-alert-danger-border: rgba(239, 68, 68, 0.35);
  --auth-alert-success-bg: rgba(34, 197, 94, 0.12);
  --auth-alert-success-border: rgba(34, 197, 94, 0.35);
}

[data-theme="midnight-ai"] {
  --auth-bg: #030712;
  --auth-bg-secondary: #0b1220;
  --auth-surface: rgba(11, 18, 32, 0.9);
  --auth-surface-border: rgba(56, 189, 248, 0.2);
  --auth-text: #e8f4ff;
  --auth-text-muted: #7da8c8;
  --auth-accent: #38bdf8;
  --auth-accent-2: #818cf8;
  --auth-accent-glow: rgba(56, 189, 248, 0.4);
  --auth-accent-glow-2: rgba(129, 140, 248, 0.3);
  --auth-input-bg: rgba(255, 255, 255, 0.03);
  --auth-input-border: rgba(56, 189, 248, 0.15);
  --auth-input-focus: rgba(56, 189, 248, 0.5);
  --auth-btn-bg: linear-gradient(135deg, #38bdf8, #6366f1);
  --auth-btn-text: #030712;
  --auth-hero-gradient: linear-gradient(160deg, #030712, #0c1929, #111827);
  --auth-orb-1: rgba(56, 189, 248, 0.5);
  --auth-orb-2: rgba(99, 102, 241, 0.35);
  --auth-orb-3: rgba(14, 165, 233, 0.25);
  --auth-grid-line: rgba(56, 189, 248, 0.05);
}

[data-theme="neon-purple"] {
  --auth-bg: #08050f;
  --auth-bg-secondary: #120a1e;
  --auth-surface: rgba(18, 10, 30, 0.88);
  --auth-surface-border: rgba(217, 70, 239, 0.22);
  --auth-text: #faf0ff;
  --auth-text-muted: #b08cc4;
  --auth-accent: #e879f9;
  --auth-accent-2: #c026d3;
  --auth-accent-glow: rgba(232, 121, 249, 0.4);
  --auth-accent-glow-2: rgba(192, 38, 211, 0.3);
  --auth-input-bg: rgba(255, 255, 255, 0.04);
  --auth-input-border: rgba(217, 70, 239, 0.18);
  --auth-input-focus: rgba(232, 121, 249, 0.5);
  --auth-btn-bg: linear-gradient(135deg, #e879f9, #c026d3, #7c3aed);
  --auth-btn-text: #08050f;
  --auth-hero-gradient: linear-gradient(145deg, #08050f, #1a0a2e, #0f0518);
  --auth-orb-1: rgba(232, 121, 249, 0.45);
  --auth-orb-2: rgba(124, 58, 237, 0.4);
  --auth-orb-3: rgba(192, 38, 211, 0.3);
  --auth-grid-line: rgba(217, 70, 239, 0.05);
}

[data-theme="emerald-neon"] {
  --auth-bg: #020a06;
  --auth-bg-secondary: #051410;
  --auth-surface: rgba(5, 20, 16, 0.9);
  --auth-surface-border: rgba(52, 211, 153, 0.2);
  --auth-text: #ecfdf5;
  --auth-text-muted: #6ee7b7;
  --auth-accent: #34d399;
  --auth-accent-2: #10b981;
  --auth-accent-glow: rgba(52, 211, 153, 0.4);
  --auth-accent-glow-2: rgba(16, 185, 129, 0.3);
  --auth-input-bg: rgba(255, 255, 255, 0.03);
  --auth-input-border: rgba(52, 211, 153, 0.15);
  --auth-input-focus: rgba(52, 211, 153, 0.5);
  --auth-btn-bg: linear-gradient(135deg, #34d399, #059669);
  --auth-btn-text: #020a06;
  --auth-hero-gradient: linear-gradient(160deg, #020a06, #042f1e, #064e3b);
  --auth-orb-1: rgba(52, 211, 153, 0.45);
  --auth-orb-2: rgba(16, 185, 129, 0.35);
  --auth-orb-3: rgba(5, 150, 105, 0.25);
  --auth-grid-line: rgba(52, 211, 153, 0.05);
}

[data-theme="light-saas"] {
  --auth-bg: #f8fafc;
  --auth-bg-secondary: #f1f5f9;
  --auth-surface: rgba(255, 255, 255, 0.95);
  --auth-surface-border: rgba(59, 130, 246, 0.15);
  --auth-text: #0f172a;
  --auth-text-muted: #64748b;
  --auth-accent: #3b82f6;
  --auth-accent-2: #6366f1;
  --auth-accent-glow: rgba(59, 130, 246, 0.2);
  --auth-accent-glow-2: rgba(99, 102, 241, 0.15);
  --auth-input-bg: #ffffff;
  --auth-input-border: #e2e8f0;
  --auth-input-focus: rgba(59, 130, 246, 0.35);
  --auth-btn-bg: linear-gradient(135deg, #3b82f6, #6366f1);
  --auth-btn-text: #ffffff;
  --auth-hero-gradient: linear-gradient(145deg, #eff6ff, #f8fafc, #ede9fe);
  --auth-orb-1: rgba(59, 130, 246, 0.25);
  --auth-orb-2: rgba(99, 102, 241, 0.2);
  --auth-orb-3: rgba(168, 85, 247, 0.15);
  --auth-grid-line: rgba(59, 130, 246, 0.06);
  --auth-alert-danger-bg: #fef2f2;
  --auth-alert-danger-border: #fecaca;
  --auth-alert-success-bg: #f0fdf4;
  --auth-alert-success-border: #bbf7d0;
}

* { box-sizing: border-box; }

html { color-scheme: dark; }
[data-theme="light-saas"] { color-scheme: light; }

body.auth-page {
  font-family: 'DM Sans', sans-serif;
  background: var(--auth-bg);
  color: var(--auth-text);
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* ─── Shell: Airbnb-style split ─── */
.auth-shell {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ─── Hero panel (desktop left) ─── */
.auth-hero {
  flex: 1;
  position: relative;
  background: var(--auth-hero-gradient);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 56px;
  overflow: hidden;
  border-right: 1px solid var(--auth-surface-border);
}

.auth-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--auth-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--auth-grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 75%);
  pointer-events: none;
}

.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: authOrbFloat 8s ease-in-out infinite;
}

.auth-orb--1 {
  width: 420px; height: 420px;
  background: var(--auth-orb-1);
  top: -10%; left: -5%;
}

.auth-orb--2 {
  width: 360px; height: 360px;
  background: var(--auth-orb-2);
  bottom: 5%; right: -8%;
  animation-delay: -3s;
}

.auth-orb--3 {
  width: 280px; height: 280px;
  background: var(--auth-orb-3);
  top: 40%; left: 30%;
  animation-delay: -5s;
}

@keyframes authOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -20px) scale(1.05); }
}

.auth-hero-content {
  position: relative;
  z-index: 1;
  max-width: 520px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
}

.auth-brand-icon {
  width: 52px;
  height: 52px;
  background: var(--auth-btn-bg);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--auth-btn-text);
  box-shadow: 0 0 30px var(--auth-accent-glow);
}

.auth-brand-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 4px;
  line-height: 1.2;
  padding-top: 2px;
  display: block;
  color: var(--auth-accent);
  background: linear-gradient(135deg, var(--auth-accent), var(--auth-accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-brand-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--auth-text-muted);
  margin-top: 2px;
}

.auth-hero-headline {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.auth-hero-headline span {
  background: linear-gradient(135deg, var(--auth-accent), var(--auth-accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-hero-sub {
  font-size: 16px;
  line-height: 1.65;
  color: var(--auth-text-muted);
  margin: 0 0 36px;
  max-width: 440px;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--auth-surface);
  border: 1px solid var(--auth-surface-border);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  transition: box-shadow 0.25s, border-color 0.25s;
}

.auth-feature:hover {
  border-color: var(--auth-accent);
  box-shadow: 0 0 24px var(--auth-accent-glow), inset 0 0 20px rgba(255,255,255,0.02);
}

.auth-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--auth-accent);
  flex-shrink: 0;
}

.auth-feature-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.auth-feature-text span {
  font-size: 12px;
  color: var(--auth-text-muted);
}

/* ─── Form panel (desktop right) ─── */
.auth-main {
  flex: 0 0 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 40px;
  position: relative;
  background: var(--auth-bg-secondary);
}

.auth-main-topbar {
  position: absolute;
  top: 20px;
  right: 20px;
  left: 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  z-index: 10;
}

/* ─── Glowing form card ─── */
.auth-glow-card {
  width: 100%;
  max-width: 400px;
  background: var(--auth-surface);
  border: 1px solid var(--auth-surface-border);
  border-radius: 24px;
  padding: 36px 32px 32px;
  backdrop-filter: blur(20px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03) inset,
    0 0 40px var(--auth-accent-glow),
    0 0 80px var(--auth-accent-glow-2),
    0 24px 48px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
}

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

.auth-glow-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--auth-accent), transparent);
  opacity: 0.6;
}

.auth-form-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.auth-form-subtitle {
  font-size: 14px;
  color: var(--auth-text-muted);
  margin: 0 0 28px;
}

.auth-form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--auth-text-muted);
  margin-bottom: 6px;
}

.auth-form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.auth-form-label-row .auth-form-label { margin-bottom: 0; }

.auth-form-label a {
  font-size: 12px;
  color: var(--auth-accent);
  text-decoration: none;
  font-weight: 500;
}

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

.auth-form-control {
  width: 100%;
  background: var(--auth-input-bg);
  border: 1px solid var(--auth-input-border);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 15px;
  color: var(--auth-text);
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.auth-form-control::placeholder { color: var(--auth-text-muted); opacity: 0.6; }

.auth-form-control:focus {
  border-color: var(--auth-accent);
  box-shadow: 0 0 0 3px var(--auth-input-focus), 0 0 20px var(--auth-accent-glow);
}

.auth-form-group { margin-bottom: 20px; }

.auth-btn-submit {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  background: var(--auth-btn-bg);
  color: var(--auth-btn-text);
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 24px var(--auth-accent-glow);
}

.auth-btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px var(--auth-accent-glow), 0 0 40px var(--auth-accent-glow-2);
}

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

.auth-footer-link {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--auth-text-muted);
}

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

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

/* ─── Signup form extras ─── */
.auth-section-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--auth-text-muted);
  font-weight: 600;
  margin: 20px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--auth-surface-border);
}

.auth-section-label:first-of-type {
  margin-top: 0;
}

.auth-required {
  color: var(--auth-accent);
}

.auth-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  opacity: 0.75;
}

.auth-field-error {
  font-size: 12px;
  color: #fca5a5;
  margin-top: 6px;
}

[data-theme="light-saas"] .auth-field-error {
  color: #dc2626;
}

.auth-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-form-group--compact {
  margin-bottom: 20px;
}

@media (max-width: 480px) {
  .auth-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .auth-form-group--compact {
    margin-bottom: 20px;
  }
}

.auth-alert {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 16px;
  border: 1px solid;
}

.auth-alert--danger {
  background: var(--auth-alert-danger-bg);
  border-color: var(--auth-alert-danger-border);
  color: #fca5a5;
}

[data-theme="light-saas"] .auth-alert--danger { color: #b91c1c; }

.auth-alert--success {
  background: var(--auth-alert-success-bg);
  border-color: var(--auth-alert-success-border);
  color: #86efac;
}

[data-theme="light-saas"] .auth-alert--success { color: #15803d; }

/* ─── Theme switcher ─── */
.theme-switcher {
  position: relative;
}

.theme-switcher-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--auth-surface);
  border: 1px solid var(--auth-surface-border);
  border-radius: 999px;
  color: var(--auth-text);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.theme-switcher-btn:hover {
  border-color: var(--auth-accent);
  box-shadow: 0 0 16px var(--auth-accent-glow);
}

.theme-switcher-btn i { font-size: 16px; color: var(--auth-accent); }

.theme-switcher-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  /* Fixed palette so labels stay readable in every theme */
  --panel-bg: #0f1117;
  --panel-text: #f1f5f9;
  --panel-text-muted: #94a3b8;
  --panel-border: rgba(255, 255, 255, 0.12);
  --panel-hover: rgba(255, 255, 255, 0.08);
  --panel-active-border: #38bdf8;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 200;
}

.theme-switcher.open .theme-switcher-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.theme-switcher-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--panel-text-muted);
  padding: 4px 8px 8px;
  font-weight: 600;
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--panel-text);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.theme-option:hover {
  background: var(--panel-hover);
  border-color: var(--panel-border);
  color: #ffffff;
}

.theme-option.active {
  border-color: var(--panel-active-border);
  background: rgba(56, 189, 248, 0.12);
  color: #ffffff;
}

.theme-swatch {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.theme-swatch--dark-neon {
  background: linear-gradient(135deg, #00f5ff, #a855f7);
}

.theme-swatch--midnight-ai {
  background: linear-gradient(135deg, #38bdf8, #6366f1);
}

.theme-swatch--neon-purple {
  background: linear-gradient(135deg, #e879f9, #7c3aed);
}

.theme-swatch--emerald-neon {
  background: linear-gradient(135deg, #34d399, #059669);
}

.theme-swatch--light-saas {
  background: linear-gradient(135deg, #3b82f6, #e2e8f0);
}

/* ─── Mobile brand strip (hidden on desktop) ─── */
.auth-mobile-brand {
  display: none;
}

/* ─── Responsive: mobile (Airbnb-style stacked) ─── */
@media (max-width: 900px) {
  .auth-shell {
    flex-direction: column;
  }

  .auth-hero {
    display: none;
  }

  .auth-mobile-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
    margin-bottom: 24px;
    width: 100%;
    max-width: 400px;
    padding-top: 4px;
    overflow: visible;
  }

  .auth-mobile-brand .auth-brand-icon {
    width: 44px;
    height: 44px;
    font-size: 20px;
    flex-shrink: 0;
  }

  .auth-mobile-brand .auth-brand-name {
    font-size: 24px;
    letter-spacing: 3px;
    line-height: 1.25;
    padding-top: 4px;
    overflow: visible;
  }

  .auth-mobile-brand .auth-brand-tag {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--auth-text-muted);
    margin-top: 2px;
  }

  .auth-main {
    flex: 1;
    width: 100%;
    padding: 24px 20px 40px;
    justify-content: flex-start;
    /* Clear fixed theme bar + safe area */
    padding-top: calc(64px + max(12px, env(safe-area-inset-top)));
    background: var(--auth-bg);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .auth-main-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    padding-top: max(12px, env(safe-area-inset-top));
    background: var(--auth-bg);
    border-bottom: 1px solid var(--auth-surface-border);
    z-index: 150;
  }

  .auth-glow-card {
    max-width: 100%;
    padding: 28px 22px 26px;
    border-radius: 20px;
    margin-top: 0;
  }

  .auth-glow-card--signup {
    max-width: 100%;
  }

  .auth-form-title { font-size: 20px; }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .auth-main { flex: 0 0 420px; padding: 28px; }
  .auth-hero { padding: 36px 40px; }
  .auth-features:not(.auth-features--hidden) { display: none; }
}

/* ─── Icon inputs ─── */
.auth-input-icon-wrap {
  position: relative;
}

.auth-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 17px;
  color: var(--auth-accent);
  opacity: 0.85;
  pointer-events: none;
  transition: transform 0.2s, opacity 0.2s;
}

.auth-form-control--icon {
  padding-left: 46px;
}

.otp-input-field {
  font-family: 'Rajdhani', sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 12px;
  text-align: center;
  padding: 14px 16px;
}

.auth-input-icon-wrap:focus-within .auth-input-icon {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

/* ─── Entrance animation ─── */
@keyframes authFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.auth-form-enter {
  animation: authFadeUp 0.45s ease-out both;
}

/* ─── Hero visual (wizard desktop) ─── */
.auth-hero-visual {
  display: none;
  margin: 32px 0 0;
}

.auth-hero-headline,
.auth-hero-sub {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.wizard-hero-icon-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--auth-surface);
  border: 1px solid var(--auth-surface-border);
  box-shadow: 0 0 40px var(--auth-accent-glow), 0 0 80px var(--auth-accent-glow-2);
  animation: wizardRingPulse 3s ease-in-out infinite;
}

.wizard-hero-icon {
  font-size: 48px;
  color: var(--auth-accent);
  transition: transform 0.3s ease;
}

.wizard-hero-icon.wizard-icon-pop {
  animation: wizardIconPop 0.4s ease;
}

@keyframes wizardRingPulse {
  0%, 100% { box-shadow: 0 0 40px var(--auth-accent-glow), 0 0 80px var(--auth-accent-glow-2); }
  50%       { box-shadow: 0 0 60px var(--auth-accent-glow), 0 0 100px var(--auth-accent-glow-2); }
}

@keyframes wizardIconPop {
  0%   { transform: scale(0.85); opacity: 0.6; }
  60%  { transform: scale(1.12); }
  100% { transform: scale(1); opacity: 1; }
}

.auth-features--hidden {
  display: none !important;
}

/* ─── Signup wizard ─── */
.wizard-wrap {
  width: 100%;
}

.wizard-progress-bar {
  height: 3px;
  background: var(--auth-input-border);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 16px;
}

.wizard-progress-fill {
  height: 100%;
  width: 20%;
  background: var(--auth-btn-bg);
  border-radius: 99px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px var(--auth-accent-glow);
}

.wizard-progress-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 8px;
}

.wizard-progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--auth-input-border);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.wizard-progress-dot.active {
  background: var(--auth-accent);
  transform: scale(1.3);
  box-shadow: 0 0 10px var(--auth-accent-glow);
}

.wizard-progress-dot.done {
  background: var(--auth-accent-2);
  opacity: 0.7;
}

.wizard-step-counter {
  text-align: center;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--auth-text-muted);
  margin: 0 0 24px;
  font-weight: 600;
}

.wizard-step {
  display: none;
  text-align: center;
}

.wizard-step.active {
  display: block;
  animation: wizardStepIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.wizard-step.exit-back {
  animation: wizardStepOutBack 0.28s ease both;
}

.wizard-step.exit-forward {
  animation: wizardStepOutForward 0.28s ease both;
}

@keyframes wizardStepIn {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes wizardStepOutBack {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(24px); }
}

@keyframes wizardStepOutForward {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-24px); }
}

.wizard-step-icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--auth-surface-border);
  box-shadow: 0 0 24px var(--auth-accent-glow);
}

.wizard-step-icon-wrap--sm {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
}

.wizard-step-icon {
  font-size: 32px;
  color: var(--auth-accent);
}

.wizard-step-icon-wrap--sm .wizard-step-icon {
  font-size: 24px;
}

.wizard-step-title {
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.wizard-step-desc {
  font-size: 14px;
  color: var(--auth-text-muted);
  margin: 0 0 28px;
  line-height: 1.5;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.wizard-step .auth-input-icon-wrap {
  text-align: left;
  max-width: 400px;
  margin: 0 auto;
}

.wizard-error {
  background: var(--auth-alert-danger-bg);
  border: 1px solid var(--auth-alert-danger-border);
  color: #fca5a5;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 16px;
  text-align: center;
}

[data-theme="light-saas"] .wizard-error { color: #b91c1c; }

.wizard-shake {
  animation: wizardShake 0.4s ease;
}

@keyframes wizardShake {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-6px); }
  75%       { transform: translateX(6px); }
}

.wizard-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.wizard-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
}

.wizard-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.wizard-btn--ghost {
  background: transparent;
  border: 1px solid var(--auth-surface-border);
  color: var(--auth-text-muted);
  flex: 0 0 auto;
}

.wizard-btn--ghost:hover:not(:disabled) {
  border-color: var(--auth-accent);
  color: var(--auth-text);
}

.wizard-btn--skip {
  background: transparent;
  color: var(--auth-text-muted);
  font-size: 13px;
  padding: 13px 12px;
  margin-left: auto;
  border: none;
}

.wizard-btn--skip:hover { color: var(--auth-accent); }

.wizard-btn--skip[hidden] {
  display: none !important;
}

.wizard-btn--primary {
  background: var(--auth-btn-bg);
  color: var(--auth-btn-text);
  flex: 1;
  box-shadow: 0 4px 20px var(--auth-accent-glow);
}

.wizard-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px var(--auth-accent-glow);
}

.wizard-btn--submit {
  flex: 1;
}

.wizard-footer {
  margin-top: 28px;
}

/* ─── Wizard desktop layout (Airbnb onboarding) ─── */
@media (min-width: 901px) {
  .auth-shell--wizard .auth-hero-visual {
    display: block;
  }

  .auth-shell--wizard .auth-main {
    flex: 1;
    max-width: 560px;
    justify-content: center;
    padding: 48px 56px;
  }

  .auth-shell--wizard .auth-glow-card--wizard {
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    max-width: 480px;
    padding: 0;
    overflow: visible;
  }

  .auth-shell--wizard .auth-glow-card--wizard::before {
    display: none;
  }

  .auth-shell--wizard .auth-hero {
    flex: 1.1;
    justify-content: center;
  }

  .auth-shell--wizard .auth-hero-headline {
    font-size: clamp(32px, 3vw, 44px);
    max-width: 480px;
  }

  .auth-shell--wizard .wizard-step-title {
    font-size: 32px;
    text-align: left;
  }

  .auth-shell--wizard .wizard-step-desc {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }

  .auth-shell--wizard .wizard-step {
    text-align: left;
  }

  .auth-shell--wizard .wizard-step-icon-wrap {
    margin: 0 0 24px;
  }

  .auth-shell--wizard .wizard-step .auth-input-icon-wrap {
    margin: 0;
    max-width: 100%;
  }

  .auth-shell--wizard .wizard-progress-dots {
    justify-content: flex-start;
  }

  .auth-shell--wizard .wizard-step-counter {
    text-align: left;
  }

  .auth-shell--wizard .wizard-nav {
    max-width: 100%;
  }

  .auth-shell--wizard .wizard-footer {
    text-align: left;
  }
}

@media (max-width: 900px) {
  .auth-shell--wizard .wizard-step-title {
    font-size: 22px;
  }

  .auth-shell--wizard .wizard-nav {
    flex-wrap: wrap;
  }

  .auth-shell--wizard .wizard-btn--primary,
  .auth-shell--wizard .wizard-btn--submit {
    width: 100%;
    order: 3;
    flex: 1 1 100%;
  }

  .auth-shell--wizard .wizard-btn--ghost {
    order: 1;
  }

  .auth-shell--wizard .wizard-btn--skip {
    order: 2;
    margin-left: 0;
  }
}

