/* 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 ───────────────────────────────────────────────────────────── */

.sv-headline {
  font-family: 'Instrument Serif', 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.15;
  margin: 0;
  color: #f5f5f0;
  letter-spacing: -0.01em;
}

/* ─── 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 { position: relative; z-index: 1; }
.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;
  /* iOS HIG 44pt floor — visible text stays 10px; min-height enlarges
     the touchable area only. Without this the footer links measure ~30-50
     × 11-13px and are nearly impossible to tap one-handed on a phone. */
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  white-space: nowrap;
}
.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%; }
}
