@font-face {
  font-family: "Golos Text"; font-weight: 400 700; font-style: normal; font-display: swap;
  src: url("/assets/golos-cyr.woff2") format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: "Golos Text"; font-weight: 400 700; font-style: normal; font-display: swap;
  src: url("/assets/golos-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 {
  color-scheme: light;
  --canvas: #f7f6f3;
  --panel: #ffffff;
  --ink: #282924;
  --muted: #6b685f;
  --line: #e4e0d9;
  --accent: #265439;
  --accent-hover: #1d432d;
  --input-tint: #f2f0eb;
  --input-edge: #d7d3c9;
  --danger-bg: #fdf1ef;
  --danger-edge: #ecc7c1;
  --danger-ink: #9c3428;
  --body-font: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--ink);
  font: 400 15px/1.5 var(--body-font);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(900px 540px at 14% 12%, #ebe5da88, transparent 70%),
    radial-gradient(760px 500px at 88% 88%, #dce8d870, transparent 70%),
    var(--canvas);
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 40px);
}

.auth-shell {
  width: min(880px, 100%);
}

.auth-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 24px 64px -24px #3123172b,
    0 4px 16px -4px #31231712;
}

.auth-brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 36px 34px;
  color: #fff7ee;
  background:
    linear-gradient(155deg, #3b2d24e0, #231b16ee),
    url("/assets/walnut.webp") center / cover;
  overflow: hidden;
}

.auth-brand-top {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}

.auth-logo img {
  display: block;
  width: 128px;
  height: auto;
  filter: grayscale(1) invert(1) brightness(1.3) sepia(.2);
  mix-blend-mode: screen;
}

.auth-kicker {
  margin: 0;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .02em;
  color: #f3e6d6;
  background: #ffffff16;
  border: 1px solid #ffffff24;
}

.auth-brand-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.auth-brand-copy h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 560;
  letter-spacing: -.03em;
  color: #fffaf3;
}

.auth-brand-copy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #e4d8ca;
}

.auth-drawing {
  position: absolute;
  right: -28px;
  bottom: -24px;
  width: 240px;
  height: auto;
  opacity: .11;
  filter: invert(1);
  pointer-events: none;
  user-select: none;
}

.auth-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 40px 38px 32px;
  background: var(--panel);
}

.auth-header h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -.04em;
  color: var(--ink);
}

.auth-header p {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-field {
  display: grid;
  gap: 7px;
}

.auth-field span {
  font-size: 13px;
  font-weight: 540;
  color: var(--ink);
}

.auth-field input {
  width: 100%;
  height: 46px;
  padding: 10px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--input-tint);
  border: 1px solid var(--input-edge);
  border-radius: 11px;
  outline: none;
  transition: background-color .15s, border-color .15s, box-shadow .15s;
}

.auth-field input::placeholder {
  color: #8b877d;
}

.auth-field input:hover {
  border-color: #b7b1a5;
}

.auth-field input:focus {
  background: var(--panel);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #26543922;
}

.auth-error {
  margin: 0;
  padding: 11px 13px;
  border-radius: 10px;
  background: var(--danger-bg);
  border: 1px solid var(--danger-edge);
  color: var(--danger-ink);
  font-size: 13.5px;
  line-height: 1.4;
}

.auth-submit {
  margin-top: 4px;
  height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 11px;
  background: var(--accent);
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  font-weight: 550;
  cursor: pointer;
  box-shadow: inset 0 1px 0 #ffffff24, 0 4px 12px #2654392e;
  transition: background-color .15s, transform .08s;
}

.auth-submit:hover {
  background: var(--accent-hover);
}

.auth-submit:active {
  transform: translateY(1px);
}

.auth-submit:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.auth-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}

.auth-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5a9a50;
  flex: none;
}

@media (max-width: 740px) {
  .auth-card {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }
  .auth-brand-panel {
    padding: 26px 24px 24px;
    gap: 18px;
  }
  .auth-brand-copy h2 {
    font-size: 20px;
  }
  .auth-drawing {
    width: 160px;
    opacity: .09;
  }
  .auth-form-panel {
    padding: 28px 24px 24px;
  }
}
