@font-face {
  font-family: "Golos Text";
  src: url("/assets/golos-text-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  src: url("/assets/golos-text-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  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 {
  --auth-bg: #080b0f;
  --auth-panel: #111820;
  --auth-field: #0d1319;
  --auth-border: #303b44;
  --auth-text: #f5f3ee;
  --auth-muted: #a9b2b9;
  --auth-gold: #e5b95f;
  --auth-gold-hover: #f2cf80;
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; }
body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 40px);
  background: var(--auth-bg);
  color: var(--auth-text);
  font-family: "Golos Text", system-ui, sans-serif;
}
button, input { font: inherit; }
a { color: inherit; }
.auth-wrapper {
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(390px, 1fr);
  width: min(940px, 100%);
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--auth-border);
  border-radius: 16px;
  background: var(--auth-panel);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
}
.auth-image {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: 32px;
  background: #161717 url('/assets/kongbet-hero-gorilla.webp') 61% center / cover no-repeat;
  isolation: isolate;
}
.auth-image::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 10, 13, .75), rgba(7, 10, 13, .08) 34%, rgba(7, 10, 13, .82));
}
.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  color: #fff;
  text-decoration: none;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.025em;
}
.auth-brand img { display: block; width: 36px; height: 36px; object-fit: contain; }
.auth-image-caption {
  max-width: 280px;
  margin: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.auth-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 64px);
}
.close-btn {
  position: absolute;
  top: 19px;
  right: 19px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--auth-muted);
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}
.close-btn:hover { color: var(--auth-gold); border-color: var(--auth-border); background: #18212a; }
.mobile-logo { display: none; }
.auth-kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--auth-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.auth-title {
  margin: 0 0 8px;
  font-size: clamp(29px, 3vw, 39px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.035em;
}
.auth-subtitle { margin: 0 0 28px; color: var(--auth-muted); font-size: 14px; line-height: 1.5; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  margin-bottom: 7px;
  color: #d3d8dc;
  font-size: 13px;
  font-weight: 600;
}
.form-control {
  display: block;
  width: 100%;
  min-height: 49px;
  padding: 11px 14px;
  border: 1px solid var(--auth-border);
  border-radius: 8px;
  outline: none;
  background: var(--auth-field);
  color: var(--auth-text);
  font-size: 14px;
  transition: border-color .18s ease, background-color .18s ease;
}
.form-control::placeholder { color: #7f8a93; opacity: 1; }
.form-control:hover { border-color: #5b6269; }
.form-control:focus-visible { border-color: var(--auth-gold); background: #111921; }
.form-group small { display: block; margin-top: 6px; color: var(--auth-muted); font-size: 11px; line-height: 1.45; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  margin-top: 6px;
  padding: 11px 18px;
  border: 1px solid var(--auth-gold);
  border-radius: 8px;
  background: var(--auth-gold);
  color: #11100d;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn-primary:hover { background: var(--auth-gold-hover); transform: translateY(-2px); box-shadow: 0 9px 20px rgba(0, 0, 0, .25); }
.btn-primary:active { transform: translateY(0); box-shadow: none; }
.auth-footer { margin: 23px 0 0; color: var(--auth-muted); font-size: 13px; }
.auth-footer a { margin-left: 4px; color: var(--auth-gold); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.auth-footer a:hover { color: var(--auth-gold-hover); }
.error-list, .alert-toast {
  margin: 0 0 18px;
  padding: 13px 16px;
  border: 1px solid #9a5151;
  border-radius: 8px;
  background: #2a191b;
  color: #ffd0d0;
  font-size: 13px;
  line-height: 1.5;
}
.error-list li { margin-left: 16px; }
.alert-toast { position: fixed; z-index: 10; top: 16px; left: 50%; width: min(440px, calc(100% - 32px)); transform: translateX(-50%); display: flex; align-items: center; gap: 10px; }
.toast-close { margin-left: auto; cursor: pointer; }
:focus-visible { outline: 2px solid var(--auth-gold); outline-offset: 3px; }
.form-control:focus-visible { outline: none; }
@media (max-width: 760px) {
  body { padding: 16px; }
  .auth-wrapper { grid-template-columns: 1fr; min-height: auto; }
  .auth-image { display: none; }
  .auth-panel { padding: 56px clamp(22px, 6vw, 36px) 32px; }
  .mobile-logo { display: block; margin-bottom: 30px; }
  .mobile-logo img { width: 40px; height: 40px; object-fit: contain; vertical-align: middle; }
  .mobile-logo span { margin-left: 10px; font-size: 20px; font-weight: 700; vertical-align: middle; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
