@font-face {
  font-family: Manrope;
  src: url("../fonts/manrope.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --page: #f5f5fa;
  --panel: #fff;
  --ink: #1b1740;
  --muted: #57516b;
  --indigo: #1b0088;
  --rose: #c40d44;
  --line: #dedbe9;
  font-family: Manrope, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page);
}

* { box-sizing: border-box; }
body { margin: 0; min-inline-size: 280px; }
button, input { font: inherit; }
button, a { touch-action: manipulation; }
button:not(:disabled) { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid #5732d5; outline-offset: 4px; }
h1, h2, p, figure, blockquote { margin: 0; }
h1, h2 { text-wrap: balance; }
.wrap {
  width: min(1320px, calc(100% - 72px));
  margin-inline: auto;
}

.skip-link { position: fixed; z-index: 3; top: 12px; left: 12px; padding: 12px 16px; border-radius: 6px; background: white; transform: translateY(-170%); }
.skip-link:focus-visible { transform: none; }
.masthead { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 20px; font-weight: 800; letter-spacing: -.025em; }
.brand img { display: block; width: 121px; height: 41px; object-fit: contain; }
.brand > span { padding-inline-start: 20px; border-inline-start: 1px solid #d7d3e5; }
.version { color: var(--muted); font-size: .73rem; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  min-height: clamp(585px, calc(100svh - 158px), 760px);
  border-radius: 24px;
  box-shadow: 0 15px 45px #20114d0c;
}
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 42px;
  padding: clamp(30px, 4.1vw, 61px);
  overflow: hidden;
  isolation: isolate;
  border-radius: 24px 0 0 24px;
  color: #fff;
  background: #140b49;
}
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 56%;
}
.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(164deg, #130741 11%, #170a4bdb 34%, #180b5140 64%, #100932c7 100%),
              linear-gradient(0deg, #100932 0%, transparent 52%);
}
.hero-kicker, .access-kicker { font-weight: 800; font-size: .74rem; text-transform: uppercase; letter-spacing: .105em; }
.hero-kicker { display: flex; gap: 10px; align-items: center; color: #f5ecff; }
.hero-kicker::before { content: ""; width: 18px; height: 2px; background: #fd4e80; }
.hero h1 { margin-block: 20px 17px; font-size: clamp(2.8rem, 5.15vw, 5.35rem); line-height: .99; letter-spacing: -.075em; font-weight: 800; max-width: 12ch; }
.hero-lead { color: #fbf8ff; font-size: clamp(.98rem, 1.36vw, 1.14rem); line-height: 1.55; max-width: 38ch; }
.case-preview {
  width: fit-content;
  max-width: 100%;
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 14px 17px;
  border: 1px solid #ffffff53;
  border-radius: 13px;
  background: #1d1048;
}
.case-preview figcaption { color: #e9deff; font-size: .76rem; font-weight: 800; }
.case-preview blockquote { margin-top: 3px; color: white; font-size: .86rem; line-height: 1.45; }
.wave { display: flex; flex: none; align-items: center; justify-content: center; width: 46px; height: 46px; gap: 2px; border-radius: 9px; background: #51307f; }
.wave i { display: block; width: 2px; height: 12px; border-radius: 3px; background: #ffc6de; }
.wave i:nth-child(2n) { height: 20px; }
.wave i:nth-child(4) { height: 28px; }
.wave i:first-child, .wave i:last-child { height: 7px; }

.access {
  display: grid;
  align-items: center;
  justify-items: center;
  padding: clamp(26px, 4vw, 63px);
  border-radius: 0 24px 24px 0;
  border: 1px solid #e8e5f0;
  border-inline-start: 0;
  background: var(--panel);
  scroll-margin-block: 12px;
}
.access-content { width: min(100%, 365px); }
.access-kicker { color: var(--indigo); }
.access h2 { margin-top: 10px; font-size: clamp(2.2rem, 3.05vw, 3.25rem); letter-spacing: -.067em; line-height: 1.05; }
.access-lead { margin-top: 13px; color: var(--muted); font-size: .95rem; line-height: 1.6; }
.access-form { display: grid; gap: 16px; margin-top: 28px; }
.field { display: grid; min-width: 0; gap: 7px; }
.field label { font-size: .89rem; font-weight: 800; }
.field input {
  width: 100%;
  min-width: 0;
  min-height: 49px;
  padding: 11px 14px;
  color: var(--ink);
  background: #fbfafd;
  border: 1px solid #cfcadd;
  border-radius: 8px;
}
.field input[aria-invalid="true"] { border-color: var(--rose); }
.password-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border: 1px solid #cfcadd; border-radius: 8px; background: #fbfafd; }
.password-control:focus-within { outline: 2px solid #5732d5; outline-offset: 2px; }
.password-control:has([aria-invalid="true"]) { border-color: var(--rose); }
.password-control input { border: 0; background: transparent; }
.password-control input:focus-visible { outline: 2px solid #5732d5; outline-offset: -3px; }
.password-toggle { min-height: 44px; padding: 0 13px; border: 0; border-radius: 6px; color: var(--indigo); background: transparent; font-size: .84rem; font-weight: 800; }
.password-toggle:hover { background: #f0ecfc; }
.field-help { color: var(--muted); min-height: 2.5em; font-size: .82rem; line-height: 1.5; }
.field-help.accent { color: var(--indigo); }
.login-error { overflow-wrap: anywhere; color: #8e1739; font-size: .86rem; line-height: 1.45; padding: 9px 12px; border-radius: 7px; background: #fff0f5; }
.login-error:empty { display: none; }
.btn-primary {
  min-height: 51px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: white;
  background: var(--rose);
  font: 800 .94rem Manrope, "Segoe UI", sans-serif;
  transition: background-color 140ms ease, transform 140ms ease;
}
.btn-primary:hover:not(:disabled) { background: #a30737; transform: translateY(-1px); }
.btn-primary:active:not(:disabled) { transform: translateY(1px); }
.btn-primary:disabled { opacity: .7; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 18px; min-height: 62px; color: var(--muted); font-size: .79rem; }
.footer a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 3px; }
.footer a:hover { color: var(--indigo); }

@keyframes arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: no-preference) {
  [data-enter] { animation: arrive 380ms ease-out backwards; }
  .case-preview { animation-delay: 100ms; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-primary { transition: none; }
  .btn-primary:hover, .btn-primary:active { transform: none; }
}
@media (max-width: 920px) {
  .wrap { width: calc(100% - 42px); }
  .layout { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - max(32px, env(safe-area-inset-left) + env(safe-area-inset-right))); }
  .masthead { min-height: 65px; gap: 6px; }
  .brand { gap: 10px; font-size: .89rem; }
  .brand img { width: 90px; height: 30px; }
  .brand > span { padding-inline-start: 10px; }
  .version { font-size: .63rem; }
  .layout { grid-template-columns: minmax(0, 1fr); border-radius: 17px; min-height: auto; }
  .hero { gap: 18px; padding: 24px 19px; border-radius: 17px 17px 0 0; }
  .hero h1 { margin-block: 12px 10px; max-width: 16ch; font-size: clamp(2rem, 8.4vw, 3.35rem); }
  .hero-lead { font-size: .94rem; }
  .case-preview { gap: 9px; padding: 8px 11px; }
  .wave { width: 33px; height: 33px; }
  .access { justify-items: start; padding: 26px 19px 27px; border-radius: 0 0 17px 17px; border-inline-start: 1px solid #e8e5f0; }
  .access-content { width: 100%; }
  .access h2 { font-size: 1.95rem; margin-top: 6px; }
  .access-lead { margin-top: 8px; }
  .access-form { margin-top: 19px; gap: 11px; }
  .footer { padding-block-end: max(0px, env(safe-area-inset-bottom)); }
}

