:root {
  --night: #081614;
  --deep: #0d2624;
  --forest: #174541;
  --lime: #caff61;
  --paper: #fffdf7;
  --sand: #f2efe6;
  --ink: #10201e;
  --muted: #687572;
  --danger: #b83f34;
  --display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --body: "Alexandria", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--sand);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
a { color: inherit; text-decoration: none; }

.login-shell {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(440px, 1.08fr) minmax(520px, .92fr);
}

.login-story {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
  padding: clamp(32px, 5vw, 72px);
  overflow: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 68% 54%, rgba(202, 255, 97, .13), transparent 21rem),
    linear-gradient(145deg, #0d2b27 0%, var(--night) 72%);
  isolation: isolate;
}

.story-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .16;
  background-image:
    linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom right, black, transparent 72%);
}

.brand {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 12px;
  font: 700 25px/1 var(--display);
  letter-spacing: -.045em;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 13px;
  background: var(--lime);
}

.brand-mark img { width: 31px; height: 31px; object-fit: contain; }
.story-copy { position: relative; z-index: 1; margin: auto 0; padding: 70px 0; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 30px;
  color: var(--lime);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow span { width: 28px; height: 1px; background: currentColor; }

.story-copy h1 {
  max-width: 720px;
  margin: 0;
  font: 700 clamp(74px, 8vw, 142px)/.78 var(--display);
  letter-spacing: -.075em;
}

.story-copy h1 em { color: var(--lime); font-style: normal; }
.story-note { max-width: 440px; margin: 40px 0 0; color: rgba(255, 253, 247, .6); font-size: 14px; line-height: 1.8; }
.story-footer { margin: 0; color: rgba(255, 253, 247, .42); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.motion-mark { position: absolute; right: -100px; bottom: -90px; width: 500px; height: 500px; z-index: -1; }
.orbit { position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; }
.orbit-one { animation: orbit-drift 12s ease-in-out infinite alternate; }
.orbit-two { inset: 72px -80px; border-color: rgba(202,255,97,.18); transform: rotate(-22deg); }
.runner-line { position: absolute; right: 34%; bottom: 20%; width: 220px; height: 18px; border-radius: 50%; background: var(--lime); filter: blur(18px); opacity: .28; transform: rotate(-28deg); }
.pulse { position: absolute; right: 34%; bottom: 34%; display: grid; width: 92px; height: 92px; place-items: center; border-radius: 50%; color: var(--deep); background: var(--lime); font: 700 22px/1 var(--display); box-shadow: 0 0 0 18px rgba(202,255,97,.06); }

.login-panel {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: clamp(32px, 6vw, 96px);
  background: radial-gradient(circle at 90% 8%, rgba(255,115,88,.1), transparent 18rem), var(--paper);
}

.login-card { width: min(100%, 460px); }
.access-mark { display: grid; width: 52px; height: 52px; margin-bottom: 30px; place-items: center; border: 1px solid rgba(13,38,36,.1); border-radius: 17px; color: var(--forest); background: var(--sand); }
.access-mark svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.form-kicker { margin: 0 0 11px; color: var(--forest); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.login-card h2 { margin: 0; font: 700 clamp(42px, 4vw, 58px)/.95 var(--display); letter-spacing: -.055em; }
.form-intro { max-width: 390px; margin: 20px 0 38px; color: var(--muted); font-size: 13px; line-height: 1.75; }
form { display: flex; flex-direction: column; }
form > label { margin: 0 0 9px; color: var(--ink); font-size: 11px; font-weight: 600; }
form > label:not(:first-child) { margin-top: 20px; }

.field-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  min-height: 58px;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid rgba(13,38,36,.13);
  border-radius: 15px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.field-shell:focus-within { border-color: var(--forest); box-shadow: 0 0 0 4px rgba(23,69,65,.08); transform: translateY(-1px); }
.field-shell > svg, .reveal-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.field-shell > svg { color: #82908d; }
.field-shell input { width: 100%; min-width: 0; padding: 17px 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 13px; }
.reveal-button { display: grid; width: 34px; height: 34px; padding: 0; place-items: center; border: 0; border-radius: 10px; color: #82908d; background: transparent; cursor: pointer; }
.reveal-button:hover { color: var(--forest); background: var(--sand); }
.form-message { min-height: 22px; margin-top: 14px; color: var(--danger); font-size: 11px; line-height: 1.5; }

.submit-button {
  display: flex;
  min-height: 59px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 0 21px;
  border: 0;
  border-radius: 16px;
  color: var(--deep);
  background: var(--lime);
  box-shadow: 0 14px 34px rgba(157, 221, 56, .16);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.submit-button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(157, 221, 56, .24); }
.submit-button:disabled { cursor: wait; opacity: .66; }
.submit-button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.security-note { display: flex; align-items: center; gap: 9px; margin: 22px 0 0; color: #82908d; font-size: 9px; letter-spacing: .02em; }
.security-note svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

@keyframes orbit-drift { to { transform: rotate(18deg) scale(.94); } }

@media (max-width: 900px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-story { min-height: 330px; padding: 30px; }
  .story-copy { padding: 70px 0 45px; }
  .story-copy h1 { font-size: clamp(60px, 16vw, 96px); }
  .story-note, .story-footer { display: none; }
  .motion-mark { right: -180px; bottom: -210px; }
  .login-panel { min-height: auto; padding: 54px 26px 68px; }
}

@media (max-width: 480px) {
  .login-story { min-height: 270px; }
  .story-copy { padding: 50px 0 24px; }
  .story-copy h1 { font-size: 58px; }
  .eyebrow { margin-bottom: 20px; }
  .login-card h2 { font-size: 43px; }
}

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

