/* The online app's own pages (part 2 spec §7.2): logging in, the first-time steps, the person's account, the owner's Accounts.
   The stock app's look (stock-app/app.css), kept small: its colours, its washes behind the glass, one glass panel, capsule buttons.
   System fonts, since the app's own faces are served only after a login. Nothing inline (the Content-Security-Policy allows no
   inline style or script), nothing fetched. The backup codes print on their own. */
:root {
  color-scheme: light dark;
  --paper: light-dark(#eef2f8, #0b1020);
  --face: light-dark(rgb(255 255 255 / .70), rgb(30 36 52 / .62));
  --face-solid: light-dark(#ffffff, #171d2b);
  --sunken: light-dark(rgb(255 255 255 / .45), rgb(0 0 0 / .18));
  --ink: light-dark(#111827, #e6ebf1);
  --muted: light-dark(#4b5563, #abb6c3);
  --rule: light-dark(rgb(17 24 39 / .09), rgb(255 255 255 / .10));
  --field: light-dark(rgb(17 24 39 / .18), rgb(255 255 255 / .18));
  --hl: light-dark(rgb(255 255 255 / .75), rgb(255 255 255 / .14));
  --spot: light-dark(#0a5fe6, #8fb5ff);
  --spot-ink: light-dark(#ffffff, #0b1020);
  --bad: light-dark(#9d1710, #ff6f62);
  --ok: light-dark(#12603a, #4fc48b);
  --shadow-soft: light-dark(rgb(17 24 39 / .10), rgb(0 0 0 / .45));
  --lift: inset 0 1px 0 var(--hl), 0 14px 40px var(--shadow-soft);
  --radius: 20px;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
/* The backdrop the glass sits on: the stock app's paper with its three faint washes. */
body {
  margin: 0; min-height: 100vh; padding: 6vh 16px;
  display: flex; justify-content: center; align-items: flex-start;
  background: radial-gradient(60% 55% at 6% 0%, light-dark(#d6e4ff, #182858) 0%, transparent 60%),
    radial-gradient(50% 45% at 100% 18%, light-dark(#d8f3ec, #0f2f2f) 0%, transparent 60%),
    radial-gradient(48% 48% at 62% 100%, light-dark(#ece0ff, #291852) 0%, transparent 60%), var(--paper);
  background-attachment: fixed;
  color: var(--ink); font: 16px/1.5 var(--body); accent-color: var(--spot);
}
:focus-visible { outline: 2px solid var(--spot); outline-offset: 2px; }
/* One piece of glass. Its corners clip with overflow: clip, not hidden (hidden makes it a scroll container). */
main {
  width: 100%; max-width: 30rem; padding: 28px 24px; overflow: clip;
  background: var(--face-solid); border: 1px solid var(--hl); border-radius: var(--radius); box-shadow: var(--lift);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  main { background: var(--face); -webkit-backdrop-filter: saturate(160%) blur(22px); backdrop-filter: saturate(160%) blur(22px); }
}
main.wide { max-width: 56rem; }
h1, h2 { font-weight: 700; line-height: 1.18; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: 24px; margin: 0 0 4px; }
h2 { font-size: 19px; margin: 24px 0 6px; }
p { margin: 8px 0; }
.sub { color: var(--muted); font-size: 15px; }
label { display: block; margin: 14px 0 4px; font-size: 14px; font-weight: 600; }
input, select { width: 100%; font: inherit; color: var(--ink); padding: 10px 12px; border-radius: 12px; border: 1px solid var(--field); background: var(--sunken); }
input.code { font-family: var(--mono); letter-spacing: .15em; font-size: 22px; text-align: center; }
/* The controls are capsules; the one that goes on is the spot. */
button, .button {
  display: inline-block; margin-top: 18px; font: inherit; font-weight: 600; padding: 9px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--field); background: light-dark(rgb(255 255 255 / .6), rgb(255 255 255 / .08)); color: var(--ink); text-decoration: none;
}
button:hover, .button:hover { background: light-dark(rgb(255 255 255 / .9), rgb(255 255 255 / .14)); }
button.primary { background: var(--spot); border-color: transparent; color: var(--spot-ink);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .3), 0 6px 16px color-mix(in srgb, var(--spot) 35%, transparent); }
button.primary:hover { background: color-mix(in srgb, var(--spot) 88%, #000); }
button:disabled { opacity: .45; cursor: default; }
.error { color: var(--bad); font-weight: 600; min-height: 1.5em; }
.ok { color: var(--ok); font-weight: 600; }
.key, .codes li, .password { font-family: var(--mono); font-size: 18px; letter-spacing: .08em; font-variant-numeric: tabular-nums slashed-zero; overflow-wrap: anywhere; }
.qr { display: block; width: 220px; height: 220px; margin: 12px auto; background: #fff; border-radius: 12px; }
.codes { columns: 2; padding-left: 1.6em; }
.codes li { margin: 4px 0; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 15px; }
th { font-size: 12px; color: var(--muted); font-weight: 600; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--rule); vertical-align: top; }
td button { margin: 0 4px 4px 0; padding: 5px 11px; font-size: 13px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
@media print {
  body { background: #fff; color: #000; padding: 0; }
  main { box-shadow: none; border: 0; background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  button, .noprint { display: none !important; }
  a.button { display: none !important; }
}
