:root {
  --bg: #080c0b;
  --panel: #0f1613;
  --line: rgba(255,255,255,.09);
  --text: #f4f8f6;
  --muted: #8b9b95;
  --green: #58e5a1;
  --red: #ff8585;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); }
body { color: var(--text); font: 14px/1.5 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input { font: inherit; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.05fr) minmax(430px, .95fr); }
.story-panel {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 100vh; padding: clamp(32px, 5vw, 68px);
  background:
    radial-gradient(circle at 72% 35%, rgba(88,229,161,.2), transparent 18rem),
    linear-gradient(145deg, #101b17, #09100d 72%);
  border-right: 1px solid var(--line);
}
.story-panel::before {
  content: ""; position: absolute; width: 460px; height: 460px; right: -180px; top: 16%;
  border: 1px solid rgba(88,229,161,.13); border-radius: 50%; box-shadow: 0 0 0 70px rgba(88,229,161,.025), 0 0 0 140px rgba(88,229,161,.018);
}
.story-brand, .mobile-brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px;
  color: #06130d; background: linear-gradient(145deg, #77f0b8, #31c981); font-weight: 900;
}
.story-brand strong, .mobile-brand strong { font-size: 15px; }
.story-copy { position: relative; z-index: 1; width: min(620px, 100%); margin: auto 0; }
.eyebrow { margin: 0 0 10px; color: var(--green); font-size: 9px; font-weight: 900; letter-spacing: .18em; }
.story-copy h1 { margin: 0; max-width: 620px; font-size: clamp(42px, 5.5vw, 74px); line-height: .98; letter-spacing: -.055em; }
.story-copy > p:last-child { max-width: 540px; margin: 24px 0 0; color: var(--muted); font-size: 15px; }
.signal-card { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; width: max-content; padding: 12px 15px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); }
.signal-card strong, .signal-card small { display: block; }
.signal-card strong { font-size: 11px; }
.signal-card small { color: var(--muted); font-size: 9px; margin-top: 2px; }
.signal-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(88,229,161,.09); }
.form-panel { display: grid; place-items: center; min-height: 100vh; padding: 36px; background: #090d0c; }
.login-card { width: min(410px, 100%); }
.mobile-brand { display: none; margin-bottom: 50px; }
.login-card h2 { margin: 0; font-size: 34px; letter-spacing: -.04em; }
.form-intro { margin: 7px 0 32px; color: var(--muted); }
.field { display: block; margin-bottom: 18px; }
.field > span { display: block; margin-bottom: 7px; font-size: 11px; font-weight: 700; }
.field input {
  width: 100%; height: 48px; padding: 0 14px; border: 1px solid #25332e; border-radius: 11px;
  outline: 0; color: var(--text); background: var(--panel); transition: .18s ease;
}
.field input:focus { border-color: #43d493; box-shadow: 0 0 0 3px rgba(88,229,161,.08); }
.field input::placeholder { color: #54635e; }
.password-field { position: relative; }
.password-field input { padding-right: 72px; }
.password-field button { position: absolute; inset: 6px 6px 6px auto; padding: 0 10px; border: 0; color: var(--green); background: transparent; cursor: pointer; font-size: 10px; font-weight: 800; }
.submit-button {
  width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: space-between;
  margin-top: 25px; padding: 0 16px; border: 1px solid #6ceaae; border-radius: 11px;
  color: #05150d; background: linear-gradient(145deg, #78efb8, #36cb87); font-weight: 800; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.submit-button:hover { transform: translateY(-1px); box-shadow: 0 12px 36px rgba(49,201,129,.14); }
.submit-button:disabled { opacity: .65; cursor: wait; }
.alert { margin-top: 16px; padding: 11px 13px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.alert.error { color: var(--red); border: 1px solid rgba(255,133,133,.25); background: rgba(255,133,133,.07); }
.alert.success { color: var(--green); border: 1px solid rgba(88,229,161,.22); background: rgba(88,229,161,.06); }
.security-note { display: flex; align-items: flex-start; gap: 8px; margin: 25px 0 0; color: #62716c; font-size: 9px; }
.security-note span { color: var(--green); }
button:focus-visible, input:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

@media (max-width: 850px) {
  .login-shell { grid-template-columns: 1fr; }
  .story-panel { display: none; }
  .form-panel { padding: 28px; background: radial-gradient(circle at top, rgba(88,229,161,.08), transparent 22rem), var(--bg); }
  .mobile-brand { display: flex; }
}
@media (prefers-reduced-motion: reduce) { * { transition-duration: .01ms !important; } }
