/* Styles for the three server-rendered pages: sign in, your account, and the
   authentication-unavailable shell. Everything else is the React app, which
   ships its own stylesheet in the bundle. Kept as a file, not an inline
   <style>, so the response headers can forbid inline styles outright. */

/* ---- tokens --------------------------------------------------------- */
:root {
  --bg: #f6f7f8;
  --surface: #ffffff;
  --surface-2: #fafafb;
  --ink: #15181d;
  --ink-2: #464c57;
  --muted: #6e7581;
  --line: #e4e6ea;
  --line-2: #d2d6dd;
  --accent: #1f5a4c;
  --accent-ink: #1f5a4c;
  --accent-soft: #e7f0ec;
  --bad: #a92433;
  --bad-soft: #fae5e7;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(16, 20, 28, .05);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1014;
    --surface: #161a1f;
    --surface-2: #1b1f26;
    --ink: #e8eaee;
    --ink-2: #b2b9c4;
    --muted: #838b98;
    --line: #262b33;
    --line-2: #333a45;
    --accent: #6fc0a6;
    --accent-ink: #8ed3bc;
    --accent-soft: #14302a;
    --bad: #ef8a94;
    --bad-soft: #3a1b1f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35);
  }
}

/* ---- base ----------------------------------------------------------- */
* { box-sizing: border-box; }
html { font-size: 106.25%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 0.875rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px;
                 border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: .5rem; z-index: 10;
        background: var(--surface); color: var(--ink); padding: .5rem .8rem;
        border: 1px solid var(--line); border-radius: var(--radius-sm); }
.skip:focus { left: .5rem; }

/* ---- layout: one centered column, no sidebar ------------------------ */
.content { display: grid; place-items: center; min-height: 100vh;
           padding: 1.6rem 1.25rem 3rem; }
.wrap { width: 100%; max-width: 32rem; }
.pagehead { display: flex; align-items: baseline; justify-content: space-between;
            gap: 1rem; flex-wrap: wrap; margin-bottom: 1.15rem; }
h1 { font-size: 1.3rem; font-weight: 640; letter-spacing: -.015em; margin: 0; }
.stamp { color: var(--muted); font-size: .8rem; margin: 0;
         font-variant-numeric: tabular-nums; }
.build { color: var(--muted); font-size: .75rem; margin-top: 1rem;
         font-family: var(--mono); }

/* ---- banner --------------------------------------------------------- */
.banner { background: var(--bad-soft); border: 1px solid var(--line);
          border-left: 3px solid var(--bad); border-radius: var(--radius);
          padding: .9rem 1rem; margin-bottom: 1.25rem; color: var(--ink-2); }
.banner strong { color: var(--bad); display: block; margin-bottom: .2rem; }

/* ---- card ----------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--line);
        border-radius: var(--radius); box-shadow: var(--shadow);
        margin-bottom: 1rem; overflow: hidden; }
.card-body { padding: .9rem; }
.auth-card { max-width: 32rem; }
.auth-form { display: grid; gap: .6rem; margin: 1rem 0; }
.auth-form input, .auth-form button {
  font: inherit; padding: .6rem .75rem; border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); background: var(--surface); color: var(--ink);
  min-width: 0;
}
.auth-form button { cursor: pointer; background: var(--accent-soft);
                    color: var(--accent-ink); }
.auth-error { color: var(--bad); }
