:root {
  color-scheme: light;
  --ink: #142c31;
  --ink-soft: #455d60;
  --muted: #788b89;
  --green: #b8ed75;
  --green-deep: #91ce4d;
  --line: #e4e9e5;
  --paper: #f6f8f5;
  --white: #fff;
  --sans: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: 'Avenir Next', 'Segoe UI', sans-serif;
  --mono: 'SFMono-Regular', Consolas, ui-monospace, monospace;
}

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

.login-layout { display: grid; min-height: 100svh; grid-template-columns: minmax(430px, 1.02fr) minmax(430px, .98fr); }
.login-story { position: relative; isolation: isolate; display: flex; min-height: 100svh; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 38px clamp(32px, 5.4vw, 88px) 28px; color: #f2f5ee; background: #142f34; }
.login-story::before { position: absolute; z-index: -1; inset: 0; content: ''; background: radial-gradient(ellipse at 69% 34%, rgba(90, 141, 106, .28), transparent 45%), linear-gradient(145deg, transparent 57%, rgba(184, 237, 117, .055) 57.1%, transparent 57.35%); }
.login-story::after { position: absolute; z-index: -1; right: -190px; bottom: -225px; width: 610px; height: 610px; content: ''; border: 1px solid rgba(218, 237, 213, .14); border-radius: 50%; box-shadow: 0 0 0 48px rgba(218, 237, 213, .025), 0 0 0 105px rgba(218, 237, 213, .02), 0 0 0 168px rgba(218, 237, 213, .014); }
.login-brand { position: relative; z-index: 1; display: inline-flex; width: max-content; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 12px 12px 12px 4px; color: #183135; background: var(--green); transform: rotate(-4deg); }
.brand-mark svg { width: 22px; height: 22px; transform: rotate(4deg); }
.login-brand strong { display: block; font: 800 25px/.9 var(--display); letter-spacing: -1.4px; }
.login-brand small { display: block; margin-top: 7px; color: #9aafaa; font: 9px var(--mono); letter-spacing: 1.55px; }
.story-copy { position: relative; z-index: 1; width: min(100%, 550px); margin: auto 0; padding: 70px 0 78px; }
.story-eyebrow { display: inline-flex; align-items: center; gap: 10px; color: #abc0b2; font: 10px var(--mono); letter-spacing: 1.05px; text-transform: uppercase; }
.story-eyebrow span { width: 23px; height: 1px; background: var(--green); }
.story-copy h1 { margin: 28px 0 18px; font: 600 clamp(46px, 5.1vw, 74px)/1.03 var(--display); letter-spacing: -4.6px; }
.story-copy h1 em { color: var(--green); font-style: normal; font-weight: 500; }
.story-copy p { max-width: 380px; margin: 0; color: #b3c2bb; font-size: 14px; line-height: 1.8; }
.story-points { display: flex; flex-wrap: wrap; gap: 9px; margin: 31px 0 0; padding: 0; list-style: none; }
.story-points li { padding: 8px 11px; border: 1px solid rgba(213, 231, 215, .16); border-radius: 999px; color: #c7d4cc; font-size: 10px; }
.story-points li::before { display: inline-block; width: 5px; height: 5px; margin: 0 7px 1px 0; border-radius: 50%; content: ''; background: var(--green); }
.story-footer { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 18px; color: #849b93; font: 8px var(--mono); letter-spacing: .75px; }

.login-side { display: flex; min-height: 100svh; flex-direction: column; justify-content: center; padding: 40px clamp(32px, 7.5vw, 120px) 26px; background: var(--paper); }
.login-card-wrap { width: min(100%, 410px); margin: auto; }
.login-heading { margin-bottom: 33px; }
.login-kicker { color: #80918b; font: 9px var(--mono); letter-spacing: 1.2px; text-transform: uppercase; }
.login-heading h2 { margin: 13px 0 8px; color: #18373a; font: 700 31px/1.15 var(--display); letter-spacing: -1.25px; }
.login-heading p { max-width: 360px; margin: 0; color: #758682; font-size: 13px; line-height: 1.7; }
#login-form, #forgot-form, #reset-form { display: grid; }
#login-form > label, #forgot-form > label, #reset-form > label, .password-label label { margin: 0 0 8px; color: #385451; font-size: 12px; font-weight: 600; }
#login-form input, #forgot-form input, #reset-form input { width: 100%; height: 50px; margin: 0 0 21px; padding: 0 14px; border: 1px solid #dce5de; border-radius: 8px; color: #17373a; background: #fff; font-size: 13px; transition: border-color .16s ease, box-shadow .16s ease; }
#login-form input::placeholder, #forgot-form input::placeholder, #reset-form input::placeholder { color: #a9b6af; }
#login-form input:focus, #forgot-form input:focus, #reset-form input:focus { border-color: #8abd58; outline: 0; box-shadow: 0 0 0 4px rgba(145, 206, 77, .15); }
.password-label { display: flex; align-items: center; justify-content: space-between; }
.password-label button { margin: 0 0 8px; padding: 3px 0 3px 8px; border: 0; color: #628d43; background: transparent; font-size: 11px; font-weight: 600; cursor: pointer; }
.login-error { min-height: 18px; margin: -8px 0 7px; color: #b34b3e; font-size: 11px; line-height: 1.5; }
.forgot-link { justify-self: center; margin-top: 17px; color: #628d43; font-size: 11px; font-weight: 600; text-decoration: none; }
.forgot-link:hover { color: #365b32; text-decoration: underline; }
.login-submit { display: flex; height: 51px; align-items: center; justify-content: space-between; padding: 0 16px; border: 0; border-radius: 8px; color: #183135; background: var(--green); font-size: 13px; font-weight: 700; cursor: pointer; transition: background .16s ease, transform .16s ease; }
.login-submit:hover { background: #a9e35e; transform: translateY(-1px); }
.login-submit:disabled { cursor: wait; opacity: .72; transform: none; }
.login-submit span { font-size: 19px; font-weight: 400; }
.login-help { display: flex; align-items: center; gap: 10px; margin-top: 22px; color: #83918b; font-size: 11px; line-height: 1.5; }
.lock-icon { display: grid; width: 22px; height: 22px; flex: 0 0 22px; place-items: center; border: 1px solid #d6e1d7; border-radius: 50%; color: #668c52; }
.login-legal { display: flex; justify-content: space-between; gap: 18px; color: #98a49e; font: 9px var(--mono); letter-spacing: .35px; }
.login-legal a { color: #526f60; text-decoration: none; }
.login-legal a:hover { color: #243f36; }
.login-legal a span { margin-left: 4px; color: #79a74a; }
.recovery-back { display: inline-flex; width: max-content; align-items: center; gap: 7px; margin: 22px auto 0; color: #628d43; font-size: 11px; font-weight: 600; text-decoration: none; }
.recovery-back:hover { color: #365b32; }
.recovery-feedback { min-height: 19px; margin: -8px 0 10px; color: #536d60; font-size: 11px; line-height: 1.5; }
.recovery-feedback.error { color: #b34b3e; }
.recovery-feedback.success { color: #477944; }
.recovery-note { margin: 14px 0 0; color: #87968f; font-size: 10px; line-height: 1.6; }

@media (max-width: 900px) {
  .login-layout { grid-template-columns: minmax(330px, .9fr) minmax(360px, 1.1fr); }
  .login-story { padding-right: 34px; padding-left: 34px; }
  .story-copy h1 { font-size: clamp(43px, 6.2vw, 60px); letter-spacing: -3px; }
  .login-side { padding-right: 42px; padding-left: 42px; }
}
@media (max-width: 680px) {
  .login-layout { grid-template-columns: 1fr; }
  .login-story { min-height: 0; padding: 22px 25px 23px; }
  .login-story::after { right: -240px; bottom: -300px; width: 500px; height: 500px; }
  .brand-mark { width: 33px; height: 33px; }
  .login-brand strong { font-size: 22px; }
  .story-copy { padding: 35px 0 7px; }
  .story-eyebrow { font-size: 8px; }
  .story-copy h1 { margin: 17px 0 10px; font-size: clamp(37px, 10vw, 49px); letter-spacing: -2.4px; }
  .story-copy p { max-width: 355px; font-size: 12px; }
  .story-points { gap: 6px; margin-top: 18px; }
  .story-points li { padding: 6px 9px; font-size: 9px; }
  .story-footer { display: none; }
  .login-side { min-height: 0; padding: 39px 25px 19px; }
  .login-card-wrap { width: min(100%, 420px); }
  .login-heading { margin-bottom: 26px; }
  .login-heading h2 { font-size: 28px; }
  .login-legal { margin-top: 30px; }
}
@media (max-width: 380px) {
  .login-story, .login-side { padding-right: 20px; padding-left: 20px; }
  .story-copy h1 { font-size: 35px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
