/* Shared look for every page: white, soft gray surfaces, Apple-style. */
:root {
  --bg: #ffffff;
  --panel: #f5f5f7;
  --panel-2: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --accent: #0071e3;
  --accent-text: #ffffff;
  --good: #248a3d;
  --bad: #ff3b30;
  --radius: 24px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  min-height: 100dvh;
}
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 600; letter-spacing: -0.02em; }
.muted { color: var(--muted); }
.center { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.card { background: var(--panel); border-radius: var(--radius); padding: 24px; width: 100%; max-width: 420px; }
.stack > * + * { margin-top: 12px; }
label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 4px; }

input {
  width: 100%; padding: 14px 16px; font: inherit; color: var(--text);
  background: var(--panel); border: 0; border-radius: 14px;
}
input:focus { outline: 3px solid rgba(0, 113, 227, .3); outline-offset: 0; }
.code-input { text-transform: uppercase; letter-spacing: .3em; font-size: 24px; text-align: center; font-weight: 700; }

button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; font: inherit; font-weight: 500; border: 0; border-radius: 980px; cursor: pointer;
  background: #e8e8ed; color: var(--text); text-decoration: none; transition: background .15s, opacity .15s;
}
button:hover, .btn:hover { background: #dcdce1; }
button.primary, .btn.primary { background: var(--accent); color: var(--accent-text); }
button.primary:hover, .btn.primary:hover { background: #0077ed; }
button.danger { background: transparent; color: var(--bad); }
button.danger:hover { background: #ffeceb; }
button.small, .btn.small { padding: 5px 12px; font-size: 13px; }
button.big { padding: 16px 24px; font-size: 17px; font-weight: 600; }
button:disabled { opacity: .35; cursor: default; }
.block { width: 100%; }

.error { color: var(--bad); margin: 0; }
.error:empty { display: none; }
.toast { padding: 14px 16px; border-radius: 16px; background: var(--panel); font-weight: 500; text-align: center; }
.toast.ok { color: var(--good); }
.toast.bad { color: var(--bad); }
.hidden { display: none !important; }
