/* ============================================================
   Velocity auth pages (login / signup / verify) shared styles.
   Previously these rules were copy-pasted inline into each page; they now
   live here once. Two parts:
     1. The instrument-look auth CARD: flat surfaces, hairline borders, one
        baby-blue accent (the email path). No gradient fills or glow on the
        form itself.  (unchanged from the original inline styles)
     2. A split-screen shell: a value-prop side panel on the left, the auth
        card on the right. The panel collapses away below 900px so the card
        stays a clean centered column on phones.
   Palette is locked to theme.css tokens. No em dashes anywhere.
   ============================================================ */

/* ---------- shell / split screen ---------- */
.auth-body { min-height: 100vh; min-height: 100dvh; background: var(--bg-0); }
.auth-split { display: grid; grid-template-columns: 1.02fr 0.98fr; min-height: 100vh; min-height: 100dvh; }
.auth-panel { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.auth-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 20px; }
.auth-box { width: 100%; max-width: 400px; text-align: center; }
/* the form logo is only shown on mobile; on desktop the side panel brand carries it */
.auth-logo { width: 44px; height: 44px; margin: 0 auto 28px; display: none; }

/* back-to-home: a quiet text affordance with a hover-sliding arrow (no heavy pill) */
.auth-home { position: fixed; top: 22px; left: 24px; z-index: 5; display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; margin: -8px -10px; border-radius: var(--r-sm); color: var(--text-mute); font-size: 13.5px; font-weight: 500; letter-spacing: -.01em; transition: color var(--t), background var(--t); }
.auth-home:hover { color: var(--text); background: var(--surface); }
.auth-home svg { width: 16px; height: 16px; transition: transform var(--t) var(--e-out); }
.auth-home:hover svg { transform: translateX(-3px); }
.auth-title { font-size: clamp(22px, 4vw, 26px); font-weight: 700; letter-spacing: -.025em; color: var(--text); line-height: 1.12; }
.auth-sub { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--text-dim); }

/* ---------- value-prop side panel ---------- */
.auth-aside {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 56px clamp(40px, 6vw, 72px);
  border-right: 1px solid var(--hairline);
  background: radial-gradient(120% 85% at 12% 0%, var(--accent-grad-soft), transparent 60%), var(--bg-1);
  overflow: hidden;
}
/* faint blueprint grid, masked so it fades out toward the card */
.auth-aside::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .6;
  background-image:
    linear-gradient(var(--hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(75% 60% at 22% 12%, #000, transparent 78%);
  mask-image: radial-gradient(75% 60% at 22% 12%, #000, transparent 78%);
}
.auth-aside-inner { position: relative; z-index: 1; top: -5vh; max-width: 460px; }
.auth-aside-brand { display: inline-flex; align-items: center; gap: 11px; margin-bottom: 22px; font-family: 'Inter', system-ui, sans-serif; font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: var(--text); }
.auth-aside-brand img { width: 34px; height: 34px; }
.auth-aside-head { font-size: clamp(25px, 2.8vw, 32px); font-weight: 700; letter-spacing: -.03em; line-height: 1.16; color: var(--text); max-width: 26ch; }
.auth-aside-list { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.auth-aside-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; color: var(--text-dim); }
.auth-aside-list svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--accent); margin-top: 1px; }
.auth-aside-chips { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 9px; }
.auth-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--hairline); font-size: 12.5px; font-weight: 600; color: var(--text-dim); }
.auth-chip svg { width: 14px; height: 14px; color: var(--accent); }

/* ---------- screens (one visible at a time) ---------- */
.auth-screen { display: none; }
.auth-screen.is-active { display: block; animation: authFade .24s var(--e-out) both; }
@keyframes authFade { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .auth-screen.is-active { animation: none; } }

/* ---------- provider buttons + divider ---------- */
.auth-methods { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.auth-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; padding: 0 20px; border-radius: var(--r-md); border: 1px solid var(--hairline-strong); background: var(--bg-1); font-family: inherit; font-size: 15px; font-weight: 600; color: var(--text); cursor: pointer; transition: background var(--t), border-color var(--t), color var(--t), transform var(--t-fast), opacity var(--t); }
.auth-btn:hover { background: var(--surface-2); border-color: rgba(255,255,255,.2); }
.auth-btn:active { transform: scale(.99); }
.auth-btn[disabled] { opacity: .55; cursor: default; }
.auth-btn-accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.auth-btn-accent:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
/* brand marks keep their own colors and sit before the label */
.auth-brand { width: 18px; height: 18px; flex: 0 0 auto; }
/* "or" divider between the social buttons and the email path */
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 4px 2px; color: var(--text-mute); font-size: 12.5px; letter-spacing: .02em; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--hairline); }

.auth-note { margin-top: 16px; font-size: 13.5px; line-height: 1.5; color: var(--text-dim); min-height: 0; }
.auth-alt { margin-top: 26px; font-size: 14px; color: var(--text-dim); }
.auth-alt a { color: var(--text); font-weight: 600; }
.auth-alt a:hover { text-decoration: underline; }

/* ---------- form fields ---------- */
.auth-field { margin-top: 26px; text-align: left; }
.auth-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-dim); margin-bottom: 8px; }
.auth-input { width: 100%; min-height: 52px; padding: 0 16px; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--hairline-strong); color: var(--text); font-size: 15px; font-family: inherit; transition: border-color var(--t), box-shadow var(--t); }
.auth-input::placeholder { color: var(--text-mute); }
.auth-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,192,242,.22); }
.auth-input[aria-invalid="true"] { border-color: var(--danger); }
.auth-input + .auth-input { margin-top: 10px; }
.auth-hint { margin-top: 8px; font-size: 12.5px; line-height: 1.5; color: var(--text-mute); text-align: left; }
.auth-continue { margin-top: 14px; }
.auth-err { margin-top: 12px; font-size: 13px; line-height: 1.45; color: var(--danger); min-height: 15px; text-align: left; }
.auth-back { margin-top: 20px; font-size: 14px; font-weight: 600; color: var(--text-dim); background: none; border: 0; cursor: pointer; font-family: inherit; padding: 6px 10px; border-radius: var(--r-xs); }
.auth-back:hover { color: var(--text); }

/* ---------- status screens (verify / done) ---------- */
.auth-icon { width: 54px; height: 54px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); background: var(--bg-2); border: 1px solid var(--hairline-strong); }
.auth-icon svg { width: 26px; height: 26px; }
/* Outcome tints for the status icon. Colour is a reinforcement only: every screen
   using these also states the outcome in its heading, so nothing depends on hue. */
.auth-icon-ok { color: var(--safe); border-color: rgba(87,217,163,.35); }
.auth-icon-bad { color: var(--danger); border-color: rgba(255,107,122,.35); }
.auth-mail { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--text); }

.auth-foot { padding: 22px; text-align: center; font-size: 12.5px; color: var(--text-mute); }
.auth-foot a { color: var(--text-dim); }
.auth-foot a:hover { color: var(--text); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- collapse to a single centered column on phones/tablets ---------- */
@media (max-width: 900px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-logo { display: block; }   /* bring the logo back when the panel is hidden */
  .auth-home { top: 16px; left: 16px; }
}
