/* ═══════════════════════════════════════════════════════════
   Auth screens (sign in / register) — split-panel layout.
   Load after tokens.css + components.css.
   ═══════════════════════════════════════════════════════════ */

body.auth-page { min-height: 100vh; display: flex; }

/* ── Left brand panel ────────────────────────────── */
.auth-side {
  flex: 1; min-height: 100vh; padding: 44px 48px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(165deg, #373c42 0%, #711a0e 100%);
  color: #fff;
}
/* Stacked, oversized brand lockup: big logo on top, name beneath. */
.auth-side .brand {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  text-decoration: none;
}
.auth-side .brand-logo {
  width: 84px; height: 84px; flex: none; display: block; overflow: visible;
}
.auth-side .brand-name {
  font-size: 32px; font-weight: 800; letter-spacing: -.02em; line-height: 1; color: #fff;
}
.auth-side .brand-name b { color: #ef8b00; font-weight: 800; }

/* Orbiting satellite dot (animation lives in the inline SVG). */
.auth-side .logo-orbit-dot { filter: drop-shadow(0 0 3px rgba(239, 139, 0, .9)); }
@media (prefers-reduced-motion: reduce) {
  .auth-side .logo-orbit-dot { display: none; }
}

.auth-side .pitch { max-width: 420px; }
.auth-side .pitch-title {
  font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.35;
}
.auth-side .pitch-title b { color: #ef8b00; font-weight: 700; }
.auth-side .pitch-sub { font-size: 14px; color: rgba(255,255,255,.62); margin-top: 14px; }

.auth-side .checks { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.auth-side .check-line {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: rgba(255,255,255,.78);
}
.auth-side .check-line svg { color: #51e390; flex: none; }

.auth-side .foot { font-size: 12.5px; color: rgba(255,255,255,.38); }

/* ── Right form panel ────────────────────────────── */
.auth-main {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 48px 28px; background: var(--background);
}
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 4px; }
.auth-card .lede { color: var(--muted-foreground); font-size: 14px; margin-bottom: 26px; }

/* Bare label/input support: login.html & register.html markup unchanged */
.auth-card label { display: block; font-size: 13px; font-weight: 600; margin: 16px 0 6px; }
.auth-card input {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  font-size: 14.5px; background: var(--surface);
  transition: border-color .12s, box-shadow .12s;
}
.auth-card input::placeholder { color: var(--faint-foreground); }
.auth-card input:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft);
}
.auth-card input[type="hidden"] { display: none; }

.auth-card .btn {
  width: 100%; margin-top: 24px; padding: 13px;
  background: var(--primary); color: var(--primary-foreground);
  border: none; border-radius: var(--radius-md);
  font-size: 15px; font-weight: 700; box-shadow: var(--shadow-paper);
}
.auth-card .btn:hover { background: var(--primary-hover); }

.auth-card .errors {
  background: var(--fix-soft); color: var(--fix-foreground);
  border-radius: var(--radius-sm); padding: 10px 12px;
  font-size: 13px; margin-top: 14px;
}
.auth-card .errors p { margin: 0; }

.auth-card .alt { margin-top: 22px; text-align: center; font-size: 14px; color: var(--muted-foreground); }
.auth-card .alt a { color: var(--primary); font-weight: 700; text-decoration: none; }
.auth-card .alt a:hover { text-decoration: underline; }

.auth-card .guest {
  margin-top: 14px; text-align: center; font-size: 13px; color: var(--faint-foreground);
}
.auth-card .guest a { color: var(--muted-foreground); font-weight: 600; text-decoration: none; }
.auth-card .guest a:hover { color: var(--primary); }

/* Mobile brand header (left panel hidden) */
.auth-mobile-brand { display: none; }

@media (max-width: 860px) {
  .auth-side { display: none; }
  .auth-mobile-brand {
    display: flex; align-items: center; gap: 10px; margin-bottom: 28px;
  }
  .auth-mobile-brand .brand-mark {
    width: 38px; height: 38px;
    display: block; object-fit: contain;
  }
  .auth-mobile-brand .brand-name { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
  .auth-mobile-brand .brand-name b { color: var(--primary); }
}
