:root {
  color-scheme: dark;
  --ink: #f5f6f3;
  --muted: #a5aaa6;
  --soft: #7f8581;
  --line: rgba(255, 255, 255, .14);
  --accent: #c7f36b;
  --surface: #151616;
  --sans: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
  --mono: "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; }
body { margin: 0; background: #0d0e0e; color: var(--ink); font-family: var(--sans); }
button, input { font: inherit; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 1.05fr) minmax(440px, .95fr); }
.welcome { position: relative; min-height: 100vh; display: flex; flex-direction: column; padding: clamp(28px, 4vw, 58px); background: #101111; border-right: 1px solid var(--line); }
.login-brand { display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; color: var(--ink); text-decoration: none; font-size: 17px; font-weight: 700; letter-spacing: -.025em; }
.brand-mark { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: #171818; }
.brand-mark i { position: absolute; width: 4px; height: 18px; border-radius: 9px; background: var(--accent); transform-origin: bottom; }
.brand-mark i:first-child { transform: translateX(-7px) rotate(-22deg); }
.brand-mark i:nth-child(2) { height: 24px; }
.brand-mark i:last-child { transform: translateX(7px) rotate(22deg); }

.welcome-copy { max-width: 680px; margin: auto 0; padding: 80px 0; }
.eyebrow, .form-kicker { margin: 0 0 20px; color: var(--accent); font: 700 10px/1 var(--mono); letter-spacing: .15em; text-transform: uppercase; }
.welcome h1 { margin: 0; font-size: clamp(56px, 7.6vw, 110px); line-height: .83; letter-spacing: -.075em; }
.welcome h1 em { color: var(--accent); font-family: var(--serif); font-weight: 400; }
.welcome-copy > p:last-child { max-width: 540px; margin: 28px 0 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.welcome-foot { margin: 0; color: var(--soft); font: 600 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.constellation { display: none; }

.sign-in { display: grid; place-items: center; min-height: 100vh; padding: 46px clamp(25px, 5vw, 76px); background: #0d0e0e; }
.form-wrap { width: min(100%, 470px); }
.sendforge-lockup { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 54px; color: var(--ink); font-size: 15px; font-weight: 700; }
.sendforge-lockup b { color: #6ecff6; }
.plane { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 8px; background: #151616; color: #6ecff6; font-size: 17px; }
.form-kicker { margin-bottom: 12px; }
.sign-in h2 { margin: 0; font-size: clamp(38px, 5vw, 58px); line-height: 1; letter-spacing: -.06em; }
.form-intro { margin: 15px 0 36px; color: var(--muted); font-size: 14px; line-height: 1.55; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
fieldset > label { display: block; margin: 18px 0 8px; color: #d4d7d4; font-size: 11px; font-weight: 700; }
.input-shell { display: flex; align-items: center; min-height: 52px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.input-shell:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(199, 243, 107, .12); }
.input-shell input { width: 100%; min-width: 0; height: 50px; padding: 0 14px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; }
.input-shell.is-readonly input { color: #c4c8c4; }
.input-shell > span { margin-right: 12px; padding: 5px 7px; border: 1px solid var(--line); border-radius: 999px; background: #1d1f1d; color: var(--accent); font: 600 8px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.password-toggle { align-self: stretch; padding: 0 14px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; }
.password-toggle:hover { color: var(--ink); }
.field-note { margin: 9px 1px 0; color: var(--soft); font-size: 10px; line-height: 1.5; }
.submit-button { position: relative; width: 100%; min-height: 54px; margin-top: 25px; padding: 0 50px 0 18px; border: 0; border-radius: 12px; background: var(--accent); color: #11130e; cursor: pointer; font-weight: 800; font-size: 13px; text-align: left; transition: transform .2s; }
.submit-button:hover { transform: translateY(-1px); }
.submit-button:disabled { cursor: wait; opacity: .72; transform: none; }
.button-arrow { position: absolute; right: 19px; top: 14px; font-size: 20px; }
.button-spinner { display: none; position: absolute; right: 18px; top: 17px; width: 20px; height: 20px; border: 2px solid rgba(17, 19, 14, .25); border-top-color: #11130e; border-radius: 50%; animation: spin .8s linear infinite; }
.is-loading .button-arrow { display: none; }
.is-loading .button-spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.login-status { min-height: 22px; margin: 12px 2px 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.login-status.is-error { color: #ff9e93; }
.login-status.is-success { color: var(--accent); }
.privacy-note { display: grid; grid-template-columns: 24px 1fr; gap: 11px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.privacy-note svg { width: 21px; fill: none; stroke: var(--soft); stroke-width: 1.5; }
.privacy-note p { margin: 0; color: var(--soft); font-size: 10px; line-height: 1.55; }
.privacy-note strong { color: var(--muted); }

@media (max-width: 820px) {
  .login-shell { grid-template-columns: 1fr; }
  .welcome { min-height: 300px; padding: 28px; }
  .welcome-copy { padding: 58px 0 42px; }
  .welcome h1 { font-size: 58px; }
  .welcome-foot { display: none; }
  .sign-in { min-height: calc(100vh - 300px); padding: 48px 24px; }
  .sendforge-lockup { margin-bottom: 38px; }
}

@media (max-width: 420px) {
  .welcome h1 { font-size: 48px; }
  .welcome-copy > p:last-child { font-size: 14px; }
  .sign-in { place-items: start stretch; }
  .input-shell > span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .submit-button { transition: none; }
  .button-spinner { animation-duration: 1.6s; }
}
