/* vault-shell.css — Session™ Vault auth/onboarding shell styles.
 *
 * 2026-05-11 — the design handoff referenced this file from onboarding.html,
 * tiers.html, forgot-password.html, reset-password.html, landing-apex.html,
 * and signup.html.bak but the file itself was never written. Without it the
 * 5 surfaces fell back to inline styles + session-brand.css, which left the
 * outer card shell, halo, gradient CTA, and progress dots unstyled. This is
 * the canonical implementation of those primitives so all five pages render
 * the way the designer intended.
 *
 * Scope: shared shell layout + animated halo border + gradient submit button +
 * status pill + footer. Page-specific styles stay inline in each HTML so
 * variants don't leak.
 */

/* ─── Reset / base ───────────────────────────────────────────────────────── */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  background: #07070b;
  color: #e8e8e8;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtle film-grain over the whole page. Pages can disable via .sv-bg--clean. */
.sv-bg, body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(44, 102, 177, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 110%, rgba(212, 97, 40, 0.12), transparent 60%);
}
.sv-grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.6;
}

/* ─── Status pill ("all systems operational") ────────────────────────────── */

.sv-status {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%) translateY(-12px);
  z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  opacity: 0;
  transition: opacity 0.6s 0.2s ease, transform 0.6s 0.2s ease;
}
.sv-status.sv-mounted { opacity: 1; transform: translateX(-50%) translateY(0); }
.sv-status::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,0.6);
}

/* ─── Stage + card shell ─────────────────────────────────────────────────── */

.sv-stage {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  min-height: calc(100vh - 60px);
  padding: 56px 24px 24px;
}
.sv-card-shell {
  position: relative;
  width: 100%; max-width: 560px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.sv-card-shell.sv-mounted { opacity: 1; transform: translateY(0); }
.sv-card-shell--wide { max-width: 720px; }

.sv-card-wrap {
  position: relative;
  border-radius: 24px;
  isolation: isolate;
}

/* Halo: stroked SVG that lives inside .sv-card-wrap. The strokes are gradient-
 * filled and march around the perimeter via the sv-strobe-march keyframes. */
.sv-halo {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  border-radius: 24px; overflow: hidden;
}
.sv-halo svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block;
}

@keyframes sv-strobe-march {
  0%   { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -10000; }
}

/* Inner card body. */
.sv-card {
  position: relative; z-index: 1;
  background: rgba(7, 7, 11, 0.86);
  backdrop-filter: blur(12px);
  border-radius: 23.5px;
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 22px;
  min-height: 360px;
}
.sv-card.sv-state-idle { /* default state — no extra rules, placeholder for variants */ }
.sv-card.sv-state-loading { opacity: 0.7; }
.sv-card.sv-state-error { box-shadow: inset 0 0 0 1px rgba(250, 58, 5, 0.4); }

/* ─── Logo row ───────────────────────────────────────────────────────────── */

.sv-logo-row {
  display: flex; justify-content: center; align-items: center;
  margin-bottom: 4px;
}
.sv-logo-row a { display: inline-block; line-height: 0; }

/* ─── Headline ───────────────────────────────────────────────────────────── */

/* Headline: Geist sans (matches marketing pages) with the iridescent holo
   gradient from /001 / privacy / terms. Tommy 2026-05-11 07:37Z: "why is the
   headline text a serif font. i thought we were doing the same fonts as the
   marketing pages with the beautiful color changing text?" */
@property --sv-holo-tilt-onb { syntax: "<angle>"; inherits: false; initial-value: 110deg; }
.sv-headline {
  font-family: 'Geist', -apple-system, system-ui, sans-serif;
  font-weight: 400;
  font-size: 40px;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.025em;
  position: relative; display: inline-block;
  --sv-holo-tilt-onb: 110deg;
  background:
    linear-gradient(105deg,
      transparent 25%,
      rgba(255,255,255,0.55) 46%,
      rgba(255,255,255,0.95) 50%,
      rgba(255,255,255,0.55) 54%,
      transparent 75%),
    linear-gradient(var(--sv-holo-tilt-onb),
      oklch(0.82 0.13 250) 0%,
      oklch(0.88 0.10 200) 12%,
      oklch(0.92 0.10 110) 24%,
      oklch(0.85 0.18 70)  34%,
      oklch(0.80 0.20 25)  44%,
      oklch(0.78 0.22 340) 55%,
      oklch(0.80 0.18 295) 67%,
      oklch(0.86 0.13 220) 78%,
      oklch(0.90 0.12 175) 88%,
      oklch(0.82 0.13 250) 100%);
  background-size: 220% 100%, 260% 100%;
  background-position: -120% 0, 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 22px oklch(0.82 0.13 250 / 0.18))
          drop-shadow(0 0 40px oklch(0.78 0.18 340 / 0.10));
  animation: sv-holo-flow-onb 7.5s linear infinite;
  will-change: background-position, filter;
}
@keyframes sv-holo-flow-onb {
  0%   { background-position: -130% 0,   0% 50%; }
  100% { background-position:  130% 0, 200% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .sv-headline { animation: none; background-position: 0 0, 50% 50%; }
}

/* ─── Submit button (gradient CTA with sheen + shimmer) ──────────────────── */

.sv-submit {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%;
  padding: 14px 24px;
  border: 0; border-radius: 999px;
  background: linear-gradient(135deg, #2c66b1 0%, #d46128 100%);
  color: #ffffff;
  font-family: 'Geist', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  box-shadow: 0 8px 24px -8px rgba(212, 97, 40, 0.45);
}
.sv-submit:hover { transform: translateY(-1px); box-shadow: 0 12px 32px -8px rgba(212, 97, 40, 0.6); }
.sv-submit:active { transform: translateY(0); }
.sv-submit:disabled { opacity: 0.5; cursor: default; transform: none; }

.sv-submit__sheen {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 60%);
  border-radius: 999px;
}
.sv-submit__shimmer {
  position: absolute; top: 0; left: -120%; width: 60%; height: 100%; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.25) 50%, transparent 100%);
  animation: sv-shimmer 5s ease-in-out infinite;
}
.sv-submit__label,
.sv-submit__busy,
.sv-submit__success { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; }

/* v0.2.0.167 — three-state button (idle / busy / success). The state classes
   live on the parent .sv-card (`.sv-state-idle` | `.sv-state-busy` |
   `.sv-state-success`). Without these display rules every state span was
   rendering simultaneously, e.g. "RESET PASSWORD ↻ Updating ✓ Updated" all
   stacked on the same button. Tommy reported 2026-05-11 13:39Z. */
.sv-submit__busy,
.sv-submit__success { display: none; }
.sv-card.sv-state-busy .sv-submit__label,
.sv-card.sv-state-success .sv-submit__label { display: none; }
.sv-card.sv-state-busy .sv-submit__busy { display: inline-flex; }
.sv-card.sv-state-success .sv-submit__success { display: inline-flex; }
.sv-card.sv-state-busy .sv-submit__busy svg { animation: sv-busy-spin 0.9s linear infinite; }
@keyframes sv-busy-spin {
  to { transform: rotate(360deg); }
}

.sv-submit.btn-secondary,
.sv-submit--secondary {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
  box-shadow: none;
}
.sv-submit.btn-secondary:hover,
.sv-submit--secondary:hover { background: rgba(255,255,255,0.1); }

@keyframes sv-shimmer {
  0%   { left: -120%; }
  50%  { left: 120%; }
  100% { left: 120%; }
}

/* ─── Meta row (small "AES-256 ENCRYPTED · TLS 1.3") ─────────────────────── */

.sv-meta-row {
  display: flex; justify-content: center; align-items: center; gap: 10px;
  margin-top: 16px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.32);
}
.sv-meta-dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(255,255,255,0.28);
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */

.sv-footer {
  position: relative; z-index: 2;
  display: flex; justify-content: center; align-items: center; gap: 16px;
  padding: 18px 24px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.36);
  opacity: 0;
  transition: opacity 0.6s 0.4s ease;
}
.sv-footer.sv-mounted { opacity: 1; }
.sv-footer a {
  color: inherit; text-decoration: none;
  transition: color 0.12s ease;
}
.sv-footer a:hover { color: rgba(255,255,255,0.6); }

/* ─── Wide card variants for landing/tiers ───────────────────────────────── */

@media (max-width: 600px) {
  .sv-card { padding: 28px 22px; }
  .sv-headline { font-size: 26px; }
  .sv-stage { padding: 44px 16px 20px; }
  .sv-status { top: 12px; font-size: 10px; padding: 5px 12px; }
  .sv-card-shell--wide { max-width: 100%; }
}
