/*
 * Styles for the server-rendered account pages only. Uses Bootstrap's CSS variables — the one
 * exception is the brand palette below, which has no Bootstrap equivalent (ADR-0006). The SPA
 * has its own tokens.css.
 */
body {
  font-family: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--bs-body-color);
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
}

/*
 * Space Grotesk, self-hosted: Levl runs on-premises and may have no route to the internet, and a
 * wordmark that silently falls back to another face is not the wordmark (LOGO.md). Variable font,
 * so one file covers 500-700. SIL Open Font License — see assets/brand/fonts/OFL.txt.
 */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/assets/brand/fonts/space-grotesk-latin.woff2") format("woff2");
  unicode-range: u+0000-00ff, u+0131, u+0152-0153, u+02bb-02bc, u+02c6, u+02da, u+02dc, u+0304,
    u+0308, u+0329, u+2000-206f, u+20ac, u+2122, u+2191, u+2193, u+2212, u+2215, u+feff, u+fffd;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/assets/brand/fonts/space-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: u+0100-02ba, u+02bd-02c5, u+02c7-02cc, u+02ce-02d7, u+02dd-02ff, u+0304, u+0308,
    u+0329, u+1d00-1dbf, u+1e00-1e9f, u+1ef2-1eff, u+2020, u+20a0-20ab, u+20ad-20c0, u+2113,
    u+2c60-2c7f, u+a720-a7ff;
}

/*
 * The logo lockup (docs/design/brand/LOGO.md). These pages are served outside the SPA and cannot
 * see tokens.css, so the two brand colours are repeated here; LOGO.md is the source of truth for
 * both copies. Clear space around the mark is one cell unit — nothing enters that band.
 */
.auth-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
}

.auth-lockup-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.auth-lockup-name {
  font-family: "Space Grotesk", "Instrument Sans", system-ui, sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
  color: #10192b;
}

.auth-lockup-endorse {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  color: #7a8290;
}

.auth-lede {
  font-size: 13.5px;
}

.auth-link {
  font-size: 13px;
}

.auth-footer {
  font-size: 11.5px;
}

/*
 * Two-step sign-in (ADR-0026). The QR code draws in currentColor, so its ink and paper are set
 * here: full black on full white whatever the page around it, because that contrast is what a
 * phone camera needs and the brand has no business softening it.
 */
.auth-qr {
  width: 200px;
  margin: 0 auto;
  padding: 0;
  color: var(--bs-black);
  background: var(--bs-white);
}

.auth-qr svg {
  display: block;
  width: 100%;
  height: auto;
}

.auth-steps {
  font-size: 13.5px;
}

.auth-code {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.15em;
}

.auth-key,
.auth-recovery-codes code {
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--bs-body-color);
}

.auth-recovery-codes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
}
