:root {
  --brand: #e1252d;
  --brand-hover: #c81c23;
  --ink: #f4f4f5;
  --ink-2: #a1a1aa;
  --ink-3: #71717a;
  --panel: #0a0a0b;
  --surface: #141416;
  --surface-2: #1c1c1f;
  --line: #2a2a2e;
  --danger-bg: rgba(225, 37, 45, .12);
  --danger-ink: #fca5a5;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--panel);
  color: var(--ink);
  font: 15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.shell { min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr; }

/* ---------- brand panel ---------- */
.brand {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: 44px 56px;
  background: #000;
  border-right: 1px solid var(--line);
}
.brand > *:not([aria-hidden]) { position: relative; z-index: 1; }
.brand-glow {
  position: absolute;
  inset: auto -20% -35% -20%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(225, 37, 45, .38), rgba(225, 37, 45, 0) 65%);
  filter: blur(10px);
}
.brand-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%);
}

.brand-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo-dp { height: 44px; width: auto; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.18); }

.brand-copy { max-width: 540px; }
.brand-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.025em;
}
.brand-copy h1 span { color: var(--brand); }
.brand-copy > p { margin: 0 0 36px; color: var(--ink-2); font-size: 16px; max-width: 470px; }

.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.features li { display: flex; gap: 14px; align-items: flex-start; }
.features strong { display: block; font-weight: 600; font-size: 15px; }
.features span:not(.f-icon) { color: var(--ink-3); font-size: 14px; }
.f-icon {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(225, 37, 45, .12);
  border: 1px solid rgba(225, 37, 45, .28);
  color: #ff6b70;
}

.brand-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.partner { display: flex; align-items: center; gap: 12px; }
.partner div { display: grid; line-height: 1.3; }
.partner .muted { color: var(--ink-3); font-size: 12px; }
.partner strong { font-size: 14px; font-weight: 600; }
.rrs-chip {
  width: 46px; height: 46px; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line);
  background: #1b2a4a;
}
.rrs-chip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo-oo { height: 44px; width: auto; opacity: .9; }

/* ---------- form panel ---------- */
.form-side {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 24px;
  padding: 40px 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(225,37,45,.08), transparent 40%),
    var(--panel);
}
.card {
  width: min(420px, 100%);
  display: grid; gap: 20px;
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.02) inset;
}
.card-head h2 { margin: 0 0 4px; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.card-head p { margin: 0; color: var(--ink-2); }
.mobile-only { display: none; }

.field { display: grid; gap: 8px; }
.field > span { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.input-wrap {
  position: relative; display: flex; align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 11px;
  transition: border-color .15s, box-shadow .15s;
}
.input-wrap > svg:first-child { position: absolute; left: 14px; color: var(--ink-3); pointer-events: none; }
.input-wrap:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(225,37,45,.16); }
.input-wrap:focus-within > svg:first-child { color: var(--ink); }
.input-wrap.invalid { border-color: var(--brand); }
.input-wrap input {
  flex: 1; min-width: 0;
  height: 48px;
  padding: 0 14px 0 44px;
  background: transparent; border: 0; outline: 0;
  color: var(--ink); font: inherit;
}
.input-wrap input::placeholder { color: var(--ink-3); }
.input-wrap input:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 100px var(--surface-2) inset;
  caret-color: var(--ink);
}
.toggle-pw {
  display: grid; place-items: center;
  width: 40px; height: 40px; margin-right: 4px;
  border: 0; border-radius: 8px; background: transparent; color: var(--ink-3); cursor: pointer;
}
.toggle-pw:hover { color: var(--ink); background: rgba(255,255,255,.05); }
.toggle-pw.on { color: var(--brand); }

.submit {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; margin-top: 4px;
  border: 0; border-radius: 11px;
  background: var(--brand); color: #fff;
  font: inherit; font-weight: 600; font-size: 15px;
  cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(225,37,45,.7);
  transition: background .15s, transform .05s;
}
.submit:hover { background: var(--brand-hover); }
.submit:active { transform: translateY(1px); }
.submit:focus-visible, .toggle-pw:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.submit .arrow { transition: transform .15s; }
.submit:hover .arrow { transform: translateX(3px); }
.spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%;
  animation: spin .7s linear infinite;
}
.submit.loading .label, .submit.loading .arrow { display: none; }
.submit.loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.alert {
  display: flex; gap: 10px; align-items: center;
  padding: 11px 14px;
  border: 1px solid rgba(225,37,45,.35);
  border-radius: 10px;
  background: var(--danger-bg); color: var(--danger-ink);
  font-size: 14px;
}
.alert[hidden] { display: none; }

.secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; color: var(--ink-3); font-size: 13px; }
.secure svg { width: 15px; height: 15px; }
.copyright { margin: 0; color: var(--ink-3); font-size: 12px; text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .brand { display: none; }
  .mobile-only { display: block; height: 38px; margin: 0 auto 4px; }
  .card { padding: 28px 22px; }
  .card-head { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation-duration: 2s !important; }
}
