:root {
  color-scheme: dark;
  --bg: #080c12;
  --panel: #101722;
  --panel-deep: #0b111a;
  --border: #273448;
  --border-soft: rgba(142, 160, 182, .16);
  --text: #edf3fb;
  --muted: #8ea0b6;
  --accent: #55d6be;
  --accent-dark: #173b36;
  --blue: #6ea8fe;
  --negative: #ff7087;
  --warning: #ffcc66;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 13% 10%, rgba(85, 214, 190, .11), transparent 27rem),
    radial-gradient(circle at 85% 90%, rgba(110, 168, 254, .1), transparent 32rem),
    var(--bg);
  font: 14px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: .19;
  background-image:
    linear-gradient(rgba(142, 160, 182, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142, 160, 182, .12) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom right, #000, transparent 72%);
}

button, input { font: inherit; }

.login-shell {
  width: min(1120px, calc(100% - 40px));
  min-height: 650px;
  margin: max(28px, calc((100vh - 650px) / 2)) auto;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(12, 18, 27, .94);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .42);
}

.strategy-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 42px 46px;
  overflow: hidden;
  border-right: 1px solid var(--border);
  background:
    linear-gradient(145deg, rgba(21, 40, 48, .93), rgba(9, 15, 23, .96)),
    var(--panel);
}

.strategy-panel::after {
  position: absolute;
  right: -130px;
  bottom: -160px;
  width: 430px;
  height: 430px;
  content: "";
  border: 1px solid rgba(85, 214, 190, .17);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(85, 214, 190, .025), 0 0 0 84px rgba(85, 214, 190, .018);
}

.brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--accent);
  border: 1px solid #3d7c76;
  border-radius: 12px;
  background: #10231f;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -.5px;
}

.brand strong, .brand small { display: block; }
.brand strong { font-size: 17px; letter-spacing: .4px; }
.brand small { color: var(--muted); font-size: 11px; }

.strategy-copy {
  position: relative;
  z-index: 1;
  max-width: 470px;
  margin: auto 0;
  padding: 60px 0 46px;
}

.eyebrow {
  color: var(--accent);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 1.5px;
}

.strategy-copy h1 {
  max-width: 450px;
  margin: 18px 0;
  font-size: clamp(38px, 5vw, 61px);
  line-height: 1.02;
  letter-spacing: -2.8px;
}

.strategy-copy p {
  max-width: 440px;
  margin: 0;
  color: #a9b8c9;
  font-size: 15px;
}

.signal-flow {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 22px 1fr 22px 1fr;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.signal-flow div span, .signal-flow div strong, .signal-flow div small { display: block; }
.signal-flow div span { color: var(--accent); font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.signal-flow div strong { margin: 7px 0 2px; font-size: 12px; }
.signal-flow div small { color: var(--muted); font-size: 9px; }
.signal-flow i { height: 1px; background: linear-gradient(90deg, var(--border), var(--accent), var(--border)); }

.mode-note {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 23px;
  color: var(--warning);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.mode-note span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warning);
  box-shadow: 0 0 14px rgba(255, 204, 102, .7);
}

.auth-panel {
  display: grid;
  padding: 52px;
  place-items: center;
  background: linear-gradient(180deg, rgba(16, 23, 34, .92), rgba(10, 16, 24, .98));
}

.auth-wrap { width: min(100%, 360px); }

.secure-mark {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 25px;
  place-items: center;
  color: var(--accent);
  border: 1px solid rgba(85, 214, 190, .32);
  border-radius: 50%;
  background: rgba(85, 214, 190, .08);
  font-size: 22px;
}

.auth-heading h2 {
  margin: 11px 0 8px;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -1px;
}

.auth-heading p {
  margin: 0 0 34px;
  color: var(--muted);
}

form label {
  display: block;
  margin-bottom: 8px;
  color: #bdc9d8;
  font-size: 11px;
  font-weight: 700;
}

.input-wrap { position: relative; }

input {
  width: 100%;
  height: 48px;
  padding: 0 65px 0 14px;
  outline: none;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--panel-deep);
  transition: border-color .16s, box-shadow .16s;
}

input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(110, 168, 254, .12);
}

.reveal {
  position: absolute;
  top: 50%;
  right: 11px;
  padding: 5px 6px;
  transform: translateY(-50%);
  color: var(--muted);
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
}

.reveal:hover { color: var(--text); }

.submit {
  display: flex;
  width: 100%;
  height: 48px;
  margin-top: 14px;
  padding: 0 16px;
  align-items: center;
  justify-content: space-between;
  color: #06120f;
  border: 1px solid var(--accent);
  border-radius: 9px;
  background: var(--accent);
  cursor: pointer;
  font-weight: 800;
  transition: filter .16s, transform .16s;
}

.submit:hover { filter: brightness(1.08); transform: translateY(-1px); }
.submit:disabled { cursor: wait; filter: saturate(.5); transform: none; }
.submit b { font-size: 19px; }

.error {
  min-height: 21px;
  margin: 10px 0 0;
  color: var(--negative);
  font-size: 12px;
}

footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 45px;
  color: #66778b;
  font-size: 10px;
  letter-spacing: .35px;
}

.lock {
  display: inline-block;
  width: 8px;
  height: 7px;
  border: 1px solid #66778b;
  border-radius: 2px;
}

.lock::before {
  display: block;
  width: 4px;
  height: 4px;
  margin: -5px auto 0;
  content: "";
  border: 1px solid #66778b;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
}

@media (max-width: 820px) {
  .login-shell { width: min(520px, calc(100% - 28px)); grid-template-columns: 1fr; }
  .strategy-panel { min-height: 310px; padding: 28px; border-right: 0; border-bottom: 1px solid var(--border); }
  .strategy-copy { margin: 38px 0 25px; padding: 0; }
  .strategy-copy h1 { margin: 12px 0; font-size: 38px; letter-spacing: -1.6px; }
  .signal-flow { display: none; }
  .auth-panel { padding: 42px 28px; }
}

@media (max-width: 480px) {
  .login-shell { width: 100%; min-height: 100vh; margin: 0; border: 0; border-radius: 0; }
  .strategy-panel { min-height: 250px; padding: 23px; }
  .strategy-copy { margin: 32px 0 8px; }
  .strategy-copy h1 { font-size: 32px; }
  .strategy-copy p { font-size: 13px; }
  .mode-note { display: none; }
  .auth-panel { padding: 38px 23px; }
}

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