/* The login screen, and the fonts for the whole panel (this file stays loaded once app.css arrives). */
@font-face {
  font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/static/fonts/geist-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/static/fonts/geist-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;
}
@font-face {
  font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/static/fonts/geist-mono-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/static/fonts/geist-mono-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: #0a0a0a;
  --surface: #111111;
  --inset: #0c0c0c;
  --line: #1f1f1f;
  --line-2: #2a2a2a;
  --line-3: #3b3b3b;
  --text: #ededed;
  --text-2: #a1a1a1;
  --text-3: #6b6b6b;
  --ember: #e5604d;
  --hatch: rgba(255, 255, 255, .026);
  --font: "Geist", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background-color: var(--bg);
  background-image: repeating-linear-gradient(135deg, var(--hatch) 0 1px, transparent 1px 11px);
  background-attachment: fixed;
  color: var(--text);
  font: 14px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(255, 255, 255, .18); }
#sky { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }

.card { position: relative; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 34px; padding: 0 14px; border-radius: 5px;
  background: #141414; border: 1px solid var(--line-2); color: var(--text);
  font-weight: 500; font-size: 13px; cursor: pointer; white-space: nowrap;
  transition: border-color .15s, background .15s, transform .1s;
}
.btn:hover { border-color: var(--line-3); background: #1a1a1a; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .4; cursor: default; transform: none; }
.btn.primary { background: var(--text); border-color: var(--text); color: #0a0a0a; font-weight: 600; }
.btn.primary:hover { background: #fff; border-color: #fff; }
.in {
  height: 38px; padding: 0 12px; border-radius: 5px;
  background: var(--inset); border: 1px solid var(--line-2); color: var(--text); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.in:focus { border-color: #5a5a5a; box-shadow: 0 0 0 3px rgba(255, 255, 255, .06); }
.in::placeholder { color: #555; }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--text-2); }

.login { position: relative; z-index: 1; min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-box { width: min(380px, 100%); }
.login-box .mark { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 28px; text-align: center; }
.login-box .logo { width: 40px; height: 40px; image-rendering: pixelated; }
.login-box .badge {
  display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 5px;
  background: #111; border: 1px solid var(--line-2); font-size: 12px; font-weight: 500; color: #d4d4d4;
}
.login-box .mark b { font: 600 28px/1.05 var(--font); letter-spacing: -.04em; color: var(--text); }
.login-box form { display: flex; flex-direction: column; gap: 14px; padding: 24px; }
.login-box .err { color: var(--ember); font-size: 13px; min-height: 18px; }
.login-box .foot { margin-top: 18px; text-align: center; color: var(--text-3); font: 12px var(--mono); }
