/* Forge CE — label-sheet skin for the account and checkout pages.
 *
 * Loaded after forge-ce-app.css on the public/account pages only. The
 * certificate, evaluation and disclosure pages (and the lessons and
 * post-tests) do not load it, so they keep the look on file with the AANA.
 * Same world as forgeanesthesia.com and the CE landing page: charcoal page
 * over the moving orange grid, Archivo display, Atkinson Hyperlegible text,
 * labels with an orange field. */

:root {
  --char: #1a1a1f; --char-2: #242429; --char-3: #2e2e35;
  --charcoal: #1a1a1f; --charcoal-mid: #242429;
  --orange: #f5622d; --orange-hot: #ff7a45; --amber: #ffab40;
  --off-white: #f4f2ee; --muted: #a3a3ab; --soft: #d2d2d8;
  --card-bg: #242429;
  --card: #e1ddd5; --ink: #1a1a1f; --ink-2: #47433c; --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);
  --nav-h: 68px;
}
html { scrollbar-color: var(--char-3) var(--char); }
::selection { background: var(--orange); color: var(--char); }
body { font-family: var(--text); font-size: 1rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
::placeholder { color: #8d8d96; opacity: 1; }

/* Moving grid (forge-ce-grid.js draws it); content sits above it */
#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%; }
.forge-page, .dash { position: relative; z-index: 1; }

/* ── Banner (built by forgeRenderBanner) ── */
.forge-nav {
  background: var(--char); backdrop-filter: none; -webkit-backdrop-filter: none;
  border-bottom: 1px solid var(--char-3); padding: 0 clamp(1rem, 4vw, 2.5rem);
}
.forge-logo {
  font-family: var(--display); font-stretch: 78%; font-weight: 800; font-size: 1.25rem;
  letter-spacing: 0.04em; gap: 0.7rem;
}
.forge-logo-mark { width: 34px; height: 34px; }
.forge-nav-link { color: #d6d6dc; font-size: 0.95rem; font-weight: 500; }
.forge-nav-link:hover { color: var(--white); text-decoration: underline; text-underline-offset: 0.2em; }
.forge-nav-link.is-current { color: var(--orange); font-weight: 700; text-decoration: none; }
.forge-greeting {
  font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: 1.05rem;
  letter-spacing: 0.02em; text-transform: uppercase; color: var(--soft);
}
.forge-btn, .forge-btn-ghost { font-family: var(--text); font-weight: 700; font-size: 0.92rem; border-radius: 6px; padding: 0.55rem 1rem; }
.forge-btn { background: var(--orange); color: var(--char); }
.forge-btn:hover { background: var(--orange-hot); }
.forge-btn-ghost { border-color: rgba(255,255,255,0.28); }
.forge-btn-ghost:hover { background: var(--white); color: var(--char); border-color: var(--white); }
@media (max-width: 640px) {
  .forge-logo { font-size: 0; gap: 0; }
  .forge-btn, .forge-btn-ghost { padding: 0.5rem 0.75rem; font-size: 0.85rem; }
}

/* ── Auth card as a label: the heading and lead sit in an orange field ── */
.forge-page { padding-bottom: 3rem; }
.auth-card {
  --pad: 1.6rem;
  background: var(--char-2); border: 1px solid var(--char-3); border-radius: 10px;
  padding: 0 var(--pad) 1.7rem; overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset, 0 26px 40px -24px rgba(0,0,0,0.95);
  rotate: -0.4deg;
}
.auth-card h1 {
  margin: 0 calc(var(--pad) * -1); padding: 1.45rem var(--pad) 0.35rem;
  background: var(--orange); color: var(--char);
  font-family: var(--display); font-stretch: 66%; font-weight: 900; text-transform: uppercase;
  font-size: clamp(2rem, 6vw, 2.6rem); line-height: 0.92; letter-spacing: 0;
}
.auth-card h1 + .sub {
  margin: 0 calc(var(--pad) * -1) 1.5rem; padding: 0.15rem var(--pad) 1.25rem;
  background: var(--orange); color: #2b1a10; font-size: 0.98rem; font-weight: 500;
  border-bottom: 1.5px dashed rgba(26,26,31,0.35);
}
.auth-card .sub { color: var(--soft); font-size: 0.95rem; }
@media (max-width: 420px) { .auth-card { --pad: 1.2rem; rotate: 0deg; } }

.auth-form label { color: var(--soft); font-size: 0.86rem; font-weight: 700; margin: 1rem 0 0.35rem; }
.auth-form input {
  background: var(--char); border: 1px solid #45454d; border-radius: 6px;
  padding: 0.72rem 0.85rem; font-size: 1rem; color: var(--white);
}
.auth-form input:focus { outline: 3px solid var(--amber); outline-offset: 1px; border-color: var(--orange); }
.auth-form input:disabled { color: var(--muted); background: rgba(26,26,31,0.6); }

.btn-full {
  border-radius: 6px; background: var(--orange); color: var(--char);
  font-family: var(--text); font-weight: 700; font-size: 1rem; padding: 0.85rem;
}
.btn-full:hover { background: var(--orange-hot); }
a.btn-full { color: var(--char); }
.btn-google, .btn-apple { border-radius: 6px; font-family: var(--text); font-weight: 700; }

.auth-divider { color: var(--muted); font-size: 0.82rem; }
.auth-divider::before, .auth-divider::after { height: 0; background: none; border-top: 1.5px dashed #45454d; }
.auth-links { color: var(--muted); font-size: 0.92rem; line-height: 1.8; }
.auth-links a { color: var(--orange-hot); font-weight: 700; text-decoration: underline; text-underline-offset: 0.2em; }

/* Certificate name: the legal-record field, on its own amber-edged panel */
.cert-name-block { background: rgba(255,171,64,0.08); border: 1.5px dashed rgba(255,171,64,0.55); border-radius: 8px; }
.cert-name-help { color: #c4c4cb; font-size: 0.82rem; }
.cert-name-status { font-size: 0.82rem; }

.aana-note {
  background: var(--char); border: 1.5px dashed rgba(245,98,45,0.6); border-left-width: 1.5px;
  border-radius: 8px; color: var(--soft); font-size: 0.86rem;
}
.aana-note-lead { font-size: 0.92rem; color: var(--off-white); background: rgba(245,98,45,0.1); padding: 1rem 1.1rem; }
.aana-note-lead .aana-note-label {
  font-family: var(--display); font-stretch: 78%; font-weight: 900; font-size: 1.1rem;
  letter-spacing: 0.01em; text-transform: uppercase; color: var(--orange-hot); margin-bottom: 0.35rem;
}

.alert { border-radius: 6px; font-size: 0.9rem; }
.verify-banner { background: var(--amber); color: var(--char); font-weight: 700; font-size: 0.88rem; }
.verify-banner a { color: var(--char); }

@media (prefers-reduced-motion: reduce) { .auth-card { rotate: 0deg; } }
