/* Страницы входа: без внешних шрифтов и скриптов, светлая и тёмная тема, мобильная раскладка. */
:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #15181d;
  --muted: #5a6270;
  --line: #d6dae1;
  --accent: #2455d6;
  --accent-text: #ffffff;
  --err: #b3261e;
  --err-bg: #fdecea;
  --ok: #176b3a;
  --ok-bg: #e7f5ec;
  --info-bg: #eaf0fb;
  --focus: #1a3fa8;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101216;
    --card: #181b21;
    --text: #e8eaee;
    --muted: #a0a8b5;
    --line: #2f3540;
    --accent: #7ea0ff;
    --accent-text: #0b1226;
    --err: #ff8f86;
    --err-bg: #3a1c1a;
    --ok: #7fd9a1;
    --ok-bg: #16301f;
    --info-bg: #1b2538;
    --focus: #a9c0ff;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.skip { position: absolute; left: -999px; top: 0; background: var(--card); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
.top { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; max-width: 480px; width: 100%; margin: 0 auto; }
.brand { font-weight: 700; color: var(--text); text-decoration: none; letter-spacing: .02em; }
.lang { display: flex; gap: 4px; }
.lang button { font: inherit; font-size: 14px; padding: 6px 10px; min-height: 36px; min-width: 44px; border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 8px; cursor: pointer; }
.lang button[aria-pressed="true"] { color: var(--text); border-color: var(--accent); }
main { width: 100%; max-width: 480px; margin: 0 auto; padding: 8px 16px 32px; flex: 1; }
main:focus, h1:focus { outline: none; }
h1 { font-size: 26px; line-height: 1.2; margin: 12px 0 6px; }
h2 { font-size: 18px; margin: 0 0 12px; }
.lead { margin: 0 0 16px; color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px 16px; margin-bottom: 16px; }
.field { margin-bottom: 14px; }
label { display: block; font-weight: 600; margin-bottom: 4px; }
input:not([type="hidden"]):not([type="checkbox"]) {
  width: 100%; font: inherit; padding: 10px 12px; min-height: 44px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text);
}
input[aria-invalid="true"] { border-color: var(--err); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.actions { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.btn { display: block; width: 100%; font: inherit; font-weight: 600; text-align: center; text-decoration: none; min-height: 46px; padding: 10px 14px; border-radius: 10px; cursor: pointer; border: 1px solid var(--accent); }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-secondary { background: transparent; color: var(--accent); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); margin: 18px 0 12px; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.msg { margin: 8px 0; padding: 10px 12px; border-radius: 10px; background: var(--info-bg); }
.msg-error { background: var(--err-bg); color: var(--err); }
.msg-success { background: var(--ok-bg); color: var(--ok); }
.field-msgs .msg { margin: 6px 0 0; padding: 6px 10px; font-size: 14px; }
.note, .links p { color: var(--muted); }
.links { margin-top: 4px; }
.links a, .foot a, .details a { color: var(--accent); }
.details { margin-top: 14px; color: var(--muted); font-size: 14px; }
.foot { max-width: 480px; width: 100%; margin: 0 auto; padding: 16px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; }
@media (min-width: 560px) {
  main { padding-top: 24px; }
  .card { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.human-check { min-height: 65px; margin: 12px 0 4px; }
