@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/static/fonts/lora-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/static/fonts/lora-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/static/fonts/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: 400 700;
  font-display: swap;
  src: url(/static/fonts/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+2000-206F, U+20AC, U+2122, U+2191, U+2213, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #fbf9f5;
  --bg-soft: #f4efe6;
  --surface: #ffffff;
  --border: #e6ded3;
  --border-strong: #d3c7b8;
  --text: #231f1a;
  --text-muted: #6b6357;
  --text-faint: #968c7e;
  --accent: #562b3c;
  --accent-strong: #3f1e2b;
  --accent-ink: #ffffff;
  --accent-soft: rgba(86, 43, 60, 0.08);
  --danger: #c2413b;
  --font-display: 'Lora', Georgia, serif;
  --font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font-family);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 50% -10%, #ffffff 0%, transparent 60%),
    var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  min-height: 100dvh;
}

.login {
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.login__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--text);
  font-family: var(--font-display);
}

.login__logo {
  width: 44px;
  height: 44px;
  display: block;
}

.login__word {
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: -0.3px;
  line-height: 1;
}

.login__card {
  margin-top: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(44, 38, 30, 0.06);
  padding: 28px 26px;
  text-align: left;
}

.field { margin-bottom: 18px; }
.field:last-of-type { margin-bottom: 22px; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 7px;
}

.field input {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-strong);
  border-radius: 0;
  padding: 8px 2px;
  outline: none;
  transition: border-color 0.15s ease;
}
.field input:focus { border-bottom-color: var(--accent); }
.field input::placeholder { color: var(--text-faint); }

.login__error {
  margin: 0 0 16px;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(194, 65, 59, 0.08);
  color: var(--danger);
  font-size: 13px;
}

.login__submit {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent);
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.login__submit:hover { background: var(--accent-strong); }
