/* Страница входа в стиле панели: те же цвета и шрифт, что в panel-ui/src/ui/theme.css. */
/* Inter подключён локально (тот же файл, что в панели): внешних CDN нет. */
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/inter-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  color-scheme: light;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --border: #e3e6eb;
  --control: #7e8798;
  --text: #0f172a;
  --muted: #556070;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-fg: #ffffff;
  --focus: #2563eb;
  --danger-text: #b91c1c;
  --danger-soft: #fdecec;
  --info-soft: #ebf2fe;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0d12;
  --surface: #12151c;
  --surface-2: #181c25;
  --border: #262b36;
  --control: #6b7588;
  --text: #e6e9ef;
  --muted: #98a1b2;
  --accent: #4c8dff;
  --accent-hover: #6b9fff;
  --accent-fg: #0b0d12;
  --focus: #4c8dff;
  --danger-text: #ff8a8a;
  --danger-soft: #341617;
  --info-soft: #172540;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 "Inter Variable", Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.login {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  min-height: 100vh;
  padding: 48px 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.brand-mark { width: 28px; height: 28px; }
.mark-bg { fill: var(--accent); }
.mark-edge { fill: none; stroke: var(--accent-fg); stroke-opacity: 0.7; stroke-width: 1.5; stroke-linejoin: round; }
.mark-node { fill: var(--accent-fg); }
.card {
  width: 100%;
  max-width: 400px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.06);
}
h1 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.muted { margin: 4px 0 16px; color: var(--muted); }
.alert, .note { margin: 0 0 16px; padding: 10px 12px; border-radius: 8px; }
.alert { background: var(--danger-soft); color: var(--danger-text); font-weight: 600; }
.note { background: var(--info-soft); }
form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
label { font-weight: 500; }
input[type="text"], input[type="password"], select {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--control);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
input:focus-visible, select:focus-visible, button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.field-error { margin: 0; color: var(--danger-text); }
.field-error + .field-error { margin-top: 2px; }
button.primary {
  height: 38px;
  margin-top: 4px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-fg);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
button.primary:hover { background: var(--accent-hover); }
.help { margin: 16px 0 0; color: var(--muted); font-size: 13px; }
code { padding: 0 4px; border-radius: 4px; background: var(--surface-2); font-size: 12px; }
