:root {
  --bg: #080e1a;
  --surface: rgba(255, 255, 255, 0.97);
  --surface-strong: #ffffff;
  --text-strong: #0b1220;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-on-dark: #f1f5f9;
  --text-on-dark-muted: #94a3b8;
  --input-bg: #f1f5f9;
  --input-bg-focus: #ffffff;
  --input-border: #e2e8f0;
  --accent: #f59e0b;
  --accent-strong: #d97706;
  --accent-deep: #92400e;
  --accent-glow: rgba(245, 158, 11, 0.22);
  --success: #16a34a;
  --danger: #dc2626;
  --panel-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
  width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text-main);
  background: var(--bg);
  touch-action: pan-y pinch-zoom;
}

body.email-verify-open,
body.account-recovery-open,
body.onboarding-open {
  overflow: hidden;
}

/* ── Scene ─────────────────────────────────────────────── */
.auth-shell {
  position: relative;
  min-height: 100vh;
  padding: 24px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-scene {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background: radial-gradient(ellipse at 20% 20%, rgba(56, 189, 248, 0.1) 0%, transparent 40%),
              radial-gradient(ellipse at 80% 10%, rgba(245, 158, 11, 0.12) 0%, transparent 38%),
              radial-gradient(ellipse at 50% 90%, rgba(15, 23, 42, 0.8) 0%, transparent 50%),
              linear-gradient(160deg, #0b1220 0%, #0f172a 50%, #080e1a 100%);
}

.scene-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;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, transparent 70%);
  pointer-events: none;
}

.scene-gradient,
.scene-glass {
  position: absolute;
  pointer-events: none;
}

.scene-gradient {
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.7;
}

.scene-gradient-one {
  top: 5vh; left: -8vw;
  width: 400px; height: 400px;
  background: rgba(56, 189, 248, 0.14);
}

.scene-gradient-two {
  top: 10vh; right: 2vw;
  width: 360px; height: 360px;
  background: rgba(245, 158, 11, 0.14);
}

.scene-gradient-three {
  bottom: -8vh; left: 20vw;
  width: 500px; height: 300px;
  background: rgba(59, 130, 246, 0.08);
}

.scene-glass {
  border-radius: 36px;
  border: 1px solid rgba(255,255,255,0.07);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.scene-glass-one {
  top: 10vh; left: 4vw;
  width: 200px; height: 200px;
  transform: rotate(-16deg);
}

.scene-glass-two {
  top: 20vh; right: 6vw;
  width: 260px; height: 100px;
  border-radius: 999px;
  transform: rotate(8deg);
}

.scene-glass-three {
  bottom: 8vh; left: 10vw;
  width: 300px; height: 160px;
  transform: rotate(12deg);
}

/* ── Stage ──────────────────────────────────────────────── */
.auth-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
}

.auth-switcher {
  position: relative;
  width: 100%;
  min-height: 680px;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(11, 18, 32, 0.2);
  box-shadow: var(--panel-shadow);
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.auth-switcher::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.03), transparent 50%);
  pointer-events: none;
  border-radius: inherit;
}

/* ── Panels ─────────────────────────────────────────────── */
.auth-form-panel,
.auth-story-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-form-panel {
  left: 0;
  width: 58%;
  padding: 20px;
  z-index: 2;
}

.auth-story-panel {
  left: 58%;
  width: 42%;
  padding: 40px 36px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: var(--text-on-dark);
  overflow: hidden;
  border-left: 1px solid rgba(255,255,255,0.07);
  background:
    radial-gradient(ellipse at 10% 0%, rgba(245, 158, 11, 0.2) 0%, transparent 40%),
    radial-gradient(ellipse at 90% 100%, rgba(56, 189, 248, 0.12) 0%, transparent 40%),
    linear-gradient(160deg, rgba(11, 18, 32, 0.98) 0%, rgba(15, 23, 42, 0.97) 100%);
}

/* Login mode transitions */
.auth-switcher.is-login-mode .auth-form-panel {
  transform: translateX(72.4138%);
}

.auth-switcher.is-login-mode .auth-story-panel {
  transform: translateX(-138.0953%);
}

.auth-switcher.is-login-mode #authProgressStrip {
  display: none;
}

/* ── Form inner ─────────────────────────────────────────── */
.form-panel-inner {
  position: relative;
  height: 100%;
  min-height: 100%;
  padding: 32px 36px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 20px 60px rgba(0,0,0,0.14);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.form-panel-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,0.7);
  pointer-events: none;
}

.panel-glow {
  position: absolute;
  bottom: -60px;
  left: 15%;
  right: 15%;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.18), transparent 70%);
  filter: blur(28px);
  pointer-events: none;
}

.registration-form {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Panel header ───────────────────────────────────────── */
.panel-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-container img {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.2);
}

.logo-copy {
  display: grid;
  gap: 3px;
}

.logo-kicker {
  margin: 0;
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.logo-title {
  color: var(--text-strong);
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.panel-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  background: rgba(255, 247, 237, 0.9);
  color: var(--accent-deep);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Panel title ────────────────────────────────────────── */
.panel-copy {
  display: grid;
  gap: 4px;
}

#form-title {
  margin: 0;
  color: var(--text-strong);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1;
  letter-spacing: -0.05em;
}

#form-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

/* ── Progress strip ─────────────────────────────────────── */
.flow-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.flow-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(15, 23, 42, 0.03);
  color: var(--text-muted);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.flow-pill-number {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.07);
  color: var(--text-main);
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

.flow-pill-label {
  font-size: 12px;
  font-weight: 700;
}

.flow-pill.is-active {
  border-color: rgba(245, 158, 11, 0.28);
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.95), rgba(239, 246, 255, 0.95));
  color: var(--text-strong);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.1);
}

.flow-pill.is-active .flow-pill-number {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.25), rgba(56, 189, 248, 0.18));
  color: var(--accent-deep);
}

/* ── Form grid ──────────────────────────────────────────── */
.form-grid {
  display: grid;
  gap: 12px;
}

.form-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.name-group,
.compact-pair {
  min-width: 0;
}

.compact-pair.form-grid-two {
  align-items: start;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label,
.choice-custom-field label {
  display: block;
  color: var(--text-main);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.field-help {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.55;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transform: translateY(-50%);
  pointer-events: none;
}

.input-icon svg {
  width: 100%;
  height: 100%;
}

input,
select {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px 14px 44px;
  border-radius: 14px;
  border: 1.5px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text-strong);
  font: inherit;
  font-size: 14.5px;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

input::placeholder {
  color: #a0aec0;
}

select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

select option {
  color: var(--text-strong);
}

input:focus,
select:focus,
.choice-custom-field input:focus {
  outline: none;
  border-color: rgba(245, 158, 11, 0.38);
  background: var(--input-bg-focus);
  box-shadow: 0 0 0 3.5px rgba(245, 158, 11, 0.1);
}

.field-stack {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* ── Verification pill ──────────────────────────────────── */
.verification-pill {
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.95);
  border: 1px solid rgba(245, 158, 11, 0.16);
  color: var(--accent-deep);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
}

.verification-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
  flex-shrink: 0;
}

.verification-pill[data-state="info"]    { color: #0ea5e9; }
.verification-pill[data-state="success"] { color: var(--success); }
.verification-pill[data-state="error"]   { color: var(--danger); }

/* ── Buttons ────────────────────────────────────────────── */
.reg-btn,
.google-btn,
.verification-btn,
.ghost-btn,
.profile-secondary-btn,
.profile-completion-submit,
.story-switch-btn {
  border: none;
  border-radius: 14px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease,
    opacity 0.16s ease;
}

.reg-btn {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #0b1220;
  font-size: 15px;
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.3);
}

.reg-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(245, 158, 11, 0.34);
}

.verification-btn:hover,
.google-btn:hover,
.ghost-btn:hover,
.profile-secondary-btn:hover,
.profile-completion-submit:hover,
.story-switch-btn:hover {
  transform: translateY(-1px);
}

.reg-btn:disabled,
.verification-btn:disabled,
.google-btn:disabled,
.ghost-btn:disabled,
.profile-secondary-btn:disabled,
.profile-completion-submit:disabled,
.story-switch-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── Divider ────────────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 12px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(148, 163, 184, 0.2);
}

.divider span {
  padding: 0 4px;
}

/* ── Google btn ─────────────────────────────────────────── */
.google-btn {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(255,255,255,0.9);
  border: 1.5px solid rgba(148, 163, 184, 0.2);
  color: var(--text-strong);
  font-size: 14.5px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07);
}

.google-btn:hover {
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.1);
}

.google-ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ── Row links ──────────────────────────────────────────── */
.row-links {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.row-links a {
  color: var(--accent-strong);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
}

.row-links a:hover,
#loginBtn:hover {
  text-decoration: underline;
}

.row-links.row-links-legal {
  flex-wrap: wrap;
  justify-content: space-between;
  row-gap: 8px;
}

.auth-legal-note {
  margin: -2px 0 0;
  color: rgba(30, 41, 59, 0.72);
  font-size: 12px;
  line-height: 1.6;
}

.auth-legal-note a {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: none;
}

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

#forgotLink {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  background: rgba(255, 247, 237, 0.95);
}

#forgotLink:hover {
  text-decoration: none;
  background: rgba(255, 247, 237, 1);
}

.panel-footer {
  margin: 0;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

#loginBtn {
  color: var(--accent-strong);
  font-weight: 800;
  cursor: pointer;
}

/* ── Story panel ────────────────────────────────────────── */
.story-shine,
.story-grid {
  position: absolute;
  pointer-events: none;
}

.story-shine {
  inset: -10% auto auto -10%;
  width: 260px;
  height: 200px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.28), transparent 68%);
  filter: blur(28px);
  opacity: 0.7;
}

.story-grid {
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.6), transparent 86%);
  opacity: 0.5;
}

.story-track {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  width: 200%;
  display: flex;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-switcher.is-login-mode .story-track {
  transform: translateX(-50%);
}

.story-face {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 24px;
  padding-right: 0;
}

.story-face-signup,
.story-face-login {
  min-width: 0;
}

.story-copy {
  display: grid;
  gap: 12px;
}

.story-kicker {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fde68a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.story-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.story-copy h3 {
  margin: 0;
  color: var(--text-on-dark);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(28px, 2.4vw, 36px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.story-copy p {
  margin: 0;
  color: var(--text-on-dark-muted);
  font-size: 14px;
  line-height: 1.7;
  max-width: 30ch;
}

/* Simplified stat grid – 2 columns max */
.story-signal-row,
.story-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.story-signal-pill {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.09);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.story-signal-pill strong {
  display: block;
  color: #fff;
  font-size: 14px;
  line-height: 1.25;
}

.story-signal-pill span {
  display: block;
  margin-top: 5px;
  color: var(--text-on-dark-muted);
  font-size: 11.5px;
  line-height: 1.4;
}

.story-stat {
  padding: 16px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.09);
}

.story-stat strong {
  display: block;
  color: #fef3c7;
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
}

.story-stat span {
  display: block;
  margin-top: 8px;
  color: var(--text-on-dark-muted);
  font-size: 11.5px;
  line-height: 1.45;
}

/* ── Story footer ───────────────────────────────────────── */
.story-footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-top: auto;
}

.story-footer p {
  margin: 0;
  color: var(--text-on-dark-muted);
  font-size: 12.5px;
  line-height: 1.65;
}

.story-switch-btn {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.05);
  color: #ffffff;
  font-size: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.story-switch-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.26);
}

/* ── Overlays ───────────────────────────────────────────── */
.email-verify-overlay[hidden],
.onboarding-overlay[hidden],
.profile-completion-overlay[hidden] {
  display: none;
}

.email-verify-overlay,
.onboarding-overlay,
.profile-completion-overlay {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overscroll-behavior-x: none;
  touch-action: pan-y pinch-zoom;
}

.email-verify-modal,
.profile-completion-card,
.onboarding-modal {
  position: relative;
  width: min(100%, 540px);
  padding: 30px;
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(248,250,252,0.94));
  box-shadow: 0 30px 80px rgba(0,0,0,0.28);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.email-verify-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(255,255,255,0.9);
  color: var(--text-main);
  cursor: pointer;
}

.email-verify-close svg {
  width: 17px;
  height: 17px;
}

.email-verify-step,
.onboarding-badge,
.profile-completion-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.95);
  border: 1px solid rgba(245, 158, 11, 0.18);
  color: var(--accent-deep);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.email-verify-step-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.email-verify-modal h3,
.profile-completion-header h3,
.onboarding-head-copy h3 {
  margin: 14px 0 8px;
  color: var(--text-strong);
  font-family: "Space Grotesk", sans-serif;
  font-size: 30px;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.email-verify-copy,
.profile-completion-copy,
.profile-completion-email,
#onboardingCaption {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}

.email-verify-summary {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(15, 23, 42, 0.03);
  margin: 14px 0;
}

.email-verify-summary-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.email-verify-summary-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  color: var(--text-strong);
  letter-spacing: -0.03em;
}

.email-verify-summary-detail {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

.email-verify-group {
  margin-top: 0;
}

.verification-status {
  min-height: 24px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 4px 0 0;
}

.verification-status.is-error   { color: var(--danger); }
.verification-status.is-success { color: var(--success); }
.verification-status.is-info    { color: #0ea5e9; }

.email-verify-actions,
.profile-completion-actions,
.onboarding-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.verification-btn,
.ghost-btn,
.profile-secondary-btn {
  min-height: 50px;
  padding: 0 20px;
  font-size: 14px;
}

.verification-btn {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #0b1220;
  flex: 1;
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.25);
}

.verification-btn-secondary {
  background: rgba(15, 23, 42, 0.05);
  border: 1.5px solid rgba(148, 163, 184, 0.18);
  color: var(--text-main);
  flex: none;
  box-shadow: none;
}

.ghost-btn,
.profile-secondary-btn {
  background: rgba(15, 23, 42, 0.05);
  border: 1.5px solid rgba(148, 163, 184, 0.18);
  color: var(--text-main);
}

.input-wrapper-code input {
  text-align: center;
  letter-spacing: 0.25em;
  font-size: 20px;
  font-weight: 700;
}

/* ── Profile completion ─────────────────────────────────── */
.profile-completion-header {
  display: grid;
  gap: 8px;
}

.profile-completion-avatar-wrap {
  display: flex;
  justify-content: center;
  padding: 12px 0;
}

.profile-completion-avatar {
  width: 90px;
  height: 90px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(251,191,36,0.16), rgba(56,189,248,0.14));
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 20px;
  overflow: hidden;
}

.profile-completion-avatar.has-photo { background: #fff; }

.profile-completion-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-completion-form .form-group {
  margin-bottom: 12px;
}

.profile-completion-submit {
  min-height: 52px;
  padding: 0 18px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #0b1220;
}

/* ── Onboarding ─────────────────────────────────────────── */
.onboarding-modal {
  width: min(100%, 700px);
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.onboarding-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.onboarding-progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  overflow: hidden;
}

.onboarding-progress-bar span {
  display: block;
  width: 16.66%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  transition: width 0.26s ease;
}

.onboarding-body {
  margin-top: 20px;
}

.onboarding-screen {
  display: none;
}

.onboarding-screen.is-active {
  display: block;
  animation: onboarding-fade 0.22s ease;
}

@keyframes onboarding-fade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.welcome-card {
  min-height: 260px;
  display: grid;
  place-items: center;
  gap: 20px;
  padding: 28px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top, rgba(245, 158, 11, 0.12), transparent 40%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.92));
  border: 1px solid rgba(245, 158, 11, 0.12);
  text-align: center;
}

.welcome-mark {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(251,191,36,0.16), rgba(56,189,248,0.14));
  box-shadow: 0 16px 36px rgba(245, 158, 11, 0.16);
}

.welcome-mark img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 16px;
}

.welcome-copy h4 {
  margin: 0 0 8px;
  color: var(--text-strong);
  font-family: "Space Grotesk", sans-serif;
  font-size: 26px;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.welcome-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.68;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.choice-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-card {
  position: relative;
  display: flex;
  min-height: 108px;
  padding: 16px;
  border-radius: 20px;
  border: 1.5px solid rgba(148, 163, 184, 0.16);
  background: rgba(255,255,255,0.9);
  cursor: pointer;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.choice-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.2);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.07);
}

.choice-card:has(.choice-input:checked) {
  border-color: rgba(245, 158, 11, 0.3);
  background: linear-gradient(180deg, rgba(255,251,235,0.97), rgba(239,246,255,0.97));
  box-shadow: 0 18px 32px rgba(245, 158, 11, 0.1);
}

.choice-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.choice-copy strong {
  color: var(--text-strong);
  font-size: 16px;
  line-height: 1.2;
}

.choice-copy small {
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.choice-custom-field {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(255,255,255,0.94);
}

.choice-custom-field input {
  min-height: 50px;
  padding: 13px 15px;
}

.onboarding-back  { min-width: 100px; }
.onboarding-next  { width: auto; min-width: 170px; }

/* ── Responsive: 980px → stack but story is BG decoration ── */
@media (max-width: 720px) {
  .auth-shell {
    padding: 16px;
    align-items: flex-start;
    min-height: 100vh;
  }

  .auth-stage {
    min-height: auto;
  }

  /* Switcher becomes a single-column card */
  .auth-switcher {
    min-height: auto;
    border-radius: 28px;
    overflow: hidden;
    background: rgba(11, 18, 32, 0.3);
  }

  /* Form panel takes full width */
  .auth-form-panel {
    position: relative;
    inset: auto;
    width: 100%;
    left: auto; top: auto; bottom: auto;
    transform: none !important;
    padding: 0;
    z-index: 2;
  }

  /* Story panel: fixed decorative background behind everything */
  .auth-story-panel {
    position: fixed;
    inset: 0;
    width: 100%;
    left: auto; top: auto; bottom: auto;
    transform: none !important;
    z-index: 0;
    pointer-events: none;
    opacity: 0.18;
    border-left: none;
    border-radius: 0;
    padding: 40px;
    justify-content: center;
    align-items: center;
  }

  /* Make the switcher z-ordering work */
  .auth-switcher {
    position: relative;
    isolation: isolate;
    overflow: visible;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  /* The form inner gets its own shadow */
  .form-panel-inner {
    border-radius: 24px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.28);
  }

  .panel-topline { flex-wrap: wrap; gap: 10px; }

  .flow-strip,
  .compact-pair,
  .form-grid-two,
  .choice-grid,
  .choice-grid-two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .auth-shell { padding: 12px; }

  .form-panel-inner,
  .email-verify-modal,
  .profile-completion-card,
  .onboarding-modal {
    padding: 22px;
    border-radius: 22px;
  }

  .logo-container img { width: 46px; height: 46px; }

  #form-title,
  .email-verify-modal h3,
  .profile-completion-header h3,
  .onboarding-head-copy h3 {
    font-size: 26px;
  }

  .story-footer { padding: 16px; }
}

@media (max-width: 560px) {
  .panel-badge { min-height: 32px; }

  .email-verify-actions,
  .profile-completion-actions,
  .onboarding-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .verification-btn,
  .ghost-btn,
  .profile-secondary-btn,
  .onboarding-next,
  .story-switch-btn {
    width: 100%;
    min-width: 0;
  }

  .row-links { justify-content: stretch; }
  #forgotLink { width: 100%; }
  .choice-card { min-height: 96px; }
}

/* Auth layout refresh */
.auth-stage {
  max-width: 640px;
}

.auth-switcher {
  display: block;
  min-height: auto;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.auth-switcher::before {
  display: none;
}

.auth-form-panel,
.auth-story-panel {
  position: relative;
  inset: auto;
  width: auto;
  padding: 0;
  transform: none !important;
}

.auth-form-panel {
  min-width: 0;
  display: block;
  max-width: none;
  margin: 0;
}

.auth-story-panel {
  display: none;
}

.story-content {
  display: none;
}

.form-panel-inner {
  width: 100%;
  min-height: 100%;
  padding: 30px 32px 26px;
  border-radius: 30px;
  background:
    radial-gradient(circle at bottom center, rgba(245, 158, 11, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(248, 250, 252, 0.96));
  box-shadow: 0 28px 74px rgba(2, 6, 23, 0.28);
}

.panel-glow {
  left: 10%;
  right: 10%;
  bottom: -52px;
}

.registration-form {
  gap: 14px;
}

.panel-topline {
  margin-bottom: 10px;
}

.logo-container img {
  width: 56px;
  height: 56px;
  border-radius: 18px;
}

.logo-title {
  font-size: 18px;
}

.panel-copy {
  gap: 6px;
}

#form-title {
  font-size: clamp(34px, 3vw, 46px);
}

#form-desc {
  max-width: 34ch;
  font-size: 14px;
}

.flow-strip {
  gap: 10px;
}

.flow-pill {
  min-height: 58px;
  padding: 10px 14px;
  border-radius: 16px;
}

.flow-pill-number {
  width: 28px;
  height: 28px;
}

.form-grid {
  gap: 14px;
}

.form-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-help {
  font-size: 11.5px;
}

input,
select {
  min-height: 54px;
  padding: 15px 16px 15px 46px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
}

input::placeholder {
  color: #94a3b8;
}

.reg-btn {
  min-height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8c844 0%, #f0a52b 100%);
  box-shadow: 0 16px 34px rgba(240, 165, 43, 0.28);
}

.google-btn {
  min-height: 54px;
  border-radius: 16px;
}

.divider {
  margin: 4px 0;
}

.row-links {
  min-height: 36px;
}

.panel-footer {
  font-size: 13px;
}

.story-track {
  width: 100%;
  display: block;
  flex: none;
  min-height: 0;
  transform: none !important;
}

.story-face {
  display: none;
  width: auto;
  min-width: 0;
  gap: 24px;
  padding-right: 0;
}

.auth-switcher:not([data-mode="login"]) .story-face-signup,
.auth-switcher[data-mode="login"] .story-face-login {
  display: flex;
}

.story-copy {
  gap: 14px;
}

.story-copy h3 {
  font-size: clamp(36px, 3.4vw, 52px);
  max-width: 10ch;
}

.story-copy p {
  max-width: 34ch;
  font-size: 15px;
}

.story-stat-grid {
  gap: 12px;
}

.story-stat {
  min-height: 96px;
  border-radius: 20px;
  padding: 18px 16px;
}

.story-stat strong {
  font-size: 18px;
}

.story-footer {
  margin-top: 0;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
}

.story-footer p {
  max-width: 34ch;
}

@media (max-width: 720px) {
  .auth-shell {
    min-height: 100vh;
    padding: 18px 14px 24px;
    align-items: center;
  }

  .auth-scene {
    background:
      radial-gradient(ellipse at 20% 20%, rgba(56, 189, 248, 0.1) 0%, transparent 40%),
      radial-gradient(ellipse at 80% 10%, rgba(245, 158, 11, 0.12) 0%, transparent 38%),
      radial-gradient(ellipse at 50% 90%, rgba(15, 23, 42, 0.8) 0%, transparent 50%),
      linear-gradient(160deg, #0b1220 0%, #0f172a 50%, #080e1a 100%);
  }

  .scene-grid,
  .scene-glass {
    display: block;
  }

  .scene-gradient {
    opacity: 0.7;
    filter: blur(60px);
  }

  .auth-stage {
    width: 100%;
    max-width: 430px;
  }

  .auth-switcher {
    display: block;
    min-height: auto;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .auth-story-panel {
    display: none;
  }

  .story-content {
    min-height: auto;
  }

  .auth-form-panel {
    grid-column: auto;
    width: 100%;
  }

  .form-panel-inner {
    padding: 198px 24px 28px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.12);
  }

  .form-panel-inner::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 154px;
    border-radius: 34px 34px 28px 28px;
    background:
      radial-gradient(circle at 16% 26%, rgba(255, 255, 255, 0.08) 0 22px, transparent 23px),
      radial-gradient(circle at 40% 18%, rgba(255, 255, 255, 0.08) 0 26px, transparent 27px),
      radial-gradient(circle at 72% 24%, rgba(255, 255, 255, 0.08) 0 22px, transparent 23px),
      radial-gradient(circle at 84% 54%, rgba(255, 255, 255, 0.06) 0 30px, transparent 31px),
      linear-gradient(135deg, #161616 0%, #070707 100%);
    z-index: 0;
  }

  .form-panel-inner::before {
    border-color: rgba(15, 23, 42, 0.06);
  }

  .panel-glow {
    display: none;
  }

  .panel-topline {
    display: block;
    height: auto;
    margin: 0 0 12px;
  }

  .logo-container {
    position: relative;
    top: auto;
    left: auto;
    z-index: 3;
    width: 72px;
    height: 72px;
    padding: 0;
    border-radius: 22px;
    display: grid;
    place-items: center;
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
    margin: -142px auto 20px;
    transform: none;
  }

  .logo-container img {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    box-shadow: none;
  }

  .logo-copy,
  .panel-badge,
  .flow-strip {
    display: none !important;
  }

  .panel-copy {
    text-align: center;
    gap: 8px;
    margin-top: 0;
  }

  #form-title {
    font-size: clamp(32px, 9vw, 42px);
  }

  #form-desc {
    max-width: 24ch;
    margin: 0 auto;
    font-size: 13.75px;
  }

  .registration-form {
    gap: 16px;
  }

  .form-group {
    gap: 8px;
  }

  .form-grid-two,
  .compact-pair.form-grid-two,
  .choice-grid,
  .choice-grid-two {
    grid-template-columns: 1fr;
  }

  input,
  select {
    min-height: 58px;
    padding: 16px 18px 16px 48px;
    border-radius: 18px;
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    font-size: 15px;
  }

  .input-icon {
    left: 16px;
    width: 18px;
    height: 18px;
  }

  .verification-pill {
    font-size: 12px;
  }

  .reg-btn {
    min-height: 56px;
    border-radius: 14px;
    background: linear-gradient(180deg, #101010 0%, #000000 100%);
    color: #ffffff;
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.18);
  }

  .google-btn {
    min-height: 56px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.07);
  }

  .row-links {
    justify-content: center;
  }

  #forgotLink {
    width: auto;
  }

  .panel-footer {
    text-align: center;
    font-size: 13px;
  }

  .email-verify-overlay,
  .onboarding-overlay,
  .profile-completion-overlay {
    padding: 14px;
    align-items: flex-end;
  }

  .email-verify-modal,
  .profile-completion-card,
  .onboarding-modal {
    width: 100%;
    padding: 24px 20px;
    border-radius: 28px 28px 22px 22px;
  }

  .onboarding-modal {
    max-height: min(86vh, 900px);
  }
}

@media (max-width: 520px) {
  .auth-shell {
    padding: 12px 10px 18px;
  }

  .auth-stage {
    max-width: 100%;
  }

  .form-panel-inner {
    padding: 188px 18px 24px;
    border-radius: 30px;
  }

  .form-panel-inner::after {
    height: 144px;
    border-radius: 30px 30px 24px 24px;
  }

  .logo-container {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    margin: -136px auto 18px;
  }

  .logo-container img {
    width: 36px;
    height: 36px;
  }

  #form-title {
    font-size: 32px;
  }

  #form-desc {
    font-size: 13.5px;
  }

  input,
  select,
  .reg-btn,
  .google-btn {
    min-height: 54px;
  }

  .email-verify-actions,
  .profile-completion-actions,
  .onboarding-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .verification-btn,
  .ghost-btn,
  .profile-secondary-btn,
  .onboarding-next,
  .story-switch-btn {
    width: 100%;
    min-width: 0;
  }
}

body.phone-country-open {
  overflow: hidden;
}

.phone-smart-wrapper {
  --phone-country-trigger-width: 108px;
}

.phone-smart-wrapper .input-icon[hidden] {
  display: none;
}

.phone-smart-wrapper .phone-country-input {
  padding-left: calc(var(--phone-country-trigger-width) + 16px);
}

.phone-country-trigger {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  min-height: calc(100% - 12px);
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(148, 163, 184, 0.12),
    0 8px 18px rgba(15, 23, 42, 0.08);
  color: var(--text-strong);
  cursor: pointer;
  white-space: nowrap;
  z-index: 2;
}

.phone-country-trigger:hover {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.phone-country-trigger:focus-visible {
  outline: none;
  box-shadow:
    inset 0 0 0 1px rgba(245, 158, 11, 0.24),
    0 0 0 4px rgba(245, 158, 11, 0.14);
}

.phone-country-trigger-flag {
  font-size: 18px;
  line-height: 1;
}

.phone-country-trigger-code {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.phone-country-trigger-caret {
  color: var(--text-muted);
  font-size: 11px;
}

.phone-smart-meta,
.phone-inline-hint {
  min-height: 22px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.phone-smart-meta[hidden],
.phone-inline-hint[hidden],
.phone-country-overlay[hidden] {
  display: none !important;
}

.phone-smart-meta[data-state="success"],
.phone-inline-hint[data-state="success"] {
  color: var(--success);
}

.phone-smart-meta[data-state="info"],
.phone-inline-hint[data-state="info"] {
  color: var(--text-muted);
}

.phone-inline-hint {
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.035);
}

.phone-country-overlay {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 6, 23, 0.58);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.phone-country-modal {
  position: relative;
  width: min(100%, 560px);
  max-height: min(84vh, 840px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.985);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.22);
}

.phone-country-close {
  font-size: 26px;
  line-height: 1;
}

.phone-country-search {
  margin-top: 16px;
}

.phone-country-search input {
  padding-left: 44px;
}

.phone-country-list {
  margin-top: 16px;
  display: grid;
  gap: 8px;
  overflow: auto;
  padding-right: 4px;
}

.phone-country-option {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.96);
  color: var(--text-strong);
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.phone-country-option:hover,
.phone-country-option[aria-selected="true"] {
  transform: translateY(-1px);
  border-color: rgba(245, 158, 11, 0.24);
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.97), rgba(239, 246, 255, 0.97));
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.phone-country-option-flag {
  font-size: 22px;
  line-height: 1;
}

.phone-country-option-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.phone-country-option-copy strong {
  font-size: 15px;
  line-height: 1.2;
}

.phone-country-option-copy small {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.3;
}

.phone-country-option-code {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-deep);
}

.phone-country-empty {
  padding: 18px 16px;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.9);
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 720px) {
  .phone-country-overlay {
    padding: 14px;
    place-items: end center;
  }

  .phone-country-modal {
    width: 100%;
    max-height: min(86vh, 900px);
    padding: 24px 20px;
    border-radius: 28px 28px 22px 22px;
  }
}

@media (max-width: 520px) {
  .phone-smart-wrapper {
    --phone-country-trigger-width: 100px;
  }

  .phone-country-trigger {
    padding: 0 10px;
    gap: 6px;
  }

  .phone-country-trigger-code {
    font-size: 12.5px;
  }

  .phone-country-option {
    grid-template-columns: auto 1fr;
  }

  .phone-country-option-code {
    grid-column: 2;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-form-panel,
  .auth-story-panel,
  .story-track,
  .reg-btn,
  .google-btn,
  .verification-btn,
  .ghost-btn,
  .profile-secondary-btn,
  .profile-completion-submit,
  .story-switch-btn,
  input,
  select,
  .choice-card,
  .onboarding-screen.is-active,
  .onboarding-progress-bar span {
    transition: none !important;
    animation: none !important;
  }
}

/* Auth redesign sourced from login-form.html */
:root {
  --auth-bg: #0d0f14;
  --auth-panel-left: #13161e;
  --auth-panel-right: #0a0c10;
  --auth-gold: #c8952a;
  --auth-gold-lite: #f0c060;
  --auth-gold-dim: #7a5a1a;
  --auth-text: #ede8df;
  --auth-muted: #8e8067;
  --auth-border: #2a2618;
  --auth-field-bg: #1a1c24;
  --auth-field-bg-focus: #1e2030;
  --auth-field-border: #302a1c;
  --accent: #c8952a;
  --accent-strong: #f0c060;
  --accent-deep: #7a5a1a;
  --accent-glow: rgba(200, 149, 42, 0.24);
  --surface: #13161e;
  --surface-strong: #0f1218;
  --text-strong: #ede8df;
  --text-main: #d8d1c4;
  --text-muted: #8e8067;
  --text-on-dark: #ede8df;
  --text-on-dark-muted: #8e8067;
  --input-bg: #1a1c24;
  --input-bg-focus: #1e2030;
  --input-border: #302a1c;
  --panel-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
  --success: #4ade80;
  --danger: #f87171;
}

body {
  position: relative;
  font-family: "Outfit", sans-serif;
  color: var(--auth-text);
  background: var(--auth-bg);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

body::before {
  background:
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(200, 149, 42, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(200, 149, 42, 0.05) 0%, transparent 60%);
}

body::after {
  background-image:
    radial-gradient(circle, rgba(200, 149, 42, 0.4) 1px, transparent 1px),
    radial-gradient(circle, rgba(200, 149, 42, 0.22) 1px, transparent 1px);
  background-size: 80px 80px, 50px 50px;
  background-position: 0 0, 25px 25px;
  opacity: 0.35;
}

.auth-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  isolation: isolate;
}

.auth-scene,
.scene-grid,
.scene-gradient,
.scene-glass,
.scene-noise,
.scene-ring,
.scene-float {
  display: none;
}

.auth-stage {
  width: 100%;
  max-width: 980px;
}

.auth-switcher {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(340px, 0.86fr);
  min-height: 600px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(200, 149, 42, 0.18);
  background: linear-gradient(135deg, rgba(19, 22, 30, 0.99), rgba(10, 12, 16, 0.98));
  box-shadow:
    0 0 0 1px rgba(200, 149, 42, 0.05),
    0 24px 80px rgba(0, 0, 0, 0.72),
    0 0 60px rgba(200, 149, 42, 0.05) inset;
}

.auth-switcher::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), transparent 55%);
  pointer-events: none;
}

.auth-form-panel,
.auth-story-panel {
  position: relative;
  inset: auto;
  width: auto;
  padding: 0;
  transform: none !important;
  transition: none;
}

.auth-form-panel {
  border-right: 1px solid rgba(200, 149, 42, 0.08);
}

.form-panel-inner {
  position: relative;
  min-height: 100%;
  padding: 40px 40px 34px;
  border-radius: 0;
  background: var(--auth-panel-left);
  box-shadow: none;
  overflow: hidden;
}

.form-panel-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  border: none;
  background: linear-gradient(to bottom, transparent, var(--auth-gold), transparent);
  opacity: 0.55;
}

.form-panel-inner::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: -120px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(200, 149, 42, 0.15), transparent 70%);
  filter: blur(24px);
  pointer-events: none;
}

.panel-glow {
  display: none;
}

.registration-form {
  position: relative;
  z-index: 1;
  gap: 14px;
}

.form-intro {
  display: grid;
  gap: 16px;
}

.panel-topline {
  margin-bottom: 0;
  align-items: center;
  gap: 16px;
}

.logo-container {
  gap: 14px;
}

.logo-container img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--auth-gold-dim);
  box-shadow: 0 0 16px rgba(200, 149, 42, 0.34);
}

.logo-copy {
  display: grid;
  gap: 4px;
}

.logo-kicker {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  background: linear-gradient(135deg, var(--auth-gold-lite), var(--auth-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.logo-title {
  color: var(--auth-muted);
  font-family: "Outfit", sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.panel-badge {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(200, 149, 42, 0.16);
  background: rgba(200, 149, 42, 0.08);
  color: var(--auth-gold-lite);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.panel-copy {
  gap: 8px;
}

#form-title {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.05rem, 3.3vw, 2.85rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--auth-text);
}

#form-desc {
  max-width: 34ch;
  margin: 0;
  color: var(--auth-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.flow-strip {
  gap: 8px;
  margin: 0;
}

.flow-pill {
  min-height: 48px;
  padding: 8px 12px;
  border-radius: 16px;
  border: 1px solid rgba(200, 149, 42, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: var(--auth-muted);
  box-shadow: none;
}

.flow-pill-number {
  background: rgba(255, 255, 255, 0.04);
  color: var(--auth-text);
}

.flow-pill-label {
  color: inherit;
}

.flow-pill.is-active {
  border-color: rgba(200, 149, 42, 0.24);
  background: linear-gradient(135deg, rgba(200, 149, 42, 0.12), rgba(200, 149, 42, 0.04));
  color: var(--auth-text);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.flow-pill.is-active .flow-pill-number {
  background: linear-gradient(135deg, rgba(240, 192, 96, 0.34), rgba(200, 149, 42, 0.16));
  color: #140f06;
}

.form-group,
.choice-custom-field {
  gap: 8px;
}

.compact-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.form-group label,
.choice-custom-field label {
  color: var(--auth-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.field-help,
.phone-smart-meta,
.phone-inline-hint,
.email-verify-copy,
.email-verify-summary-detail,
.profile-completion-copy,
.onboarding-head-copy p,
.welcome-copy p,
.choice-copy small,
.phone-country-option-copy small,
.phone-country-empty {
  color: var(--auth-muted);
}

.input-wrapper {
  position: relative;
}

.input-icon {
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--auth-gold-dim);
}

input,
select,
.choice-custom-field input {
  min-height: 48px;
  border-radius: 14px;
  border: 1.5px solid var(--auth-field-border);
  background: var(--auth-field-bg);
  color: var(--auth-text);
  font-family: "Outfit", sans-serif;
  font-size: 0.92rem;
  box-shadow: none;
}

input,
select {
  padding: 0 16px 0 44px;
}

input::placeholder {
  color: #5b5447;
}

input:focus,
select:focus,
.choice-custom-field input:focus {
  outline: none;
  background: var(--auth-field-bg-focus);
  border-color: var(--auth-gold);
  box-shadow:
    0 0 0 3px rgba(200, 149, 42, 0.12),
    0 0 18px rgba(200, 149, 42, 0.08);
}

select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--auth-muted) 50%),
    linear-gradient(135deg, var(--auth-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

.password-input-wrapper input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--auth-muted);
  cursor: pointer;
  padding: 0;
}

.password-toggle:hover {
  color: var(--auth-gold-lite);
}

.password-toggle-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.password-toggle-icon svg {
  width: 100%;
  height: 100%;
}

.password-toggle-icon-hide {
  display: none;
}

.password-toggle[data-visible="true"] .password-toggle-icon-show {
  display: none;
}

.password-toggle[data-visible="true"] .password-toggle-icon-hide {
  display: inline-flex;
}

.verification-pill {
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(200, 149, 42, 0.16);
  background: rgba(200, 149, 42, 0.08);
  color: var(--auth-gold-lite);
  font-size: 0.72rem;
  font-weight: 600;
}

.verification-pill[data-state="info"] {
  color: #7dd3fc;
}

.verification-pill[data-state="success"],
.phone-smart-meta[data-state="success"],
.phone-inline-hint[data-state="success"] {
  color: var(--success);
}

.verification-pill[data-state="error"] {
  color: var(--danger);
}

.reg-btn,
.google-btn,
.verification-btn,
.ghost-btn,
.profile-secondary-btn,
.profile-completion-submit,
.story-switch-btn,
.onboarding-back,
.onboarding-next {
  min-height: 50px;
  border-radius: 14px;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
}

.reg-btn,
.email-verify-submit,
.profile-completion-submit,
.onboarding-next {
  background: linear-gradient(135deg, #c8952a 0%, #e8b840 50%, #c8952a 100%);
  background-size: 200% 100%;
  color: #0d0f14;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 6px 24px rgba(200, 149, 42, 0.35);
}

.reg-btn:hover,
.email-verify-submit:hover,
.profile-completion-submit:hover,
.onboarding-next:hover {
  background-position: 100% 0;
  box-shadow: 0 10px 28px rgba(200, 149, 42, 0.46);
}

.google-btn,
.ghost-btn,
.profile-secondary-btn,
.verification-btn-secondary,
.onboarding-back,
.story-switch-btn,
.phone-country-trigger,
.email-verify-close,
.phone-country-close {
  background: var(--auth-field-bg);
  border: 1.5px solid var(--auth-field-border);
  color: var(--auth-text);
  box-shadow: none;
}

.google-btn:hover,
.ghost-btn:hover,
.profile-secondary-btn:hover,
.verification-btn-secondary:hover,
.onboarding-back:hover,
.story-switch-btn:hover,
.phone-country-trigger:hover,
.email-verify-close:hover,
.phone-country-close:hover {
  background: var(--auth-field-bg-focus);
  border-color: rgba(200, 149, 42, 0.22);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.google-btn {
  justify-content: center;
  gap: 12px;
}

.divider {
  margin: 0;
  color: var(--auth-muted);
}

.divider::before,
.divider::after {
  background: linear-gradient(to right, transparent, rgba(200, 149, 42, 0.2), transparent);
}

.row-links {
  min-height: 0;
  justify-content: flex-end;
  margin-top: 0;
}

.row-links.row-links-legal {
  justify-content: space-between;
}

.row-links a,
#loginBtn {
  color: var(--auth-gold-lite);
}

.auth-legal-note {
  color: rgba(248, 250, 252, 0.72);
}

.auth-legal-note a {
  color: var(--auth-gold-lite);
}

#forgotLink {
  min-height: auto;
  padding: 0;
  border: none;
  background: none;
  color: var(--auth-muted);
}

#forgotLink:hover {
  color: var(--auth-gold-lite);
}

.panel-footer {
  margin: 0;
  text-align: center;
  color: var(--auth-muted);
  font-size: 0.88rem;
}

.auth-story-panel {
  display: flex;
  padding: 34px 30px 28px;
  background: var(--auth-panel-right);
  overflow: hidden;
}

.auth-story-panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--auth-gold-dim), transparent);
  opacity: 0.5;
}

.auth-story-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(200, 149, 42, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.01), transparent 46%);
  pointer-events: none;
}

.diamond {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--auth-gold);
  transform: rotate(45deg);
  opacity: 0.24;
}

.d1 {
  top: 28px;
  right: 28px;
}

.d2 {
  bottom: 28px;
  left: 28px;
}

.d3 {
  top: 28px;
  left: 28px;
  opacity: 0.12;
}

.story-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.story-copy {
  gap: 12px;
}

.story-signup-intro {
  display: grid;
  gap: 18px;
}

.story-topline {
  gap: 14px;
}

.story-signup-copy {
  display: grid;
  gap: 8px;
}

.story-signup-copy h3 {
  margin: 0;
  color: var(--auth-text);
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.story-signup-copy p {
  max-width: 28ch;
  margin: 0;
  color: var(--auth-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.story-flow-strip {
  gap: 10px;
}

.story-kicker,
.email-verify-step,
.profile-completion-badge,
.onboarding-badge {
  width: fit-content;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(200, 149, 42, 0.16);
  background: rgba(200, 149, 42, 0.08);
  color: var(--auth-gold-lite);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.story-copy h3,
.email-verify-modal h3,
.profile-completion-header h3,
.onboarding-head-copy h3,
.welcome-copy h4,
.choice-copy strong,
.phone-country-option-copy strong,
.email-verify-summary-value {
  margin: 0;
  color: var(--auth-text);
  font-family: "Playfair Display", serif;
}

.story-copy h3 {
  max-width: 11ch;
  font-size: clamp(2.2rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.story-copy p,
.story-footer p {
  margin: 0;
  color: var(--auth-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.story-copy p {
  max-width: 30ch;
}

.story-visual {
  position: relative;
  flex: 1;
  min-height: 232px;
  display: grid;
  place-items: center;
}

.glow-ring {
  position: absolute;
  width: min(100%, 360px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 149, 42, 0.18) 0%, transparent 65%);
  animation: auth-pulse-glow 3s ease-in-out infinite;
}

.ring-deco {
  position: absolute;
  width: min(100%, 320px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(200, 149, 42, 0.12);
  animation: auth-spin 28s linear infinite;
}

.ring-deco::before,
.ring-deco::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--auth-gold);
  opacity: 0.6;
  transform: translateX(-50%);
}

.ring-deco::before {
  top: -3px;
}

.ring-deco::after {
  bottom: -3px;
}

.ring-deco-2 {
  width: min(100%, 274px);
  border-style: dashed;
  animation-duration: 20s;
  animation-direction: reverse;
}

.art-logo {
  position: relative;
  z-index: 1;
  width: min(62%, 228px);
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 50%;
  animation: auth-float 5s ease-in-out infinite;
  filter:
    drop-shadow(0 0 30px rgba(200, 149, 42, 0.48))
    drop-shadow(0 8px 32px rgba(0, 0, 0, 0.82));
}

.story-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.story-stat {
  min-height: 78px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(200, 149, 42, 0.08);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.story-stat strong {
  display: block;
  margin-bottom: 4px;
  color: var(--auth-gold-lite);
  font-family: "Playfair Display", serif;
  font-size: 1.06rem;
  font-weight: 700;
}

.story-stat span {
  color: var(--auth-muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

.story-footer {
  margin-top: auto;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(200, 149, 42, 0.1);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 12px;
}

.story-switch-btn {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(200, 149, 42, 0.22);
  color: var(--auth-gold-lite);
}

.auth-mode-footer {
  display: none;
}

#loginBtn {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  line-height: inherit;
}

@media (min-width: 921px) {
  .auth-switcher:not([data-mode="login"]) .form-intro {
    display: none;
  }
}

.email-verify-overlay,
.onboarding-overlay,
.profile-completion-overlay,
.phone-country-overlay {
  background: rgba(2, 4, 7, 0.74);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.email-verify-modal,
.profile-completion-card,
.onboarding-modal,
.phone-country-modal {
  background: linear-gradient(180deg, #13161e, #0f1218);
  border: 1px solid rgba(200, 149, 42, 0.14);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.58);
  color: var(--auth-text);
}

.email-verify-summary,
.welcome-card,
.choice-card,
.choice-custom-field,
.phone-inline-hint,
.phone-country-option,
.phone-country-empty {
  border-color: rgba(200, 149, 42, 0.1);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: none;
}

.choice-card:hover,
.choice-card:has(.choice-input:checked),
.phone-country-option:hover,
.phone-country-option[aria-selected="true"] {
  border-color: rgba(200, 149, 42, 0.24);
  background: linear-gradient(180deg, rgba(200, 149, 42, 0.12), rgba(255, 255, 255, 0.04));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}

.choice-copy strong,
.phone-country-option-copy strong {
  font-size: 1rem;
}

.choice-copy small,
.phone-country-option-copy small,
.email-verify-summary-detail,
.welcome-copy p {
  font-family: "Outfit", sans-serif;
}

.email-verify-status,
.profile-completion-header p,
.onboarding-head-copy p {
  color: var(--auth-muted);
}

.email-verify-step-dot,
.verification-pill::before {
  background: currentColor;
}

.profile-completion-avatar {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(200, 149, 42, 0.14);
  color: var(--auth-gold-lite);
}

.onboarding-progress-bar {
  background: rgba(255, 255, 255, 0.08);
}

.onboarding-progress-bar span {
  background: linear-gradient(135deg, #c8952a, #f0c060);
}

.welcome-mark {
  background: radial-gradient(circle, rgba(200, 149, 42, 0.18), transparent 68%);
  box-shadow: none;
}

.welcome-mark img {
  border-radius: 18px;
}

.phone-country-trigger {
  min-height: calc(100% - 12px);
  background: var(--auth-field-bg);
  color: var(--auth-text);
}

.phone-country-trigger-flag {
  filter: saturate(0.95);
}

.phone-country-trigger-code,
.phone-country-option-code,
.phone-country-trigger-caret {
  color: var(--auth-gold-lite);
}

.phone-inline-hint,
.phone-smart-meta {
  border-color: rgba(200, 149, 42, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

@keyframes auth-pulse-glow {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes auth-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes auth-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  33% {
    transform: translateY(-12px) rotate(0.5deg);
  }

  66% {
    transform: translateY(-6px) rotate(-0.5deg);
  }
}

@media (max-width: 920px) {
  .auth-shell {
    padding: 20px 16px;
  }

  .auth-stage {
    max-width: 560px;
  }

  .auth-switcher {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .auth-story-panel {
    display: none;
  }

  .auth-form-panel {
    border-right: none;
  }

  .form-panel-inner {
    border-radius: 26px;
    padding: 42px 32px 34px;
  }

  .form-panel-inner::before {
    width: 100%;
    height: 3px;
  }

  .auth-mode-footer {
    display: block;
  }
}

@media (max-width: 640px) {
  .auth-shell {
    padding: 16px 12px 22px;
  }

  .form-panel-inner,
  .email-verify-modal,
  .profile-completion-card,
  .onboarding-modal,
  .phone-country-modal {
    padding: 28px 22px;
    border-radius: 22px;
  }

  .panel-topline {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .panel-badge {
    min-height: 32px;
  }

  #form-title {
    font-size: clamp(2rem, 11vw, 2.55rem);
  }

  #form-desc {
    font-size: 0.88rem;
  }

  .flow-strip,
  .compact-pair,
  .form-grid-two,
  .choice-grid,
  .choice-grid-two {
    grid-template-columns: 1fr;
  }

  input,
  select,
  .reg-btn,
  .google-btn,
  .verification-btn,
  .ghost-btn,
  .profile-secondary-btn,
  .profile-completion-submit,
  .story-switch-btn,
  .onboarding-next,
  .onboarding-back {
    min-height: 54px;
  }

  .row-links {
    justify-content: flex-start;
    margin-top: -2px;
  }

  .panel-footer {
    font-size: 0.84rem;
  }

  .email-verify-overlay,
  .onboarding-overlay,
  .profile-completion-overlay,
  .phone-country-overlay {
    padding: 14px;
  }
}

@media (max-width: 520px) {
  .auth-shell {
    padding: 12px 10px 18px;
  }

  .form-panel-inner,
  .email-verify-modal,
  .profile-completion-card,
  .onboarding-modal,
  .phone-country-modal {
    padding: 24px 18px;
  }

  .logo-container img {
    width: 46px;
    height: 46px;
  }

  .logo-kicker {
    font-size: 1.14rem;
  }
}

@media (min-width: 921px) {
  .auth-switcher:not([data-mode="login"]) .form-intro {
    display: grid;
    gap: 10px;
  }

  .auth-switcher:not([data-mode="login"]) .form-intro .panel-topline,
  .auth-switcher:not([data-mode="login"]) .form-intro .flow-strip {
    display: none;
  }

  .auth-switcher:not([data-mode="login"]) .story-track {
    width: 100%;
    display: block;
    flex: 0 0 auto;
    transform: none;
  }

  .auth-switcher:not([data-mode="login"]) .story-face {
    width: 100%;
    display: block;
  }

  .auth-switcher:not([data-mode="login"]) .story-signup-intro {
    display: grid;
  }

  .auth-switcher:not([data-mode="login"]) .story-signup-copy {
    display: none;
  }

  .auth-switcher[data-mode="login"] .form-intro .panel-topline {
    display: none;
  }

  .auth-switcher[data-mode="login"] .form-intro {
    gap: 12px;
  }

  .auth-switcher[data-mode="login"] .story-track {
    width: 100%;
    display: block;
    flex: 0 0 auto;
    transform: none;
  }

  .auth-switcher[data-mode="login"] .story-face {
    width: 100%;
    display: block;
  }

  .auth-switcher[data-mode="login"] .story-signup-intro {
    display: block;
  }

  .auth-switcher[data-mode="login"] .story-signup-copy,
  .auth-switcher[data-mode="login"] .story-flow-strip {
    display: none;
  }
}
