/* Raven shell styles: the boot screen (plain HTML/CSS, shown before the
   Go/WASM client loads) and the client's page layout. No inline styles:
   the CSP allows only same-origin stylesheets. */
:root {
  --bg: #f7f7f8; --fg: #16161a; --muted: #5d5d66; --accent: #3b3b98; --card: #fff; --line: #e3e3e8;
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111114; --fg: #ececf1; --muted: #a0a0ab; --accent: #9d9dff; --card: #1b1b20; --line: #2c2c33; }
}
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--fg); }
body { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.brand { font-weight: 700; letter-spacing: .02em; font-size: 1.25rem; }
.boot { display: flex; flex-direction: column; align-items: center; gap: .75rem; color: var(--muted); }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--accent);
           border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
[data-raven-boot="failed"] .spinner { display: none; }
.noscript, .app { background: var(--card); border: 1px solid var(--line); border-radius: 12px;
                  padding: 2rem; max-width: 28rem; margin: 1rem; box-sizing: border-box; width: 100%; }
.app[hidden] { display: none; }
.app h1 { margin: .25rem 0 .75rem; font-size: 1.5rem; }
.app p { margin: .5rem 0; }
.app .note { color: var(--muted); font-size: .875rem; }
.app footer { margin-top: 1.5rem; padding-top: .75rem; border-top: 1px solid var(--line);
              color: var(--muted); font-size: .75rem; }
.boot[hidden] { display: none; }
/* Login forms (WASM client and the no-JS fallback share these). */
.app form { display: flex; flex-direction: column; gap: .5rem; margin: 1rem 0; }
.app label { font-size: .875rem; color: var(--muted); }
.app input { font: inherit; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 8px;
             background: var(--bg); color: var(--fg); }
.app input[readonly] { opacity: .8; }
.app input.code { font-size: 1.5rem; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.app button { font: inherit; font-weight: 600; padding: .65rem 1rem; border: 0; border-radius: 8px;
              background: var(--accent); color: var(--card); cursor: pointer; }
.app button[disabled] { opacity: .6; cursor: default; }
.app button.link { background: none; color: var(--accent); padding: .25rem 0; font-weight: 400; text-align: left; }
.app .error { color: #b3261e; }
@media (prefers-color-scheme: dark) { .app .error { color: #f2b8b5; } }
.app details summary { cursor: pointer; color: var(--accent); font-size: .875rem; }
.app a { color: var(--accent); }
.app .logo { width: 40px; height: 40px; border-radius: 8px; }
