/* Страница входа Delovito: цвета и шрифт админки (app/static/admin.css), тёмная тема — по системе. */
@font-face { font-family: Manrope; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url("manrope-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url("manrope-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url("manrope-latin.woff2") format("woff2"); 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 {
  --bg: #F1F2F5; --card: #FFFFFF; --text: #14161B; --muted: #6B717D; --line: #E4E6EB; --chip: #E7E9EE; --input: #F4F5F8;
  --accent: #FF5B3A; --on-accent: #FFFFFF; --bad: #B4232A; --bad-soft: #FFEBEC;
  --shadow: 0 1px 2px rgba(20, 22, 27, .04), 0 8px 24px rgba(20, 22, 27, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0C0E12; --card: #171A20; --text: #F3F4F6; --muted: #959BA6; --line: #262A32; --chip: #1F232A; --input: #1F232A;
    --accent: #C8F04A; --on-accent: #0C0E12; --bad: #FF8A8E; --bad-soft: rgba(255, 97, 102, .1);
    --shadow: 0 0 0 1px rgba(255, 255, 255, .06);
    color-scheme: dark;
  }
}
html[lang="sl"] [data-l]:not([data-l="sl"]), html[lang="en"] [data-l]:not([data-l="en"]),
html[lang="ru"] [data-l]:not([data-l="ru"]) { display: none !important; }

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--bg); color: var(--text);
  font: 500 16px/1.5 Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
.box { width: 100%; max-width: 400px; background: var(--card); border-radius: 24px; padding: 28px 24px; box-shadow: var(--shadow); position: relative; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--text); text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.langs { position: absolute; top: 24px; right: 20px; display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--chip); }
.langs button { border: 0; background: none; padding: 5px 9px; font: inherit; font-size: 12.5px; font-weight: 800; color: var(--muted); border-radius: 9px; cursor: pointer; }
.langs button[aria-pressed="true"] { background: var(--card); color: var(--text); box-shadow: var(--shadow); }
h1 { font-size: 28px; font-weight: 800; letter-spacing: -.025em; margin: 26px 0 4px; }
.sub { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
label { display: block; font-weight: 700; font-size: 14px; margin: 14px 0 6px; }
input { width: 100%; min-height: 50px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--input);
  color: var(--text); font: inherit; font-size: 16px; }
input:focus { outline: none; border-color: var(--accent); }
button[type="submit"] { width: 100%; min-height: 52px; margin-top: 20px; border: 0; border-radius: 14px; background: var(--accent);
  color: var(--on-accent); font: inherit; font-weight: 800; font-size: 17px; cursor: pointer; }
button[type="submit"]:disabled { opacity: .6; cursor: default; }
.err { margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--bad-soft); color: var(--bad); font-weight: 700; font-size: 14.5px; }
.hint { margin: 18px 0 0; color: var(--muted); font-size: 13.5px; text-align: center; }
