/* ── Luxury Banking Auth Theme ──────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Cormorant+Garamond:wght@500;600;700&display=swap');

:root {
  --auth-obsidian: #020508;
  --auth-navy-950: #040a14;
  --auth-navy-900: #071220;
  --auth-navy-800: #0c1a30;
  --auth-gold: #d4a80a;
  --auth-gold-mid: #f5c518;
  --auth-gold-light: #ffe08a;
  --auth-gold-soft: rgba(212, 168, 10, 0.35);
  --auth-gold-bloom: rgba(245, 197, 24, 0.22);
  --auth-gold-border: rgba(212, 168, 10, 0.28);
  --auth-text: #f2f5fa;
  --auth-muted: #8fa3be;
  --auth-glass: rgba(8, 14, 26, 0.55);
  --auth-glass-border: rgba(212, 168, 10, 0.22);
  --auth-radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }

body.auth-body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  background: var(--auth-obsidian);
  color: var(--auth-text);
  -webkit-font-smoothing: antialiased;
}

/* ── Legacy centered auth pages ─────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  background: var(--auth-navy-950);
}

.auth-page:not(.auth-page--login) .auth-card {
  width: 100%;
  max-width: 440px;
  border-radius: var(--auth-radius);
  border: 1px solid var(--auth-glass-border);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55), 0 0 60px var(--auth-gold-bloom);
  animation: authShellIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.auth-brand { text-align: center; margin-bottom: 2rem; }

.auth-brand .brand-icon {
  width: 56px; height: 56px; margin: 0 auto 1rem;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--auth-gold), var(--auth-gold-light));
  color: var(--auth-navy-900);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 30px var(--auth-gold-soft);
}

.auth-brand h1 { font-size: 1.5rem; font-weight: 800; color: var(--auth-text); margin: 0; }
.auth-brand .brand-accent { color: var(--auth-gold-mid); }
.auth-brand p { color: var(--auth-muted); font-size: 0.9rem; margin: 0.25rem 0 0; }

/* ══════════════════════════════════════════════════════════════
   LOGIN — Full-screen luxury banking layout
   ══════════════════════════════════════════════════════════════ */
.auth-page--login {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  padding: 0;
  align-items: stretch;
  background: var(--auth-obsidian);
}

/* ── Left: cinematic finance scene ──────────────────────────── */
.auth-visual {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 70% at 50% 100%, rgba(212, 168, 10, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 10%, rgba(212, 168, 10, 0.08) 0%, transparent 50%),
    linear-gradient(175deg, #0a1220 0%, #050a12 45%, #020508 100%);
}

.auth-visual__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
  z-index: 10;
}

.auth-visual__flare {
  position: absolute;
  top: -10%;
  left: -5%;
  width: 45%;
  height: 45%;
  background: radial-gradient(circle, rgba(255, 224, 138, 0.12) 0%, rgba(212, 168, 10, 0.06) 30%, transparent 65%);
  pointer-events: none;
  z-index: 1;
  animation: authFlarePulse 8s ease-in-out infinite;
}

@keyframes authFlarePulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.auth-visual__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  animation: authOrbDrift 22s ease-in-out infinite;
}

.auth-visual__glow--1 {
  width: 420px; height: 420px;
  background: rgba(212, 168, 10, 0.18);
  bottom: 20%; left: 50%;
  transform: translateX(-50%);
}

.auth-visual__glow--2 {
  width: 280px; height: 280px;
  background: rgba(61, 90, 128, 0.15);
  top: 8%; right: 5%;
  animation-delay: -7s;
}

.auth-visual__glow--3 {
  width: 200px; height: 200px;
  background: rgba(212, 168, 10, 0.1);
  bottom: 5%; left: 8%;
  animation-delay: -14s;
}

@keyframes authOrbDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(15px, -12px) scale(1.04); }
}

.auth-visual__map {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 500'%3E%3Cg fill='%23d4a80a' fill-opacity='0.5'%3E%3Ccircle cx='120' cy='180' r='1.2'/%3E%3Ccircle cx='160' cy='190' r='1'/%3E%3Ccircle cx='200' cy='170' r='1.3'/%3E%3Ccircle cx='280' cy='165' r='1'/%3E%3Ccircle cx='350' cy='175' r='1.2'/%3E%3Ccircle cx='430' cy='160' r='1'/%3E%3Ccircle cx='500' cy='180' r='1.3'/%3E%3Ccircle cx='580' cy='170' r='1'/%3E%3Ccircle cx='650' cy='185' r='1.2'/%3E%3Ccircle cx='170' cy='240' r='1'/%3E%3Ccircle cx='350' cy='220' r='1.2'/%3E%3Ccircle cx='550' cy='225' r='1'/%3E%3Ccircle cx='300' cy='295' r='1.3'/%3E%3Ccircle cx='600' cy='290' r='1'/%3E%3C/g%3E%3C/svg%3E") center / cover no-repeat;
}

/* 3D-style bar charts */
.auth-visual__bars {
  position: absolute;
  bottom: 16%;
  left: 6%; right: 6%;
  height: 38%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(6px, 1.2vw, 14px);
  z-index: 3;
  perspective: 600px;
}

.auth-visual__bars span {
  width: clamp(16px, 2.5vw, 28px);
  height: var(--h);
  border-radius: 3px 3px 0 0;
  transform-origin: bottom;
  animation: authBarGrow 2.2s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--d) * 0.1s);
  box-shadow: 0 -4px 20px rgba(212, 168, 10, 0.15);
}

.auth-visual__bars span:nth-child(odd) {
  background: linear-gradient(180deg, #c9a000 0%, #8a7208 60%, #3d3508 100%);
  box-shadow: 0 0 18px rgba(212, 168, 10, 0.25), inset 0 1px 0 rgba(255, 224, 138, 0.3);
}

.auth-visual__bars span:nth-child(even) {
  background: linear-gradient(180deg, #4a5568 0%, #2a3344 60%, #1a2030 100%);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

@keyframes authBarGrow {
  from { transform: scaleY(0); opacity: 0; }
  to { transform: scaleY(1); opacity: 1; }
}

/* Animated line chart with bloom */
.auth-visual__chart {
  position: absolute;
  bottom: 20%;
  left: 0; right: 0;
  height: 42%;
  z-index: 4;
  pointer-events: none;
}

.auth-visual__chart-glow {
  animation: authChartPulse 4s ease-in-out infinite;
}

@keyframes authChartPulse {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.35; }
}

.auth-visual__chart-line {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: authDrawLine 3.5s ease forwards 0.6s;
}

.auth-visual__chart-area {
  fill: rgba(212, 168, 10, 0.06);
  opacity: 0;
  animation: authFadeIn 2s ease forwards 2.2s;
}

.auth-visual__chart-dot {
  opacity: 0;
  animation: authDotPop 0.5s ease forwards;
}

.auth-visual__chart-dot:nth-child(4) { animation-delay: 2.4s; }
.auth-visual__chart-dot:nth-child(5) { animation-delay: 2.7s; }
.auth-visual__chart-dot:nth-child(6) { animation-delay: 3s; }

@keyframes authDrawLine { to { stroke-dashoffset: 0; } }
@keyframes authFadeIn { to { opacity: 1; } }
@keyframes authDotPop {
  from { opacity: 0; transform: scale(0); }
  to { opacity: 1; transform: scale(1); }
}

/* Pie charts */
.auth-visual__pie {
  position: absolute;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 25px rgba(212, 168, 10, 0.12);
}

.auth-visual__pie--1 {
  bottom: 6%; left: 10%;
  width: 80px; height: 80px;
  background: conic-gradient(#c9a000 0deg 140deg, #4a5568 140deg 260deg, rgba(212, 168, 10, 0.35) 260deg 360deg);
  animation: authFloat 9s ease-in-out infinite;
}

.auth-visual__pie--2 {
  bottom: 10%; left: 22%;
  width: 55px; height: 55px;
  background: conic-gradient(rgba(212, 168, 10, 0.5) 0deg 200deg, #3a4558 200deg 360deg);
  animation: authFloat 11s ease-in-out infinite reverse;
  opacity: 0.85;
}

.auth-visual__pie::after {
  content: '';
  position: absolute;
  inset: 24%;
  border-radius: 50%;
  background: #050a12;
}

/* Golden dollar hero */
.auth-visual__hero {
  position: absolute;
  bottom: 30%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  text-align: center;
}

.auth-visual__bloom {
  position: absolute;
  width: 280px; height: 280px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 168, 10, 0.35) 0%, rgba(212, 168, 10, 0.08) 40%, transparent 70%);
  filter: blur(25px);
  animation: authBloomPulse 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes authBloomPulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); }
}

.auth-visual__pedestal-ring {
  width: 160px; height: 20px;
  margin: 0 auto -4px;
  border-radius: 50%;
  border: 1px solid rgba(212, 168, 10, 0.4);
  box-shadow: 0 0 30px rgba(212, 168, 10, 0.3), inset 0 0 15px rgba(212, 168, 10, 0.15);
  animation: authRingPulse 4s ease-in-out infinite;
}

@keyframes authRingPulse {
  0%, 100% { box-shadow: 0 0 25px rgba(212, 168, 10, 0.25); }
  50% { box-shadow: 0 0 45px rgba(212, 168, 10, 0.45); }
}

.auth-visual__pedestal {
  width: 130px; height: 18px;
  margin: 0 auto;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(212, 168, 10, 0.4) 0%, transparent 70%);
}

.auth-visual__dollar {
  font-size: clamp(4.5rem, 11vw, 7rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: -8px;
  background: linear-gradient(180deg, #ffe08a 0%, #f5c518 35%, #c9a000 70%, #8a7208 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 40px rgba(212, 168, 10, 0.55)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
  animation: authDollarFloat 7s ease-in-out infinite;
}

@keyframes authDollarFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes authFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Bokeh particles */
.auth-visual__bokeh span {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 224, 138, 0.2);
  animation: authBokeh 14s ease-in-out infinite;
}

.auth-visual__bokeh span:nth-child(1) { width: 5px; height: 5px; top: 18%; left: 12%; }
.auth-visual__bokeh span:nth-child(2) { width: 3px; height: 3px; top: 30%; right: 18%; animation-delay: -2s; }
.auth-visual__bokeh span:nth-child(3) { width: 6px; height: 6px; top: 50%; left: 20%; animation-delay: -4s; }
.auth-visual__bokeh span:nth-child(4) { width: 4px; height: 4px; bottom: 35%; right: 12%; animation-delay: -6s; }
.auth-visual__bokeh span:nth-child(5) { width: 3px; height: 3px; top: 12%; right: 30%; animation-delay: -8s; }
.auth-visual__bokeh span:nth-child(6) { width: 5px; height: 5px; bottom: 20%; left: 35%; animation-delay: -10s; }
.auth-visual__bokeh span:nth-child(7) { width: 4px; height: 4px; top: 40%; left: 8%; animation-delay: -12s; }
.auth-visual__bokeh span:nth-child(8) { width: 3px; height: 3px; bottom: 45%; right: 25%; animation-delay: -5s; }

@keyframes authBokeh {
  0%, 100% { opacity: 0.2; transform: translate(0, 0); }
  50% { opacity: 0.55; transform: translate(8px, -12px); }
}

.auth-visual__brand {
  position: absolute;
  bottom: 2rem; left: 2.5rem;
  z-index: 11;
}

.auth-visual__resort {
  margin: 0 0 0.2rem;
  font-size: 0.85rem;
  color: rgba(240, 244, 250, 0.55);
  letter-spacing: 0.03em;
}

.auth-visual__dept {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(212, 168, 10, 0.7);
}

/* ── Right: glassmorphism login panel ───────────────────────── */
.auth-page--login .auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  background:
    radial-gradient(ellipse 70% 50% at 90% 15%, rgba(212, 168, 10, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(30, 50, 80, 0.15) 0%, transparent 50%),
    #030810;
  position: relative;
}

.auth-page--login .auth-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
}

.auth-page--login .auth-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 2.75rem 2.5rem;
  border-radius: var(--auth-radius);
  background: rgba(8, 14, 26, 0.5);
  backdrop-filter: blur(28px) saturate(1.3);
  -webkit-backdrop-filter: blur(28px) saturate(1.3);
  border: 1px solid var(--auth-glass-border);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 40px rgba(212, 168, 10, 0.06),
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 32px 80px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: authShellIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.auth-page--login .auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 10, 0.5), transparent);
  box-shadow: 0 0 12px rgba(212, 168, 10, 0.3);
}

.auth-page--login .auth-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--auth-radius) + 1px);
  padding: 1px;
  background: linear-gradient(145deg, rgba(212, 168, 10, 0.25), transparent 40%, transparent 60%, rgba(212, 168, 10, 0.12));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

@keyframes authShellIn {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Card header — shield icon */
.auth-card-head {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-shield {
  position: relative;
  width: 56px; height: 56px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--auth-gold-mid);
  font-size: 2.4rem;
  filter: drop-shadow(0 0 20px rgba(212, 168, 10, 0.4));
}

.auth-shield .fa-chart-column {
  position: absolute;
  font-size: 0.95rem;
  color: var(--auth-navy-900);
  top: 50%; left: 50%;
  transform: translate(-50%, -42%);
}

.auth-card-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.85rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  color: var(--auth-text);
  letter-spacing: 0.01em;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
}

.auth-card-tagline {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--auth-gold-mid);
  text-shadow: 0 0 20px rgba(212, 168, 10, 0.2);
}

.auth-card-footer {
  margin: 1.75rem 0 0;
  text-align: center;
  font-size: 0.7rem;
  color: rgba(143, 163, 190, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.auth-card-footer i {
  font-size: 0.6rem;
  color: rgba(212, 168, 10, 0.6);
}

/* ── Shared form card (legacy) ──────────────────────────────── */
.auth-card {
  padding: 3rem 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--auth-glass);
  backdrop-filter: blur(40px) saturate(1.4);
  -webkit-backdrop-filter: blur(40px) saturate(1.4);
  position: relative;
}

.auth-page:not(.auth-page--login) .auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 10, 0.45), transparent);
}

/* ── Form elements ──────────────────────────────────────────── */
.auth-form .form-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--auth-muted);
  margin-bottom: 0.45rem;
}

.auth-page--login .form-label.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.auth-form .form-control {
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 6, 14, 0.6) !important;
  color: var(--auth-text) !important;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25);
}

.auth-form .form-control::placeholder {
  color: rgba(143, 163, 190, 0.45);
}

.auth-form .form-control:focus {
  border-color: rgba(212, 168, 10, 0.45) !important;
  box-shadow:
    0 0 0 3px rgba(212, 168, 10, 0.1),
    0 0 20px rgba(212, 168, 10, 0.08),
    inset 0 1px 3px rgba(0, 0, 0, 0.25) !important;
  background: rgba(2, 6, 14, 0.8) !important;
  outline: none;
}

.auth-form .form-control:-webkit-autofill,
.auth-form .form-control:-webkit-autofill:hover,
.auth-form .form-control:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--auth-text) !important;
  -webkit-box-shadow: 0 0 0 1000px rgba(2, 6, 14, 0.9) inset !important;
  border-color: rgba(212, 168, 10, 0.35) !important;
  transition: background-color 5000s ease-in-out 0s;
}

.input-group-icon { position: relative; }

.input-group-icon i.field-icon {
  position: absolute;
  left: 1rem; top: 50%;
  transform: translateY(-50%);
  color: rgba(143, 163, 190, 0.6);
  font-size: 0.85rem;
  z-index: 5;
  transition: color 0.25s, filter 0.25s;
}

.input-group-icon:focus-within i.field-icon {
  color: var(--auth-gold-mid);
  filter: drop-shadow(0 0 6px rgba(212, 168, 10, 0.35));
}

.password-toggle {
  position: absolute;
  right: 0.85rem; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: rgba(143, 163, 190, 0.5);
  cursor: pointer; z-index: 5;
  padding: 0.25rem; font-size: 0.85rem;
  transition: color 0.2s;
}

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

.input-group-icon:has(.password-toggle) .form-control {
  padding-right: 2.75rem;
}

.auth-form .form-check-input {
  width: 1rem; height: 1rem;
  margin-top: 0.15rem;
  background-color: rgba(2, 6, 14, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.auth-form .form-check-input:checked {
  background-color: var(--auth-gold-mid);
  border-color: var(--auth-gold-mid);
  box-shadow: 0 0 10px rgba(212, 168, 10, 0.3);
}

.auth-form .form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(212, 168, 10, 0.15);
  border-color: var(--auth-gold-mid);
}

.auth-form .form-check-label {
  font-size: 0.82rem;
  color: rgba(143, 163, 190, 0.75);
  cursor: pointer;
}

.auth-page--login .auth-change-link {
  font-size: 0.8rem;
  color: var(--auth-gold-mid);
  text-decoration: none;
  background: none; border: none;
  padding: 0; cursor: pointer;
  font-family: inherit;
  transition: color 0.2s, text-shadow 0.2s;
}

.auth-page--login .auth-change-link:hover {
  color: var(--auth-gold-light);
  text-shadow: 0 0 12px rgba(212, 168, 10, 0.3);
  text-decoration: none;
}

.auth-change-link {
  font-size: 0.8rem;
  color: var(--auth-muted);
  text-decoration: none;
  background: none; border: none;
  padding: 0; cursor: pointer;
  font-family: inherit;
}

.auth-change-link:hover {
  color: var(--auth-text);
  text-decoration: underline;
}

/* Premium gold button */
.auth-submit {
  position: relative;
  width: 100%;
  padding: 0.9rem;
  margin-top: 0.75rem;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--auth-navy-900);
  cursor: pointer;
  overflow: hidden;
  background: linear-gradient(180deg, #ffe08a 0%, #f5c518 45%, #c9a000 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 4px 20px rgba(212, 168, 10, 0.35),
    0 0 40px rgba(212, 168, 10, 0.12);
  transition: transform 0.2s, box-shadow 0.25s;
}

.auth-submit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.3) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.55s ease;
}

.auth-submit:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 8px 28px rgba(212, 168, 10, 0.45),
    0 0 50px rgba(212, 168, 10, 0.18);
}

.auth-submit:hover::after { transform: translateX(100%); }
.auth-submit:active { transform: translateY(0); }

/* Modal — glassmorphism */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(2, 5, 8, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.auth-modal-overlay.is-open { opacity: 1; visibility: visible; }

.auth-modal {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 2rem;
  border-radius: var(--auth-radius);
  background: rgba(8, 14, 26, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--auth-glass-border);
  box-shadow: 0 0 40px rgba(212, 168, 10, 0.08), 0 24px 64px rgba(0, 0, 0, 0.5);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s ease;
}

.auth-modal-overlay.is-open .auth-modal {
  transform: translateY(0) scale(1);
}

.auth-modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 32px; height: 32px;
  border: none; border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--auth-muted);
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.auth-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--auth-text);
}

.auth-modal-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 1.5rem;
  color: var(--auth-text);
}

.auth-modal-alert {
  margin-bottom: 1rem;
  border-radius: 10px;
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
}

.auth-modal-alert.alert-success {
  background: rgba(34, 197, 94, 0.1);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.auth-modal-alert.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.auth-modal-alert.alert-warning {
  background: rgba(212, 168, 10, 0.08);
  color: #fde68a;
  border: 1px solid rgba(212, 168, 10, 0.2);
}

.auth-modal .auth-submit { margin-top: 0.25rem; }

/* Alerts */
.auth-card .alert {
  border-radius: 10px;
  font-size: 0.875rem;
  border: 1px solid transparent;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}

.auth-card .alert-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.2);
}

.auth-card .alert-warning {
  background: rgba(212, 168, 10, 0.08);
  color: #fde68a;
  border-color: rgba(212, 168, 10, 0.2);
}

.auth-links {
  text-align: center;
  margin-top: 1.75rem;
  font-size: 0.875rem;
  color: var(--auth-muted);
}

.auth-links a {
  color: var(--auth-gold-mid);
  text-decoration: none;
  font-weight: 600;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .auth-page--login {
    grid-template-columns: 1fr;
  }

  .auth-visual { display: none; }

  .auth-page--login .auth-panel {
    min-height: 100vh;
    background:
      radial-gradient(ellipse 80% 50% at 50% 0%, rgba(212, 168, 10, 0.07) 0%, transparent 50%),
      #030810;
  }
}

@media (max-width: 400px) {
  .auth-page--login .auth-panel { padding: 1.25rem; }
  .auth-page--login .auth-card { padding: 2rem 1.5rem; }
  .auth-page { padding: 1rem; }
}
