/* Shared page styles for accounts.rin.games. The CSP allows only same-origin stylesheets: no inline styles anywhere.
   Classes (documented so each part uses the same set):
     .card          a centered panel holding one page's content
     .stack         a vertical flow with even gaps (children stack)
     .row           a horizontal group that wraps
     .btn           a button or button-like link
     .btn-primary   the main action (use with .btn)
     .btn-link      a button that looks like a link (use with .btn)
     .provider-btn  a full-width sign-in-with-a-provider button (use with .btn)
     .field         a labelled form control wrapper: <label class="field"><span>Label</span><input></label>
     .note          a small supporting line
     .error         an error message
     .muted         de-emphasized text
   Each part that needs more puts it in its own src/static/<part>.css (served at /static/<part>.css). */
:root {
  --bg: #f6f7fb;
  --panel: #ffffff;
  --text: #1c2030;
  --muted: #5b6275;
  --line: #d9dce6;
  --accent: #3b5bdb;
  --accent-text: #ffffff;
  --error: #b42318;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12141c;
    --panel: #1b1e2a;
    --text: #e7e9f2;
    --muted: #9aa1b5;
    --line: #323750;
    --accent: #7c93ff;
    --accent-text: #0e1020;
    --error: #ff8b7b;
  }
}
:root[data-theme="dark"] {
  --bg: #12141c;
  --panel: #1b1e2a;
  --text: #e7e9f2;
  --muted: #9aa1b5;
  --line: #323750;
  --accent: #7c93ff;
  --accent-text: #0e1020;
  --error: #ff8b7b;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
}
main { width: 100%; max-width: 420px; }
h1 { font-size: 1.4rem; margin: 0 0 12px; }
h2 { font-size: 1.1rem; margin: 0 0 8px; }
a { color: var(--accent); }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 20px;
}
.stack > * + * { margin-top: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn {
  display: inline-block;
  font: inherit;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { border-color: var(--accent); }
.btn:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn-link { border: 0; background: none; padding: 0; color: var(--accent); text-decoration: underline; }
.provider-btn { display: block; width: 100%; }
.field { display: block; }
.field > span { display: block; font-size: 0.9rem; color: var(--muted); margin-bottom: 4px; }
.field input, .field select {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
}
.note { font-size: 0.9rem; color: var(--muted); }
.error { color: var(--error); }
.muted { color: var(--muted); }
footer { margin-top: 18px; font-size: 0.85rem; color: var(--muted); }
footer a { margin: 0 6px; }
