/* ── Shared standalone-auth page design system ──────────────────────────────
   Used by the 8 pages that do NOT extend base.html (own full <head>, no
   shared nav/footer): account/login.html, password_reset*.html,
   account_inactive.html, registration/register.html, onboarding.html.
   Each of those pages links this file directly.

   Only the CORE recipe for each class lives here. Page-specific sizing
   (glass-card width/max-width/padding varies 390-480px per page, button
   margin-top varies) stays in that page's own <style> block.
   ───────────────────────────────────────────────────────────────────────── */

/* Matches how the Claude Design mockups render text — without this, Chrome/
   Safari's default font rendering is visibly heavier/bolder than the design
   source, especially at lighter weights (400/500). Loads before each page's
   own <style>/<link>, which never overrides these two properties, so this
   reaches all 8 pages without repeating it in each of them. */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Page reset + centered gradient backdrop — byte-identical across all 8
   pages before this was centralized (confirmed via diff, not assumed).
   Page-specific overrides (none currently exist) would stay page-local. */
*, *::before, *::after { box-sizing: border-box; }
::-webkit-scrollbar { display: none; }
body {
  margin: 0; padding: 24px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, #dde8f0 0%, #e8e4f0 50%, #dfe8ec 100%);
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
}

/* Auth card container. max-width (390-480px), padding, and text-align vary
   per page and stay in that page's own <style> block — do not add them here. */
.glass-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 0.5px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 2px 14px rgba(80, 100, 150, 0.06);
  border-radius: 0.75rem;
}

/* Primary action button. display/width/padding/margin-top vary per page
   (block+full-width form submit vs. inline-block link on
   password_reset_from_key_done) and stay page-local. :disabled opacity
   also varies (0.75 vs 0.6) where a page has a disable-able state — keep
   that page-local too. The :not(:disabled) hover selector is safe to use
   everywhere even on pages that never set :disabled. */
.btn-primary {
  background: #f97316;
  color: #fff;
  border: none;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', system-ui, sans-serif;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-primary:hover:not(:disabled) { background: #ea6c0a; }

/* Labeled text input. Used on: login, password_reset, password_reset_from_key,
   register. .field's own margin-bottom differs per page (1rem vs 1.25rem on
   register) and stays page-local. NOT the same component as onboarding.html's
   .field-label/.field-input convention — do not merge those. */
.field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #5a6375;
  margin-bottom: 0.5rem;
}
.field input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.75);
  border: 0.5px solid rgba(100, 110, 140, 0.18);
  border-radius: 0.5rem;
  font-size: 13px;
  color: #1e2a3a;
  font-family: 'Inter', system-ui, sans-serif;
  transition: border-color 0.15s, background 0.15s;
  outline: none;
}
.field input::placeholder { color: #9aa3b2; }
.field input:focus { border-color: #f97316; background: rgba(255, 255, 255, 0.85); }
.field input.has-error { border-color: rgba(220, 38, 38, 0.5); }
.field-error { font-size: 12px; color: #dc2626; margin-top: 0.35rem; }

/* "OR" divider between the primary form and social buttons. Used on: login,
   register, onboarding. margin differs (1.5rem 0 vs 1rem 0 on onboarding)
   and stays page-local. .divider span color mostly #9aa3b2 (register,
   onboarding); login overrides locally with #7a8499. */
.divider { display: flex; align-items: center; gap: 1rem; }
.divider-line { flex: 1; height: 0.5px; background: rgba(100, 110, 140, 0.12); }
.divider span { font-size: 12px; color: #9aa3b2; text-transform: uppercase; letter-spacing: 0.08em; }

/* OAuth provider button. Used on: login, register, onboarding. :last-child
   (login, register) and :disabled (onboarding) are real per-page states,
   kept page-local. */
.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px 20px;
  background: #fff;
  border: 1.5px solid #d1d5db;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  font-family: 'Inter', system-ui, sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
  margin-bottom: 0.75rem;
}
.btn-social:hover { background: rgba(255, 255, 255, 0.9); border-color: #9ca3af; }

/* Logo above the card content. Used on: password_reset, password_reset_done,
   password_reset_from_key, password_reset_from_key_done, account_inactive.
   NOT login.html, which uses its own .logo-img/.logo-sub structure with a
   subtitle line under the mark — a different component, do not merge. */
.logo-wrap { text-align: center; margin-bottom: 2rem; }
.logo-wrap img { height: 32px; width: auto; }

/* Plain footer link ("Back to sign in" etc). Used on: login, password_reset,
   password_reset_done, account_inactive. NOT register.html's .card-footer a,
   which is a highlighted amber CTA-style link with different color/weight/
   hover — a different component despite the shared class name, do not merge.
   The .card-footer block itself (padding/margin/text-align/font) varies too
   much per page to share and stays page-local everywhere. */
.card-footer a { font-size: 13px; color: #5a6375; text-decoration: none; }
.card-footer a:hover { color: #2c3a52; }
