/* Страница входа Black White Colors (login.html, login.js): переменные темы и окно входа из style.css. Этот файл
   открыт без входа, поэтому в нём только то, что нужно форме входа. */
:root {
  --bg: #1b1c1f; --bg2: #232428; --bg3: #2c2d32; --line: #3a3b41; --line2: #2a2b30; --fg: #e6e6e6; --dim: #9a9ba3;
  --accent: #e0a34a; --accent2: #5aa9ff; --danger: #d9534f; --sel: #3b4a68;
  --canvas: #111; --field: #1d1e22; --hover: #26272c; --on-accent: #1b1c1f; --edge: #000; --err: #ff8a80; --warn: #ffa640;
  --gap-bg: #4a2f2f; --gap-fg: #ffb4b0; --scene-bg: #0d0e10;
  font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 13px;
  color-scheme: dark;
}
/* light theme: same variables, chosen with the ☀ button in the top bar (saved in the browser) */
:root[data-theme="light"] {
  --bg: #f4f4f2; --bg2: #ffffff; --bg3: #ebebe8; --line: #cfcfca; --line2: #e2e2de; --fg: #1d1e21; --dim: #6b6c72;
  --accent: #c47a12; --accent2: #2f7fd6; --danger: #c9302c; --sel: #d6e4f7;
  --canvas: #d9d9d6; --field: #ffffff; --hover: #eeeeea; --on-accent: #ffffff; --edge: rgba(0, 0, 0, .35); --err: #b3261e; --warn: #b26a00;
  --gap-bg: #fbe3e1; --gap-fg: #8a1f1a; --scene-bg: #e6e6e3;
  color-scheme: light;
}
html, body { height: 100%; margin: 0; background: var(--bg); color: var(--fg); }
button, input { font: inherit; color: var(--fg); background: var(--bg3); border: 1px solid var(--line); border-radius: 4px; padding: 3px 8px; }
button { cursor: pointer; }
button:hover { border-color: var(--dim); }
button:disabled { opacity: .4; cursor: default; }
button.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 600; }
label { display: inline-flex; align-items: center; gap: 4px; }
.small { font-size: 12px; color: var(--dim); }
#authOverlay { position: fixed; inset: 0; z-index: 1000; background: var(--bg); display: flex; align-items: flex-start; justify-content: center; overflow: auto; padding: 6vh 16px 24px; }
#authOverlay[hidden] { display: none; }
.authCard { background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; width: min(420px, 100%); display: flex; flex-direction: column; gap: 10px; }
.authCard.wide { width: min(1180px, 100%); }
.authCard label { display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.authCard input:not([type=checkbox]) { width: 100%; box-sizing: border-box; }
.authHead { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line2); padding-bottom: 8px; }
.authHead b span { color: var(--accent); }
/* «Sign in with Google» – готовые кнопки Google (signin-assets.zip, branding guidelines): тёмная или светлая по теме
   Studio; рисунок не меняется, у кнопки нет своей рамки и фона */
.authOr { text-align: center; color: var(--muted, inherit); }
.authCard button.gsiButton { padding: 0; border: 0; background: none; border-radius: 4px; line-height: 0; cursor: pointer; }
.authCard button.gsiButton:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gsiButton img { display: block; width: 180px; height: 40px; }
.gsiButton .gsiLight { display: none; }
:root[data-theme="light"] .gsiButton .gsiDark { display: none; }
:root[data-theme="light"] .gsiButton .gsiLight { display: block; }
.authRow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.authErr { color: var(--err); font-size: 13px; min-height: 1em; }
.authNote { color: var(--warn); }
.authTotp { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.authQr { background: #fff; padding: 6px; border-radius: 4px; line-height: 0; }
.authQr svg { width: 200px; height: 200px; }
.authSecret { user-select: all; font-size: 13px; }
.authCodes { background: var(--field); border: 1px solid var(--line); border-radius: 4px; padding: 8px 12px; font-size: 15px; line-height: 1.6; user-select: all; }
