/* platform-core account pages (signup / login / verify / home).
   Deliberately the SAME tokens, fonts and components as stockproof's
   screener/static/screener/css/app.css (the bundle's design system --
   see docs: claude/design-system-decision-2026-08.md), trimmed to what an
   auth page needs, so the MarketDeck login step looks like part of the
   product it was reached from instead of a bare white box. Fonts are the
   latin subsets copied from stockproof's own static/fonts. Keep the
   palette in sync with app.css if it ever changes there.

   2026-09-20 refresh: this page is the ONE login every product now funnels
   through (marketdeck.in SSO fix), so it's worth being the best-looking
   page in the bundle rather than the plainest. Kept inside the system's
   own sharp 3px/6px radius language (--r/--r-lg, unchanged, canonical
   values from charting-v1's app.css) rather than introducing a softer,
   inconsistent look -- the goal is "premium within the brand", not a
   different brand. What actually changed: labels are no longer tiny
   uppercase mono (read as an internal admin form); the card uses --r-lg
   and a deeper two-layer shadow so it reads as the clear focal point;
   inputs/buttons are taller with real hover/focus transitions; a password
   show/hide toggle was added (plain SVG + vanilla JS, no dependency); and
   errors render as a proper alert block instead of a bare red list. */

@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 800; font-display: swap;
  src: url("../fonts/Archivo-800.cd56e2ec63d7.woff2") format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/IBMPlexSans-400.b2c9031d9fd6.woff2") format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/IBMPlexSans-500.b2c9031d9fd6.woff2") format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/IBMPlexSans-600.b2c9031d9fd6.woff2") format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/IBMPlexMono-400.79936b18df9f.woff2") format('woff2'); }

@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../fonts/SpaceGrotesk-var.87c506d88b9f.woff2") format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../fonts/Inter-var.260c81a4759b.woff2") format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url("../fonts/JetBrainsMono-var.b636a65da4f0.woff2") format('woff2'); }

:root {
  --paper: #EEF0EC;
  --surface: #FBFCFA;
  --ink: #182231;
  --verified: #0E6E63;
  --verified-ink: #0A5751;
  --attention: #875710;
  --slate: #5B6572;
  --rule: #D7DBD5;
  --rule-strong: #BFC5BD;
  --risk: #A23B2E;
  --on-accent: #FFFFFF;
  --ink-rgb: 24,34,49;
  --verified-rgb: 14,110,99;
  --attention-rgb: 135,87,16;
  --risk-rgb: 162,59,46;
  --verified-tint: rgba(var(--verified-rgb), 0.08);
  --attention-tint: rgba(var(--attention-rgb), 0.12);
  --risk-tint: rgba(var(--risk-rgb), 0.10);
  --shadow-1: 0 2px 6px rgba(var(--ink-rgb), 0.08), 0 1px 2px rgba(var(--ink-rgb), 0.06);
  --shadow-card: 0 12px 28px rgba(var(--ink-rgb), 0.12), 0 2px 8px rgba(var(--ink-rgb), 0.07);
  --font-display: 'Archivo', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', 'Consolas', monospace;
  --fs-display: clamp(1.7rem, 1.15rem + 2.2vw, 2.35rem);
  --fs-body: 1rem; --fs-sm: 0.855rem; --fs-xs: 0.72rem;
  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem;
  --r: 3px; --r-lg: 6px;
  --nav-bg: #0F1520;
  --nav-ink: #E7EAF0;
  color-scheme: light;
  accent-color: var(--verified);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #10151E;
    --surface: #1A2330;
    --ink: #E7EAF0;
    --verified: #2FC7AF;
    --verified-ink: #5FDCC7;
    --attention: #E0A430;
    --slate: #94A1B3;
    --rule: #202A38;
    --rule-strong: #2E3A4B;
    --risk: #F28B7D;
    --on-accent: #10151E;
    --verified-rgb: 47,199,175;
    --attention-rgb: 224,164,48;
    --risk-rgb: 242,139,125;
    --ink-rgb: 0,0,0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #10151E; --surface: #1A2330; --ink: #E7EAF0; --verified: #2FC7AF;
  --verified-ink: #5FDCC7; --attention: #E0A430; --slate: #94A1B3; --rule: #202A38;
  --rule-strong: #2E3A4B; --risk: #F28B7D; --on-accent: #10151E;
  --verified-rgb: 47,199,175; --attention-rgb: 224,164,48; --risk-rgb: 242,139,125; --ink-rgb: 0,0,0;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--verified); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--verified-ink); }

.topbar {
  background: var(--nav-bg); color: var(--nav-ink); border-bottom: 2px solid var(--verified);
  padding: 0 var(--s5); height: 3rem; display: flex; align-items: center; gap: var(--s5);
}
.topbar .brand {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--nav-ink); text-decoration: none;
}
.topbar .brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.3rem; height: 1.3rem; border-radius: var(--r); background: var(--verified);
  color: var(--nav-bg); font-family: var(--font-display); font-weight: 800; font-size: 0.75rem;
}
.topbar nav { display: flex; gap: var(--s4); margin-left: auto; }
.topbar nav a { color: var(--nav-ink); opacity: 0.8; text-decoration: none; font-size: var(--fs-sm); font-weight: 500; }
.topbar nav a:hover { opacity: 1; color: var(--nav-ink); }

main.main-narrow { max-width: 40rem; margin: 0 auto; padding: var(--s7) var(--s5) var(--s7); }
.page-head { margin-bottom: var(--s5); text-align: center; }
.page-head h1 { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-display); margin: 0; letter-spacing: -0.01em; line-height: 1.1; }
.page-head .sub { color: var(--slate); font-size: var(--fs-sm); margin: var(--s2) 0 0; }

.auth-card {
  max-width: 24rem; background: var(--surface); border: 1px solid var(--rule-strong);
  border-radius: var(--r-lg); padding: var(--s6); position: relative; margin: var(--s4) auto 0;
  box-shadow: var(--shadow-card);
}
.auth-card p { margin: 0 0 var(--s3); }
.auth-card p:last-child { margin-bottom: 0; }
.auth-card .field-row { margin-bottom: var(--s4); }
.identity-options { display: grid; gap: var(--s2); margin: var(--s5) 0; }
.identity-option { display: block; text-align: center; text-decoration: none; }
.email-option { border-top: 1px solid var(--rule); padding-top: var(--s4); }
.email-option summary { cursor: pointer; color: var(--verified); font-weight: 600; }
.email-option[open] summary { margin-bottom: var(--s4); }
.auth-card label {
  display: block; font-family: var(--font-body); font-weight: 500; font-size: var(--fs-sm);
  color: var(--ink); margin-bottom: var(--s2);
}
.auth-card input {
  width: 100%; background: var(--paper); border: 1px solid var(--rule-strong);
  color: var(--ink); font-family: var(--font-body); font-size: var(--fs-body);
  padding: 0.72rem 0.85rem; border-radius: var(--r-lg); height: 2.75rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.auth-card input::placeholder { color: var(--slate); opacity: 0.75; }
.auth-card input:hover { border-color: var(--slate); }
.auth-card input:focus { outline: none; border-color: var(--verified); box-shadow: 0 0 0 3px var(--verified-tint); }
.auth-card .help { font-size: var(--fs-xs); color: var(--slate); margin-top: var(--s1); display: block; line-height: 1.4; }
.auth-alt-card { margin-top: var(--s5); }
.auth-alt-card h2 { font-size: var(--fs-sm); margin: 0 0 var(--s2); font-weight: 600; }

.field-row.password { position: relative; }
.field-row.password input { padding-right: 2.75rem; }
.pw-toggle {
  position: absolute; right: 0.4rem; top: 2.1rem; width: 2rem; height: 2rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; border-radius: var(--r); color: var(--slate); cursor: pointer;
  padding: 0;
}
.pw-toggle:hover { color: var(--ink); background: var(--paper); }
.pw-toggle:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--verified-tint); }
.pw-toggle svg { width: 1.1rem; height: 1.1rem; }
.pw-toggle .eye-off { display: none; }
.pw-toggle[aria-pressed="true"] .eye-on { display: none; }
.pw-toggle[aria-pressed="true"] .eye-off { display: block; }

.btn {
  font-family: var(--font-body); font-weight: 600; font-size: var(--fs-sm);
  padding: 0.5rem 1.1rem; border-radius: var(--r-lg); cursor: pointer; height: 2.75rem;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  background: var(--verified); color: var(--on-accent); border: 1px solid var(--verified-ink);
  transition: background-color 0.15s ease, transform 0.1s ease;
}
.btn:hover { background: var(--verified-ink); color: var(--on-accent); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--verified-tint); }
.btn:active { transform: scale(0.97); }
.auth-card .btn { width: 100%; margin-top: var(--s2); }
.btn-ghost { background: transparent; color: var(--slate); border: 1px solid var(--rule-strong); font-weight: 500; }
.btn-ghost:hover { background: var(--paper); border-color: var(--slate); color: var(--ink); }

.auth-card .auth-alt, .auth-alt { color: var(--slate); font-size: var(--fs-sm); margin: var(--s5) 0 0; text-align: center; }
.errorlist { color: var(--risk); font-size: var(--fs-xs); list-style: none; padding: 0; margin: var(--s1) 0 var(--s3); }
.notice {
  font-size: var(--fs-sm); border-radius: var(--r); padding: var(--s3) var(--s4); margin-bottom: var(--s4);
  border: 1px solid var(--rule-strong); border-left: 3px solid var(--slate); background: var(--paper); color: var(--ink);
}
.notice.success, .notice.info { color: var(--verified-ink); border-color: rgba(var(--verified-rgb), 0.45); border-left-color: var(--verified); background: var(--verified-tint); }
.notice.error, .notice.warning { color: var(--attention); border-color: rgba(var(--attention-rgb), 0.45); border-left-color: var(--attention); background: var(--attention-tint); }
.notice.error { color: var(--risk); border-color: rgba(var(--risk-rgb), 0.4); border-left-color: var(--risk); background: var(--risk-tint); }

.product-list { list-style: none; padding: 0; margin: var(--s4) 0 0; display: grid; gap: var(--s3); }
.product-list a {
  display: flex; align-items: center; justify-content: space-between; text-decoration: none;
  background: var(--paper); border: 1px solid var(--rule-strong); border-radius: var(--r);
  padding: var(--s3) var(--s4); color: var(--ink); font-weight: 500;
  transition: border-color 0.15s ease;
}
.product-list a:hover { border-color: var(--verified); color: var(--ink); }
.product-list a span { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--slate); text-transform: uppercase; letter-spacing: 0.04em; }
.product-list a:hover span { color: var(--verified); }
.signed-in { font-size: var(--fs-sm); color: var(--slate); margin: 0 0 var(--s2); }
.signed-in strong { color: var(--ink); }
.logout-form { margin-top: var(--s5); text-align: center; }

/* Central MarketDeck auth surface. The surrounding page stays quiet so the
   form or confirmation step is the clear primary task. */
body { display: flex; justify-content: center; align-items: center; padding: 2rem 1.25rem; }
.auth-shell { width: 100%; max-width: 30rem; }
.brand {
  display: flex; width: max-content; align-items: center; gap: 0.7rem;
  margin: 0 auto 2rem; color: var(--ink); text-decoration: none;
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 800;
  letter-spacing: -0.035em;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: 0.55rem;
  background: var(--ink); color: var(--surface); font-size: 1.15rem;
  letter-spacing: -0.08em; padding-right: 0.08em;
}
.auth-card {
  max-width: none; margin: 0; padding: clamp(1.5rem, 5vw, 2.5rem);
  border-radius: 0.9rem; border-color: var(--rule);
  box-shadow: 0 14px 38px rgba(var(--ink-rgb), 0.07), 0 2px 8px rgba(var(--ink-rgb), 0.04);
}
.auth-card h1 {
  font-family: var(--font-display); font-size: clamp(1.7rem, 5vw, 2.1rem);
  line-height: 1.15; letter-spacing: -0.045em; margin: 0 0 0.5rem;
}
.auth-card .sub { color: var(--slate); margin: 0 0 1.75rem; }
.auth-card .context {
  display: inline-flex; color: var(--verified-ink); background: var(--verified-tint);
  border: 1px solid rgba(var(--verified-rgb), 0.22); border-radius: 999px;
  padding: 0.3rem 0.7rem; font-size: 0.78rem; font-weight: 600;
  margin: 0 0 1.35rem;
}
.auth-card .field-row { margin-bottom: 1.25rem; }
.auth-card label {
  font-family: var(--font-body); font-size: 0.875rem; font-weight: 600;
  text-transform: none; letter-spacing: 0; color: var(--ink); margin-bottom: 0.45rem;
}
.auth-card input:not([type="hidden"]) {
  min-height: 2.85rem; padding: 0.7rem 0.85rem; border-radius: 0.45rem;
  background: var(--surface); font-size: 1rem;
}
.auth-card input:focus-visible, .btn:focus-visible, a:focus-visible {
  outline: 2px solid var(--verified); outline-offset: 2px;
}
.auth-card .help { margin-top: 0.4rem; font-size: 0.8rem; }
.auth-card .btn { min-height: 2.85rem; height: auto; border-radius: 0.45rem; font-size: 0.95rem; margin-top: 0.35rem; }
.auth-card .auth-alt { margin-top: 1.5rem; }
.secondary-link { text-align: center; font-size: 0.855rem; margin: 0.65rem 0 0 !important; }
.field-error { color: var(--risk); font-size: 0.8rem; margin: 0.4rem 0 0 !important; }
.shell-foot { color: var(--slate); text-align: center; font-size: 0.78rem; margin: 1.5rem auto 0; }
@media (max-width: 430px) {
  body { align-items: flex-start; padding: 2rem 1rem; }
  .brand { margin-bottom: 1.5rem; }
  .auth-card { padding: 1.5rem; }
}

/* The shared MarketDeck mark is an image in the account shell. */
.auth-shell img.brand-mark { padding: 0; object-fit: contain; background: transparent; }

/* Research entry (login and signup), restyled 2026-11-22 from tab 3 of docs/design/research-connect-journey.html in the
   stockproof repo (locked design): near-black ground, Space Grotesk / Inter / JetBrains Mono, one teal accent, a calm
   left panel with the plain-words promise and three facts, the form on the right, an amber disclosure line.
   Look only: no markup that carries behaviour changed (field names, ids, autocomplete, CSRF, next, links). Every colour
   is declared once on body.auth-entry; the rules below only reference these tokens. Scoped to body.auth-entry, which
   since 2026-11-23 is every page of the sign-in flow and the signed-in account page (home.html); the compact light
   surface remains only for pages that extend the base without that class (community/connect.html). */
body.auth-entry {
  --paper: #03050A;
  --surface: #080C14;
  --raised: #0C121D;
  --ink: #E8EEF8;
  --slate: #9AA8BC;
  --muted: #8696AC;
  --rule: #16202F;
  --rule-strong: #22324A;
  --verified: #2FC7AF;
  --verified-ink: #7DF2DE;
  --verified-rgb: 47,199,175;
  --on-accent: #02110E;
  --amber: #FFB020;
  --amber-ink: #F5D2A0;
  --amber-rgb: 255,176,32;
  --risk: #FF7A88;
  --risk-rgb: 255,92,108;
  --focus: #9CC4FF;
  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', 'Consolas', monospace;
  color-scheme: dark;
  display: block;
  padding: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  overflow-x: clip;
}
.auth-entry .auth-shell {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  background:
    radial-gradient(640px 420px at 28% 22%, rgba(var(--verified-rgb), 0.16), transparent 62%),
    linear-gradient(to right, transparent 51.2%, var(--surface) 51.2%);
}
.auth-entry .brand {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  margin: 0;
  padding: 2rem clamp(1.5rem, 4.5vw, 4.5rem) 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.auth-entry .brand img.brand-mark { width: 2.1rem; height: 2.1rem; }
.entry-header-label {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: end;
  margin: 0;
  padding: 2rem clamp(1.5rem, 4.5vw, 4.5rem) 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

/* left panel */
.entry-intro {
  position: relative;
  grid-column: 1;
  grid-row: 2;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem clamp(1.5rem, 4.5vw, 4.5rem) clamp(2.5rem, 6vh, 4.5rem);
  min-width: 0;
}
.entry-lines {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-height: 9rem;
  margin-bottom: 1.5rem;
  pointer-events: none;
  opacity: 0.8;
}
.entry-intro-body { position: relative; max-width: 34rem; }
.entry-eyebrow {
  margin: 0 0 1rem;
  color: var(--verified-ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.entry-intro h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.6vw, 3.3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.entry-description {
  margin: 1rem 0 0;
  max-width: 30rem;
  color: var(--slate);
  font-size: 1.04rem;
  line-height: 1.55;
}
.entry-points {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--rule-strong);
  display: grid;
  gap: 0.7rem;
}
.entry-points li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--slate);
  font-size: 0.92rem;
  line-height: 1.5;
}
.entry-points li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.5rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--verified);
  box-shadow: 0 0 10px rgba(var(--verified-rgb), 0.6);
}

/* right panel (the form) */
.auth-entry .auth-card.entry-form {
  grid-column: 2;
  grid-row: 2;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4.5vw, 4.5rem);
  border: 0;
  border-left: 1px solid var(--rule-strong);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  min-width: 0;
}
.entry-form > * { width: 100%; max-width: 28rem; }
.entry-form .entry-eyebrow { color: var(--muted); }
.auth-entry .entry-form .context {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.4rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(var(--verified-rgb), 0.3);
  border-radius: 0.65rem;
  background: rgba(var(--verified-rgb), 0.08);
  color: var(--verified-ink);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.auth-entry .entry-form h1 {
  max-width: 28rem;
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.4vw, 2.1rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.auth-entry .entry-form .sub {
  margin: 0 0 1.4rem;
  color: var(--slate);
  font-size: 0.95rem;
  line-height: 1.5;
}
.auth-entry .entry-form .notice {
  border-radius: 0.6rem;
  border: 1px solid var(--rule-strong);
  border-left: 3px solid var(--slate);
  background: var(--raised);
  color: var(--ink);
  font-size: 0.88rem;
}
.auth-entry .entry-form .notice.success,
.auth-entry .entry-form .notice.info { border-color: rgba(var(--verified-rgb), 0.4); border-left-color: var(--verified); background: rgba(var(--verified-rgb), 0.08); color: var(--verified-ink); }
.auth-entry .entry-form .notice.warning { border-color: rgba(var(--amber-rgb), 0.4); border-left-color: var(--amber); background: rgba(var(--amber-rgb), 0.07); color: var(--amber-ink); }
.auth-entry .entry-form .notice.error { border-color: rgba(var(--risk-rgb), 0.45); border-left-color: var(--risk); background: rgba(var(--risk-rgb), 0.09); color: var(--risk); }
.auth-entry .entry-form .errorlist {
  margin: 0 0 1.1rem;
  padding: 0.7rem 0.9rem;
  list-style: none;
  border: 1px solid rgba(var(--risk-rgb), 0.45);
  border-left: 3px solid var(--risk);
  border-radius: 0.6rem;
  background: rgba(var(--risk-rgb), 0.09);
  color: var(--risk);
  font-size: 0.88rem;
  line-height: 1.45;
}
.auth-entry .entry-form .field-error { margin: 0.4rem 0 0 !important; color: var(--risk); font-size: 0.82rem; }
.auth-entry .entry-form .field-row { margin-bottom: 1rem; }
.auth-entry .entry-form label {
  display: block;
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.auth-entry .entry-form input:not([type="hidden"]) {
  width: 100%;
  min-height: 3rem;
  height: auto;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--rule-strong);
  border-radius: 0.65rem;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.auth-entry .entry-form input:not([type="hidden"]):hover { border-color: var(--muted); }
.auth-entry .entry-form input:not([type="hidden"]):focus {
  outline: none;
  border-color: var(--verified);
  box-shadow: 0 0 0 3px rgba(var(--verified-rgb), 0.22);
}
.auth-entry .entry-form input[aria-invalid="true"] { border-color: var(--risk); }
.auth-entry .entry-form .field-row.password input { padding-right: 3rem; }
.auth-entry .entry-form .pw-toggle { top: 2.05rem; right: 0.45rem; color: var(--muted); border-radius: 0.4rem; }
.auth-entry .entry-form .pw-toggle:hover { color: var(--ink); background: var(--raised); }
.auth-entry .entry-form .pw-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; box-shadow: none; }
.auth-entry .entry-form .help { color: var(--muted); font-size: 0.8rem; margin-top: 0.4rem; }
.auth-entry .entry-form .btn {
  width: 100%;
  min-height: 3.1rem;
  height: auto;
  margin: 0.35rem 0 0;
  border: 1px solid var(--verified);
  border-radius: 0.65rem;
  background: var(--verified);
  color: var(--on-accent);
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 700;
  transition: filter 0.15s ease, transform 0.1s ease;
}
.auth-entry .entry-form .btn:hover { background: var(--verified); filter: brightness(1.1); }
.auth-entry .entry-form .btn:active { transform: scale(0.99); }
.auth-entry .entry-form .btn.btn-ghost,
.auth-entry .entry-form .identity-option {
  background: transparent;
  border-color: var(--rule-strong);
  color: var(--ink);
}
.auth-entry .entry-form .identity-option:hover { background: var(--raised); border-color: var(--muted); filter: none; }
.auth-entry .identity-options { margin: 0; display: block; }
.entry-divider {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 1.1rem 0 !important;
  color: var(--muted);
  font-size: 0.8rem;
}
.entry-divider::before,
.entry-divider::after { content: ""; flex: 1; height: 1px; background: var(--rule-strong); }
.auth-entry .entry-form .secondary-link,
.auth-entry .entry-form .auth-alt {
  margin: 1.1rem 0 0 !important;
  color: var(--slate);
  text-align: center;
  font-size: 0.86rem;
  line-height: 1.6;
}
.auth-entry .entry-form a { color: var(--verified-ink); text-decoration: none; }
.auth-entry .entry-form a:hover { text-decoration: underline; }
.auth-entry .entry-form .btn,
.auth-entry .entry-form .identity-option { text-decoration: none; }
.auth-entry a:focus-visible,
.auth-entry .btn:focus-visible,
.auth-entry .entry-form input:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.auth-entry .entry-form input:not([type="hidden"]):focus-visible { outline-offset: 1px; }
.entry-disclosure {
  margin-top: 1.6rem !important;
  padding: 0.7rem 0.9rem;
  border-left: 3px solid var(--amber);
  border-radius: 0 0.5rem 0.5rem 0;
  background: rgba(var(--amber-rgb), 0.06);
  color: var(--amber-ink);
  font-size: 0.8rem;
  line-height: 1.5;
}
.entry-disclosure b { color: var(--amber); }
.auth-entry .shell-foot { display: none; }

@media (max-width: 900px) {
  .auth-entry .auth-shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    background: radial-gradient(520px 340px at 30% 6%, rgba(var(--verified-rgb), 0.14), transparent 62%), var(--paper);
  }
  .auth-entry .brand { grid-column: 1; grid-row: 1; padding: 1.4rem 1.5rem 0; }
  .entry-header-label { display: none; }
  .entry-intro { grid-column: 1; grid-row: 2; justify-content: flex-start; padding: 1.5rem 1.5rem 1.75rem; }
  .entry-lines { flex: 0 0 8rem; min-height: 0; }
  .entry-intro h2 { font-size: clamp(2rem, 6vw, 2.8rem); }
  .auth-entry .auth-card.entry-form {
    grid-column: 1;
    grid-row: 3;
    justify-content: flex-start;
    padding: 2rem 1.5rem 3rem;
    border-left: 0;
    border-top: 1px solid var(--rule-strong);
    background: var(--surface);
  }
}
@media (max-width: 600px) {
  .entry-intro { padding: 1.4rem 1.25rem 1.5rem; }
  .entry-points { display: none; }
  .entry-lines { flex: 0 0 6rem; min-height: 0; margin-bottom: 1rem; opacity: 0.6; }
  .auth-entry .brand { padding: 1.2rem 1.25rem 0; font-size: 1.1rem; }
  .auth-entry .auth-card.entry-form { padding: 1.6rem 1.25rem 2.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-entry .entry-form .btn,
  .auth-entry .entry-form input { transition: none; }
}

/* The rest of the sign-in flow (password reset request / sent / new password / changed, resend confirmation, check
   your email, link didn't work, mobile code), moved onto the same layout on 2026-11-23. Look only: these rules add
   body copy, the envelope badge, page-level notices and button links; they reuse the tokens declared above. */
.auth-entry .entry-form p { line-height: 1.6; }
.auth-entry .entry-form > p:not([class]) { color: var(--ink); font-size: 0.97rem; margin: 0 0 0.9rem; }
.auth-entry .entry-form strong { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.auth-entry .entry-form .notice { margin: 0 0 1.1rem; padding: 0.75rem 0.9rem; line-height: 1.5; overflow-wrap: anywhere; }
.auth-entry .entry-form .notice strong { color: inherit; }
.auth-entry .entry-form h1 + form,
.auth-entry .entry-form h1 + .notice,
.auth-entry .entry-form h1 + .errorlist { margin-top: 1.1rem; }
.entry-icon { margin: 0 0 1.25rem; }
.entry-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  border: 1px solid rgba(var(--verified-rgb), 0.35);
  background: rgba(var(--verified-rgb), 0.1);
  color: var(--verified-ink);
  box-shadow: 0 0 24px rgba(var(--verified-rgb), 0.16);
}
.entry-icon-badge svg { width: 1.75rem; height: 1.75rem; }
.auth-entry .entry-form a.btn:hover { text-decoration: none; }
.auth-entry .entry-form .auth-alt .btn { margin-top: 0; }
.auth-entry .entry-form form + .help { margin: 1.1rem 0 0.6rem; }

/* The signed-in account page (home.html), moved onto the same layout on 2026-11-23 with the lighter left panel
   (.is-account: shorter headline, no list of facts). Look only: the products, the account line, the notices and the log
   out form are the same elements as before. Reuses the tokens declared on body.auth-entry. */
.entry-intro.is-account .entry-description { max-width: 28rem; }
.auth-entry .entry-form .signed-in {
  margin: 0 0 1.1rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--rule-strong);
  border-radius: 0.65rem;
  background: var(--raised);
  color: var(--slate);
  font-size: 0.88rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.auth-entry .entry-form .signed-in strong { color: var(--ink); font-weight: 600; }
.auth-entry .entry-form .product-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.auth-entry .entry-form .product-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.25rem;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--rule-strong);
  border-radius: 0.65rem;
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.auth-entry .entry-form .product-list a:hover { border-color: var(--verified); background: var(--raised); text-decoration: none; }
.auth-entry .entry-form .product-list a span {
  flex: none;
  color: var(--verified-ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 0.15s ease;
}
.auth-entry .entry-form .product-list a:hover span { transform: translateX(3px); }
.auth-entry .entry-form .logout-form { margin: 1.4rem 0 0; text-align: center; }
.auth-entry .entry-form .logout-form .btn { margin-top: 0; }
@media (max-width: 900px) {
  .entry-intro.is-account { padding-bottom: 1.25rem; }
  .entry-intro.is-account .entry-lines { flex-basis: 5rem; margin-bottom: 0.75rem; }
  .entry-intro.is-account h2 { font-size: clamp(1.7rem, 5.5vw, 2.2rem); }
}
@media (prefers-reduced-motion: reduce) {
  .auth-entry .entry-form .product-list a,
  .auth-entry .entry-form .product-list a span { transition: none; }
  .auth-entry .entry-form .product-list a:hover span { transform: none; }
}

/* Icon badge for single-notice account pages (verification sent, etc.) --
   brand blue (#3997f2, same as marketdeck.in and the verification email's
   button) rather than the --verified teal token, since that token also
   drives unrelated "verified" success states elsewhere and shouldn't shift
   color just for this badge. */
.verify-icon {
  width: 3.75rem; height: 3.75rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(57, 151, 242, 0.1); border: 1px solid rgba(57, 151, 242, 0.35);
  margin: 0 0 1.25rem;
}
.verify-icon svg { width: 1.9rem; height: 1.9rem; color: #3997f2; }
