:root {
  color-scheme: light;
  --paper: #f3f5f1;
  --panel: #fff;
  --ink: #14221d;
  --dim: #64716b;
  --rule: #d7ded8;
  --signal: #12664b;
  --signal-dark: #0b4735;
  --lime: #ddf36a;
  --error: #a43e2b;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 15px/1.5 'Archivo', system-ui, sans-serif;
}
button, input { font: inherit; }
.login-shell {
  display: grid;
  grid-template-columns: minmax(360px, 1.08fr) minmax(420px, .92fr);
  min-height: 100vh;
}
.welcome {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: clamp(28px, 5vw, 72px);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(221,243,106,.16), transparent 18rem),
    linear-gradient(145deg, #102a21, #173e31 62%, #0f2b21);
}
.welcome::before, .welcome::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(221,243,106,.2);
  border-radius: 50%;
  pointer-events: none;
}
.welcome::before { width: 360px; height: 360px; right: -155px; top: 15%; }
.welcome::after { width: 210px; height: 210px; right: -78px; top: calc(15% + 75px); }
.brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px 14px 14px 4px;
  color: var(--ink);
  background: var(--lime);
  font-size: 24px;
  font-weight: 700;
}
.brand small, .brand strong { display: block; line-height: 1; }
.brand small {
  margin-bottom: 6px;
  color: #a9c0b5;
  font: 500 9px/1 'IBM Plex Mono', monospace;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.brand strong { font-size: 23px; letter-spacing: -.04em; }
.welcome-copy {
  position: relative;
  z-index: 1;
  width: min(700px, 94%);
  margin: auto 0;
  padding: 80px 0;
}
.kicker {
  margin: 0 0 12px;
  color: var(--signal);
  font: 500 10px/1.2 'IBM Plex Mono', monospace;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.welcome .kicker { color: var(--lime); }
h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(42px, 5.8vw, 82px);
  line-height: .98;
  letter-spacing: -.06em;
}
.lede {
  max-width: 610px;
  margin: 28px 0 0;
  color: #c6d3cd;
  font-size: clamp(16px, 1.4vw, 20px);
}
.private-note {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #9bb3a8;
  font-size: 12px;
}
.private-note span { margin-right: 7px; color: var(--lime); }
.signin {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: clamp(28px, 7vw, 96px);
  background:
    radial-gradient(circle at 90% 4%, rgba(221,243,106,.28), transparent 19rem),
    linear-gradient(180deg, #fbfcfa, var(--paper));
}
.signin-card { width: min(100%, 440px); }
h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -.05em;
}
.intro { margin: 12px 0 34px; color: var(--dim); }
form { display: grid; gap: 10px; }
label {
  color: #59665f;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
}
input {
  width: 100%;
  min-height: 50px;
  margin-bottom: 10px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  outline: 0;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
input:focus {
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(18,102,75,.12);
}
.password-label { display: flex; align-items: center; justify-content: space-between; }
#toggle-password {
  padding: 2px;
  border: 0;
  color: var(--signal);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}
.form-error {
  margin: 0 0 3px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--error);
  background: #fbe8e3;
  font-size: 13px;
}
.submit {
  min-height: 50px;
  margin-top: 4px;
  border: 1px solid var(--signal);
  border-radius: 10px;
  color: #fff;
  background: var(--signal);
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(18,102,75,.18);
  transition: transform .15s, background .15s;
}
.submit:hover:not(:disabled) { transform: translateY(-1px); background: var(--signal-dark); }
.submit:disabled { opacity: .65; cursor: wait; }
.security-note { margin: 20px 0 0; color: #87928c; font-size: 12px; text-align: center; }
@media (max-width: 800px) {
  .login-shell { grid-template-columns: 1fr; }
  .welcome { min-height: 42vh; padding: 26px; }
  .welcome-copy { width: 100%; padding: 64px 0 56px; }
  h1 { font-size: clamp(38px, 11vw, 62px); }
  .lede { margin-top: 20px; }
  .signin { min-height: 58vh; padding: 52px 26px 68px; }
}
@media (max-width: 440px) {
  .welcome { min-height: 390px; }
  .private-note { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
