/* ============================================================
   Login page — standalone (no app.css)
   ============================================================ */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-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: #0d0f14; --s: #161920; --b: #252830;
  --ac: #e8a020; --t: #e4e6ed; --m: #7a7f90;
  --d: #e05050;  --r: 10px;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--t);
  background-image: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(232,160,32,.1), transparent);
  -webkit-font-smoothing: antialiased;
}

.card {
  width: 100%;
  max-width: 400px;
  background: var(--s);
  border: 1px solid var(--b);
  border-radius: var(--r);
  padding: 40px 36px 34px;
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
}

.logo { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; }
.logo-i {
  width: 40px; height: 40px;
  background: var(--ac);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.logo h1 { font-size: 1.2rem; font-weight: 700; }
.logo span { color: var(--ac); }

label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--m);
  margin-bottom: 6px;
}
input[type=text],
input[type=password] {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--b);
  border-radius: var(--r);
  padding: 11px 13px;
  font-size: .93rem;
  color: var(--t);
  outline: none;
  transition: border-color .2s;
  margin-bottom: 16px;
  font-family: inherit;
}
input:focus { border-color: var(--ac); }

.btn {
  width: 100%;
  background: var(--ac);
  color: #0d0f14;
  border: none;
  border-radius: var(--r);
  padding: 12px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
  margin-top: 4px;
  font-family: inherit;
}
.btn:hover { background: #f0b030; }

.err {
  background: rgba(224,80,80,.1);
  border: 1px solid rgba(224,80,80,.3);
  border-radius: var(--r);
  color: var(--d);
  padding: 10px 13px;
  font-size: .84rem;
  margin-bottom: 18px;
  line-height: 1.5;
}

.hint {
  margin-top: 16px;
  background: rgba(232,160,32,.07);
  border: 1px solid rgba(232,160,32,.2);
  border-radius: 8px;
  padding: 10px 13px;
  font-size: .76rem;
  color: var(--m);
  line-height: 1.6;
}
.hint strong { color: var(--ac); }
.hint code { background: rgba(232,160,32,.15); border-radius: 3px; padding: 1px 5px; font-size: .74rem; }

.first-run {
  margin-top: 12px;
  background: rgba(61,190,122,.07);
  border: 1px solid rgba(61,190,122,.25);
  border-radius: 8px;
  padding: 10px 13px;
  font-size: .76rem;
  color: #3dbe7a;
  line-height: 1.6;
}
