:root {
  --bg: #070708;
  --bg-soft: #0c0c0f;
  --panel: rgba(17, 17, 20, .9);
  --panel-soft: rgba(255,255,255,.035);
  --line: rgba(255,255,255,.12);
  --line-soft: rgba(255,255,255,.07);
  --ink: #f5f4f1;
  --ink-muted: #a7a6a4;
  --ink-faint: #6f6e6c;
  --red: #ef1e25;
  --red-deep: #b90e14;
  --shadow: 0 36px 100px rgba(0,0,0,.58);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 22%, rgba(239,30,37,.09), transparent 26%),
    radial-gradient(circle at 84% 76%, rgba(239,30,37,.045), transparent 28%),
    var(--bg);
  color: var(--ink);
  font-family: "Hanken Grotesk", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
a { color: inherit; }

.page-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: .33;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 80%, transparent);
}

.orb {
  position: fixed;
  z-index: -2;
  width: 390px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: .13;
  background: var(--red);
}
.orb-one { left: -240px; top: 18%; }
.orb-two { right: -260px; bottom: 4%; opacity: .07; }

.topbar {
  width: min(1240px, calc(100% - 48px));
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-family: "Fraunces", Georgia, serif;
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -.8px;
}
.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 22px rgba(239,30,37,.52);
}

.topbar-actions { display: flex; align-items: center; gap: 24px; }
.language {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: rgba(255,255,255,.025);
}
.lang-button {
  min-width: 38px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  cursor: pointer;
}
.lang-button.is-active { background: rgba(255,255,255,.1); color: var(--ink); }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color .2s ease;
}
.back-link:hover { color: var(--ink); }

.access-shell {
  width: min(1160px, calc(100% - 48px));
  min-height: calc(100vh - 180px);
  margin: 0 auto;
  padding: 76px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .78fr);
  align-items: center;
  gap: clamp(54px, 8vw, 120px);
}

.access-intro { max-width: 620px; }
.restricted-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 42px;
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}
.restricted-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(239,30,37,.09);
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.4px;
}
.access-intro h1 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(50px, 6vw, 83px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -4px;
}
.headline-accent { color: var(--ink-muted); font-style: italic; }
.intro-copy {
  max-width: 570px;
  margin: 30px 0 0;
  color: var(--ink-muted);
  font-size: 17px;
  line-height: 1.72;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin-top: 42px;
}
.feature-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background: rgba(255,255,255,.018);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.feature-item:hover {
  transform: translateX(4px);
  border-color: rgba(239,30,37,.28);
  background: rgba(239,30,37,.035);
}
.feature-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(239,30,37,.24);
  border-radius: 10px;
  background: rgba(239,30,37,.07);
  color: var(--red);
}
.feature-icon svg,
.lock-mark svg,
.field-icon svg,
.password-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-item div { display: grid; gap: 2px; }
.feature-item strong { font-size: 13px; color: var(--ink); }
.feature-item span:last-child { color: var(--ink-faint); font-size: 12px; }

.login-card {
  position: relative;
  overflow: hidden;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), transparent 24%),
    rgba(13,13,15,.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.login-card::before {
  content: "";
  position: absolute;
  top: -110px;
  right: -90px;
  width: 250px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(239,30,37,.09);
  filter: blur(70px);
}
.card-topline {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent 0, var(--red) 36%, transparent 82%);
}
.card-header {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: center;
}
.lock-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex: 0 0 52px;
  border-radius: 14px;
  border: 1px solid rgba(239,30,37,.28);
  background: rgba(239,30,37,.08);
  color: var(--red);
}
.card-kicker {
  margin: 0 0 4px;
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
}
.login-card h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 31px;
  font-weight: 500;
  letter-spacing: -.8px;
}
.card-copy {
  position: relative;
  margin: 24px 0 28px;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.6;
}

.field-group { margin-bottom: 20px; }
.field-group label,
.field-heading label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 600;
}
.field-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.field-heading a {
  margin-bottom: 8px;
  color: var(--ink-faint);
  font-size: 11px;
  text-decoration: none;
}
.field-heading a:hover { color: var(--ink); }
.field-control { position: relative; }
.field-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  display: grid;
  place-items: center;
  color: #77767a;
  transform: translateY(-50%);
  pointer-events: none;
}
.field-icon svg { width: 18px; height: 18px; }
.field-control input {
  width: 100%;
  height: 54px;
  padding: 0 48px 0 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  background: rgba(255,255,255,.035);
  color: var(--ink);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.field-control input::placeholder { color: #5f5e61; }
.field-control input:focus {
  border-color: rgba(239,30,37,.64);
  background: rgba(255,255,255,.05);
  box-shadow: 0 0 0 4px rgba(239,30,37,.075);
}
.field-control input.is-invalid { border-color: var(--red); }
.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #77767a;
  cursor: pointer;
  transform: translateY(-50%);
}
.password-toggle:hover { background: rgba(255,255,255,.05); color: var(--ink); }
.password-toggle svg { width: 18px; height: 18px; }
.eye-closed { display: none; }
.password-toggle.is-visible .eye-open { display: none; }
.password-toggle.is-visible .eye-closed { display: block; }

.remember-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 24px;
  color: var(--ink-faint);
  font-size: 11px;
  cursor: pointer;
}
.remember-row input { position: absolute; opacity: 0; pointer-events: none; }
.custom-check {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255,255,255,.025);
}
.remember-row input:checked + .custom-check {
  border-color: var(--red);
  background: var(--red);
}
.remember-row input:checked + .custom-check::after {
  content: "✓";
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.submit-button {
  width: 100%;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--red);
  border-radius: 12px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(239,30,37,.18);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.submit-button:hover {
  background: #ff272e;
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(239,30,37,.26);
}
.submit-button:disabled { cursor: wait; opacity: .78; transform: none; }
.button-loader {
  display: none;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.submit-button.is-loading .button-loader { display: block; }
.submit-button.is-loading .button-arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-message {
  min-height: 18px;
  margin: 13px 0 0;
  color: var(--ink-faint);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}
.form-message.is-error { color: #ff777b; }
.form-message.is-success { color: #b9d7c3; }

.support-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}
.support-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  flex: 0 0 31px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 700;
}
.support-box div { display: grid; gap: 2px; }
.support-box strong { color: var(--ink-muted); font-size: 11px; }
.support-box a { color: var(--ink); font-size: 11px; text-decoration: none; }
.support-box a:hover { color: var(--red); }

.page-footer {
  width: min(1240px, calc(100% - 48px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-faint);
  font-size: 11px;
}

@media (max-width: 940px) {
  .access-shell {
    grid-template-columns: 1fr;
    max-width: 670px;
    padding-top: 58px;
  }
  .access-intro { max-width: none; }
  .feature-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature-item { display: block; }
  .feature-icon { margin-bottom: 12px; }
}

@media (max-width: 680px) {
  .topbar,
  .access-shell,
  .page-footer { width: min(100% - 28px, 620px); }
  .topbar { min-height: 76px; }
  .brand { font-size: 25px; }
  .back-link span:last-child { display: none; }
  .topbar-actions { gap: 12px; }
  .access-shell { padding: 44px 0 46px; gap: 45px; }
  .restricted-label { margin-bottom: 30px; }
  .access-intro h1 { font-size: clamp(46px, 15vw, 64px); letter-spacing: -2.6px; }
  .intro-copy { font-size: 15px; }
  .feature-list { grid-template-columns: 1fr; }
  .feature-item { display: grid; }
  .feature-icon { margin: 0; }
  .login-card { padding: 28px 22px; border-radius: 18px; }
  .login-card h2 { font-size: 28px; }
  .page-footer { min-height: 92px; flex-direction: column; justify-content: center; gap: 7px; text-align: center; }
}

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