:root {
  --ink: #13241d;
  --muted: #6f7c75;
  --green: #1f5b42;
  --green-dark: #10291f;
  --lime: #d9ff70;
  --line: #dfe5df;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background: #f4f6f1; color: var(--ink); font-family: "DM Sans", sans-serif; }
button, input { font: inherit; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, .9fr) minmax(500px, 1.1fr); }
.login-brand { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 42px clamp(32px, 5vw, 76px); background: var(--green-dark); color: white; }
.login-brand::before { content: ""; position: absolute; right: -180px; bottom: -210px; width: 520px; height: 520px; border: 1px solid rgba(217,255,112,.2); border-radius: 50%; box-shadow: 0 0 0 90px rgba(217,255,112,.035), 0 0 0 180px rgba(217,255,112,.025); }
.brand { position: relative; display: flex; align-items: center; gap: 13px; z-index: 1; }
.brand span { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: var(--lime); font: 800 14px Manrope, sans-serif; }
.brand strong { font: 800 19px Manrope, sans-serif; }
.brand-copy { position: relative; z-index: 1; max-width: 520px; }
.brand-copy p, .eyebrow { margin: 0 0 10px; color: var(--lime); font: 800 10px Manrope, sans-serif; letter-spacing: .18em; }
.brand-copy h1 { margin: 0 0 20px; font: 800 clamp(34px, 4.7vw, 64px)/1.03 Manrope, sans-serif; letter-spacing: -.055em; }
.brand-copy > span { display: block; max-width: 410px; color: #aabbb2; font-size: 14px; line-height: 1.6; }
.login-brand > small { position: relative; z-index: 1; color: #718a7e; font-size: 10px; }
.login-area { display: grid; place-items: center; padding: 32px; }
.login-card { width: min(100%, 420px); padding: 38px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 24px 60px rgba(27,54,42,.1); }
.lock-mark { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 50%; background: var(--lime); color: var(--green-dark); font-size: 21px; }
.login-card .eyebrow { color: var(--green); }
.login-card h2 { margin: 0; font: 800 28px Manrope, sans-serif; letter-spacing: -.04em; }
.step-badge { display: inline-flex; margin-bottom: 12px; padding: 5px 8px; border-radius: 999px; background: #edf5ef; color: var(--green); font: 800 9px Manrope, sans-serif; letter-spacing: .12em; }
.intro { margin: 8px 0 27px; color: var(--muted); font-size: 12px; line-height: 1.5; }
label { display: grid; gap: 7px; margin-bottom: 16px; color: #536159; font-size: 11px; font-weight: 700; }
label small { color: #8b9790; font-size: 9px; font-weight: 500; line-height: 1.4; }
input { width: 100%; min-height: 45px; padding: 11px 13px; border: 1px solid #d9dfda; border-radius: 9px; outline: none; background: #fbfcfa; color: var(--ink); }
input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(31,91,66,.08); }
.token-input { font-size: 18px; font-weight: 700; letter-spacing: .25em; }
.login-card button { width: 100%; min-height: 46px; margin-top: 7px; border: 0; border-radius: 9px; background: var(--green-dark); color: white; font-weight: 700; cursor: pointer; }
.login-card button span { margin-left: 8px; color: var(--lime); }
.login-card button:hover { background: var(--green); }
.login-card button:disabled { cursor: wait; opacity: .65; }
.login-card .back-button { min-height: 34px; margin-top: 8px; background: transparent; color: var(--green); font-size: 11px; }
.login-card .back-button:hover { background: #f1f5f1; }
.login-error { margin: 0 0 10px; padding: 10px 12px; border-radius: 8px; background: #ffe7e4; color: #8a2e28; font-size: 11px; line-height: 1.4; }
.security-note { margin-top: 17px; text-align: center; color: #849089; font-size: 9px; }
.security-note span { color: var(--green); font-weight: 800; }

@media (max-width: 820px) {
  .login-shell { display: block; }
  .login-brand { min-height: 235px; padding: 27px 24px; }
  .brand-copy h1 { margin-top: 30px; font-size: 34px; }
  .brand-copy > span, .login-brand > small { display: none; }
  .login-area { padding: 24px 15px 40px; }
  .login-card { margin-top: -38px; padding: 27px 22px; position: relative; z-index: 2; }
}
