:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f3f0e7;
  background: #090d0c;
  --acid: #d9ff45;
  --muted: #8d9892;
  --line: rgba(243, 240, 231, 0.15);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; margin: 0; }
body { min-height: 100vh; min-height: 100svh; background: #090d0c; }
button, input { font: inherit; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; }

.login-shell { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(390px, .55fr); }
.login-visual { min-height: 720px; position: relative; overflow: hidden; border-right: 1px solid var(--line); background:
  linear-gradient(180deg, rgba(7, 11, 10, .12), rgba(7, 11, 10, .88)),
  radial-gradient(ellipse at 62% 78%, rgba(217, 255, 69, .19), transparent 25%),
  linear-gradient(145deg, #283f38 0%, #172822 42%, #0c1311 100%); }
.login-visual::before { content: ''; position: absolute; width: 120%; height: 52%; left: -10%; bottom: -13%; border-radius: 50% 48% 0 0; transform: rotate(-4deg); background: linear-gradient(160deg, #667b43, #1e3328 55%, #0c1512); box-shadow: inset 0 1px rgba(255,255,255,.12); }
.login-visual::after { content: ''; position: absolute; width: 70%; height: 31%; right: -8%; bottom: 8%; border-radius: 60% 0 0 0; transform: rotate(7deg); background: linear-gradient(160deg, rgba(139,156,88,.9), #294335 60%); }
.login-visual__grid { position: absolute; inset: 0; opacity: .13; background-image: linear-gradient(rgba(255,255,255,.17) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.17) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(to bottom, black, transparent 72%); }
.login-visual__flag { position: absolute; z-index: 2; left: 67%; bottom: 24%; width: 2px; height: 140px; background: rgba(243,240,231,.9); box-shadow: 0 0 40px rgba(217,255,69,.24); }
.login-visual__flag i { display: block; width: 74px; height: 37px; background: var(--acid); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.login-visual__flag span { position: absolute; width: 88px; height: 20px; border: 1px solid rgba(243,240,231,.45); border-radius: 50%; left: -43px; bottom: -8px; }
.login-visual__copy { position: absolute; z-index: 3; left: clamp(28px, 5vw, 78px); top: clamp(90px, 16vh, 180px); max-width: 700px; }
.eyebrow { color: var(--acid); font: 600 10px/1 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: .18em; text-transform: uppercase; }
.login-visual__copy h1 { max-width: 680px; margin: 20px 0 20px; font: 400 clamp(52px, 6.4vw, 102px)/.82 Georgia, "Times New Roman", serif; letter-spacing: -.065em; }
.login-visual__copy h1 em { color: var(--acid); font-weight: 400; }
.login-visual__copy p { max-width: 500px; margin: 0; color: rgba(243,240,231,.65); font: 400 12px/1.7 ui-monospace, "SFMono-Regular", Menlo, monospace; }
.login-visual__metrics { position: absolute; z-index: 4; inset: auto 0 0; min-height: 88px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); background: rgba(7,11,10,.72); backdrop-filter: blur(14px); }
.login-visual__metrics span { padding: 23px 28px; border-right: 1px solid var(--line); }
.login-visual__metrics small, .login-visual__metrics strong { display: block; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; }
.login-visual__metrics small { margin-bottom: 8px; color: var(--muted); font-size: 8px; letter-spacing: .14em; text-transform: uppercase; }
.login-visual__metrics strong { color: var(--acid); font-size: 12px; font-weight: 500; }

.login-panel { padding: calc(32px + var(--safe-top)) 42px calc(28px + var(--safe-bottom)); display: flex; flex-direction: column; background: radial-gradient(circle at 90% 20%, rgba(217,255,69,.04), transparent 28%), #0d1211; }
.login-brand { display: flex; align-items: center; gap: 14px; font-size: 12px; letter-spacing: -.02em; text-transform: uppercase; }
.login-brand > span:last-child b { color: var(--acid); }
.login-brand__mark { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(217,255,69,.48); position: relative; transform: rotate(45deg); }
.login-brand__mark b { font: 500 11px ui-monospace, "SFMono-Regular", Menlo, monospace; transform: rotate(-45deg); }
.login-brand__mark i { position: absolute; right: -8px; bottom: -7px; padding: 2px 4px; background: var(--acid); color: #090d0c; font: normal 600 7px ui-monospace, "SFMono-Regular", Menlo, monospace; transform: rotate(-45deg); }
.login-card { width: 100%; max-width: 440px; margin: auto; }
.login-card h2 { margin: 13px 0 10px; font: 400 52px/.95 Georgia, "Times New Roman", serif; letter-spacing: -.045em; }
.login-card > p { max-width: 390px; margin: 0 0 34px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.login-card form { display: grid; gap: 17px; }
.login-card label { display: grid; gap: 8px; }
.login-card label span { color: #aeb7b2; font: 600 8px ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; }
.login-card input { width: 100%; height: 52px; padding: 0 14px; border: 1px solid var(--line); border-radius: 0; background: #080d0c; color: #f3f0e7; caret-color: var(--acid); transition: border-color .2s, background .2s; }
.login-card input:hover, .login-card input:focus { border-color: rgba(217,255,69,.5); background: #0b110f; }
.login-card button { height: 54px; margin-top: 6px; padding: 0 17px; border: 1px solid var(--acid); display: flex; align-items: center; justify-content: space-between; background: var(--acid); color: #090d0c; cursor: pointer; font: 700 9px ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: .09em; text-transform: uppercase; transition: background .2s, opacity .2s; }
.login-card button:hover { background: #e5ff7c; }
.login-card button:disabled { cursor: wait; opacity: .62; }
.login-card button i { font: normal 24px/1 sans-serif; }
.login-status { min-height: 20px; margin: 0; color: #ffb67b; font: 500 9px/1.5 ui-monospace, "SFMono-Regular", Menlo, monospace; }
.login-panel footer { display: flex; justify-content: space-between; color: #66716b; font: 500 8px ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: .1em; text-transform: uppercase; }
.login-panel footer span:first-child { display: flex; align-items: center; gap: 8px; }
.login-panel footer i { width: 6px; height: 6px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 12px rgba(217,255,69,.6); }

@media (max-width: 900px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-visual { min-height: 43svh; border-right: 0; border-bottom: 1px solid var(--line); }
  .login-visual__copy { top: 74px; }
  .login-visual__copy h1 { font-size: clamp(48px, 10vw, 78px); }
  .login-visual__copy p { display: none; }
  .login-visual__metrics { min-height: 66px; }
  .login-visual__metrics span { padding: 16px 22px; }
  .login-panel { min-height: 57svh; padding: 30px 28px 24px; }
  .login-card { padding: 54px 0; }
}

@media (max-width: 540px) {
  .login-visual { min-height: 34svh; }
  .login-visual__copy { left: 22px; top: 58px; }
  .login-visual__copy h1 { margin-top: 14px; font-size: 44px; }
  .login-visual__metrics { display: none; }
  .login-visual__flag { height: 76px; bottom: 10%; }
  .login-visual__flag i { width: 44px; height: 23px; }
  .login-panel { min-height: 66svh; padding-inline: 22px; }
  .login-brand > span:last-child { font-size: 10px; }
  .login-card { padding: 48px 0 38px; }
  .login-card h2 { font-size: 44px; }
  .login-panel footer span:first-child { display: none; }
  .login-panel footer { justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
