@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/login-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: 100 900;
  font-display: swap;
  src: url("/login-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 {
  color-scheme: light;
  --plum: #281b3c;
  --cream: #fffaf5;
  --coral: #ff704d;
  --lime: #c9ff78;
  --muted: #756d7e;
  --line: #e4dbe9;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; margin: 0; }

body {
  min-height: 100svh;
  background: var(--plum);
  color: var(--plum);
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 3px solid rgb(255 112 77 / 42%);
  outline-offset: 3px;
}

.access-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(440px, .92fr);
  min-height: 100svh;
  overflow: hidden;
}

.brand-story {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  padding: clamp(32px, 5vw, 72px);
  background:
    radial-gradient(circle at 76% 18%, rgb(255 112 77 / 18%), transparent 26rem),
    radial-gradient(circle at 12% 86%, rgb(201 255 120 / 10%), transparent 24rem),
    linear-gradient(145deg, #21142f 0%, #332047 58%, #291b3e 100%);
  color: #fff;
}

.brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 13px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 46px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 15px;
  background: rgb(255 255 255 / 9%);
  box-shadow: inset 0 1px rgb(255 255 255 / 10%), 0 16px 30px rgb(0 0 0 / 18%);
}

.brand-mark i {
  position: absolute;
  width: 22px;
  height: 16px;
  top: 15px;
  left: 10px;
  border: 3px solid var(--coral);
  border-radius: 6px;
}

.brand-mark b {
  position: absolute;
  width: 8px;
  height: 8px;
  top: 8px;
  right: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgb(201 255 120 / 10%);
}

.brand > span:last-child { display: grid; }
.brand strong { font-size: 21px; line-height: 1.05; letter-spacing: -.045em; }
.brand small { margin-top: 3px; color: rgb(255 255 255 / 58%); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

.story-copy {
  position: relative;
  z-index: 2;
  width: min(670px, 88%);
  margin: auto 0;
  padding: 72px 0 112px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.story-copy h1 {
  max-width: 690px;
  margin: 0;
  font-size: clamp(50px, 5.4vw, 86px);
  font-weight: 710;
  line-height: .96;
  letter-spacing: -.065em;
}

.story-copy > p:last-child {
  max-width: 600px;
  margin: 28px 0 0;
  color: rgb(255 255 255 / 68%);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.55;
}

.story-proof {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgb(255 255 255 / 11%);
  padding-top: 22px;
  color: rgb(255 255 255 / 52%);
  font-size: 13px;
}

.story-proof span { color: #fff; font-weight: 700; }
.story-proof span i { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgb(201 255 120 / 10%); }
.story-proof p { margin: 0; }

.orb { position: absolute; border-radius: 50%; filter: blur(.2px); pointer-events: none; }
.orb--coral { width: 330px; height: 330px; right: -150px; top: 12%; border: 1px solid rgb(255 112 77 / 22%); box-shadow: inset 0 0 100px rgb(255 112 77 / 5%); }
.orb--lime { width: 180px; height: 180px; left: -90px; bottom: 12%; border: 1px solid rgb(201 255 120 / 16%); }

.live-card {
  position: absolute;
  right: clamp(24px, 5vw, 80px);
  bottom: clamp(136px, 15vh, 170px);
  z-index: 3;
  display: grid;
  grid-template-columns: 74px 1fr auto;
  align-items: center;
  gap: 14px;
  width: min(360px, 42%);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 22px;
  padding: 12px;
  background: rgb(255 255 255 / 9%);
  box-shadow: 0 24px 80px rgb(0 0 0 / 22%);
  backdrop-filter: blur(18px);
  transform: rotate(-2deg);
}

.live-card__image { height: 64px; border-radius: 15px; background: linear-gradient(135deg, #ffb196, #8c5874 74%); }
.live-card__image span { display: inline-flex; align-items: center; gap: 5px; margin: 8px; border-radius: 999px; padding: 4px 7px; background: rgb(40 27 60 / 76%); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.live-card__image i { width: 5px; height: 5px; border-radius: 50%; background: var(--coral); }
.live-card div:nth-child(2) { display: grid; align-content: center; gap: 5px; min-width: 0; }
.live-card small { color: rgb(255 255 255 / 52%); font-size: 11px; line-height: 1.2; }
.live-card strong { font-size: 14px; line-height: 1.2; white-space: nowrap; }
.live-card > b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--lime); color: var(--plum); }

.access-panel {
  display: grid;
  place-items: center;
  padding: clamp(28px, 5vw, 72px);
  background: radial-gradient(circle at 100% 0%, rgb(255 112 77 / 11%), transparent 24rem), linear-gradient(180deg, #fffdfa, #faf5ff);
}

.access-card { width: min(440px, 100%); }
.access-heading { margin-bottom: 34px; }
.access-heading h2 { margin: 0; font-size: clamp(36px, 4vw, 50px); line-height: 1.02; letter-spacing: -.06em; }
.access-heading > p:last-child { margin: 14px 0 0; color: var(--muted); font-size: 16px; }

.login-form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field > span:first-child { font-size: 13px; font-weight: 760; }
.field input {
  width: 100%;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 17px;
  background: rgb(255 255 255 / 78%);
  color: var(--plum);
  font-size: 16px;
  box-shadow: 0 1px 0 rgb(255 255 255 / 80%), inset 0 1px 3px rgb(40 27 60 / 3%);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field input::placeholder { color: #aca2b3; }
.field input:hover { border-color: #cec0d7; }
.field input:focus { outline: none; border-color: var(--coral); background: #fff; box-shadow: 0 0 0 4px rgb(255 112 77 / 11%); }

.password-control { position: relative; display: block; }
.password-control input { padding-right: 58px; }
.password-control button { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 12px; background: transparent; color: #8a8093; }
.password-control button:hover { background: #f4edf7; color: var(--plum); }
.password-control svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.form-error { margin: -4px 0 0; border-radius: 12px; padding: 11px 13px; background: #fff0ed; color: #a63827; font-size: 13px; }

.otp-step .access-heading { margin-bottom: 24px; }
.otp-step .access-heading strong { color: var(--plum); white-space: nowrap; }
.otp-shield { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 13px; margin: 0 0 22px; border: 1px solid #dcebcf; border-radius: 17px; padding: 13px 15px; background: #f6fbed; }
.otp-shield > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--lime); color: var(--plum); font-size: 18px; font-weight: 850; }
.otp-shield p { display: grid; gap: 3px; margin: 0; }
.otp-shield strong { font-size: 13px; }
.otp-shield small { color: var(--muted); font-size: 12px; }
.otp-field input { text-align: center; font-size: 25px; font-weight: 780; letter-spacing: .28em; font-variant-numeric: tabular-nums; }
.otp-field input::placeholder { letter-spacing: .28em; }
.otp-timer { margin: -10px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.text-button { justify-self: center; border: 0; padding: 7px 10px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; }
.text-button:hover { color: var(--plum); text-decoration: underline; text-underline-offset: 3px; }

.submit-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 60px;
  margin-top: 4px;
  border: 0;
  border-radius: 17px;
  padding: 0 10px 0 20px;
  background: var(--plum);
  color: #fff;
  font-weight: 760;
  box-shadow: 0 16px 30px rgb(40 27 60 / 18%);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.submit-button:hover { transform: translateY(-1px); background: #332248; box-shadow: 0 20px 36px rgb(40 27 60 / 22%); }
.submit-button:active { transform: translateY(0); }
.submit-button:disabled { cursor: wait; opacity: .7; }
.submit-button i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: var(--lime); color: var(--plum); font-size: 20px; font-style: normal; }

.access-note { display: grid; grid-template-columns: 34px 1fr; align-items: start; gap: 12px; margin-top: 26px; border: 1px solid var(--line); border-radius: 16px; padding: 15px; background: rgb(255 255 255 / 55%); }
.access-note > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: #ecf8df; color: #39704c; font-weight: 850; }
.access-note p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.access-note strong { color: var(--plum); }
.birthday { margin: 28px 0 0; color: #aaa0b1; font-size: 11px; letter-spacing: .04em; text-align: center; }
[hidden] { display: none !important; }

body[data-mode="operator"] .brand-story { background: radial-gradient(circle at 76% 18%, rgb(201 255 120 / 12%), transparent 26rem), linear-gradient(145deg, #1e142c 0%, #352447 58%, #241832 100%); }
body[data-mode="operator"] .live-card__image { background: linear-gradient(135deg, #d7b0e5, #49395f 74%); }
body[data-mode="operator"] .submit-button i { background: var(--coral); color: #fff; }

@media (max-width: 900px) {
  .access-shell { grid-template-columns: 1fr; }
  .brand-story { min-height: 250px; padding: 25px 24px 34px; }
  .story-copy { width: 100%; margin: 44px 0 0; padding: 0; }
  .story-copy h1 { max-width: 520px; font-size: clamp(39px, 10vw, 58px); }
  .story-copy > p:last-child, .story-proof, .live-card, .orb { display: none; }
  .access-panel { place-items: start center; min-height: calc(100svh - 250px); border-radius: 28px 28px 0 0; margin-top: -22px; padding: 38px 22px max(32px, env(safe-area-inset-bottom)); }
  .access-heading { margin-bottom: 26px; }
  .access-heading h2 { font-size: 36px; }
}

@media (max-width: 420px) {
  .brand-story { min-height: 228px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand strong { font-size: 19px; }
  .story-copy { margin-top: 32px; }
  .story-copy h1 { font-size: 38px; }
  .access-panel { min-height: calc(100svh - 228px); }
  .field input { height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
