/* Forge Anesthesia — shared system layer for the member and public pages.
   Loaded AFTER each page's own <style>, so it settles the tokens, type and
   browser surfaces the homepage (index.html) defined, without rewriting each
   page's layout. Source of truth for the look: index.html. */

:root {
  --char: #1a1a1f; --char-2: #242429; --char-3: #2e2e35;
  --orange: #f5622d; --orange-hot: #ff7a45; --amber: #ffab40;
  --white: #fff; --paper: #d8d3ca; --soft: #d2d2d8;
  /* Label stock is --stock here: several pages define their own --card for dark panels */
  --stock: #e1ddd5; --ink: #1a1a1f; --ink-2: #47433c; --rule-l: #cdc8be; --perf: #bcb6aa;
  --display: 'Archivo', 'Arial Narrow', sans-serif;
  --text: 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* The older page tokens, remapped onto the same palette */
  --charcoal: #1a1a1f; --charcoal-mid: #242429; --charcoal-light: #2e2e35;
  --card-bg: #242429; --muted: #a3a3ab;
}

html { scrollbar-color: var(--char-3) var(--char); }
::selection { background: var(--orange); color: var(--char); }
body { font-family: var(--text); -webkit-font-smoothing: antialiased; }
a { text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.num, table td, table th { font-variant-numeric: tabular-nums lining-nums; }

/* The hexagon-F mark replaces the old flame / blank hexagon everywhere */
.logo-mark, .login-logo-mark, .nav-logo-mark, .brand-mark {
  background: url(/forge-favicon.svg) center / contain no-repeat !important;
  clip-path: none !important; font-size: 0 !important; color: transparent !important;
}

/* Drawn icons (one stroke family) in place of the old emoji */
.ico { width: 1.05em; height: 1.05em; vertical-align: -0.17em; flex: none; display: inline-block; }
.s-icon { display: inline-flex; align-items: center; justify-content: center; }
.s-icon .ico { width: 18px; height: 18px; vertical-align: 0; }
.verify-icon .ico, .empty-icon .ico { width: 2.4rem; height: 2.4rem; color: var(--orange); }
.pw-toggle .ico { width: 18px; height: 18px; vertical-align: middle; }
.attempt-meta-item .ico { color: var(--orange); margin-right: 0.2em; }
.status-locked .ico { margin-right: 0.25em; }
.urg { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-top: 0.35em; }
.urg-high { background: #f87171; } .urg-mid { background: var(--amber); } .urg-low { background: #4ade80; }

/* Form fields: readable placeholders and a visible focus edge */
input::placeholder, textarea::placeholder { color: #9d9da5 !important; opacity: 1; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--amber); outline-offset: 1px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--orange); }

/* Orange edge that swings toward the cursor (forge-ui.js sets --rotation) */
.edge {
  --rotation: 4.2rad;
  border: 2px solid transparent !important;
  background-image:
    linear-gradient(var(--edge-fill, var(--char-2)), var(--edge-fill, var(--char-2))),
    linear-gradient(var(--rotation), var(--orange) 0%, var(--char-3) 30%, transparent 80%) !important;
  background-origin: border-box !important;
  background-clip: padding-box, border-box !important;
}

/* Sign-in boxes carry the orange edge instead of the old gradient stripe */
.edge::before { display: none !important; }
.login-box.edge, .signup-box.edge, .box.edge { border-radius: 14px; }

/* Moving grid (injected by forge-ui.js on pages that don't carry their own) */
#grid-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
#grid-base { position: absolute; inset: 0; opacity: 0.12; }
#grid-spotlight {
  position: absolute; inset: 0; opacity: 0.85;
  -webkit-mask-image: radial-gradient(400px circle at -999px -999px, black, transparent);
  mask-image: radial-gradient(400px circle at -999px -999px, black, transparent);
}
#grid-base svg, #grid-spotlight svg { width: 100%; height: 100%; }

/* The homepage dropped scattered fade-ins; content is visible from the start */
.fade-up, .fade-section { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
