/* Spec 072 — minimal styling for the OTP login fallback page.
   - Centered single-column layout, no external assets (CSP-friendly).
   - Code block is monospace, ≥24pt per the contract.
   - Brand "plum" accent (#7B2D8E) sourced from shared_definitions/brand_colors.json
     (palette → plum). When the brand palette changes, update this literal in
     lockstep — there is no CSS variable injection at build time for this
     static page (the build script substitutes localization keys only).
   - Respects prefers-color-scheme for basic dark-mode support. */

:root {
  --plum: #7B2D8E;
  --bg: #FFFCF7;
  --fg: #1B1B1B;
  --muted: #555555;
  --surface: #F5F0E8;
  --button-fg: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15131A;
    --fg: #F5F0E8;
    --muted: #B0B0B0;
    --surface: #221E2A;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  min-height: 100vh;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

main {
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 8px 0;
}

.code {
  font-family: "SF Mono", "Menlo", "Consolas", ui-monospace, monospace;
  font-size: 36px;          /* well above the contract floor of 24pt */
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0 0 24px 0;
  padding: 16px 12px;
  background: var(--surface);
  border-radius: 12px;
  word-break: break-all;
}

.copy {
  appearance: none;
  border: none;
  background: var(--plum);
  color: var(--button-fg);
  font-size: 16px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  min-width: 160px;
}

.copy:hover { opacity: 0.92; }
.copy:active { transform: translateY(1px); }

.message {
  margin: 24px 0 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
