:root {
  color-scheme: light;
  --ink: #203b31;
  --green: #285640;
  --green-deep: #1d4333;
  --muted: #77877d;
  --line: #dce5dc;
  --paper: #fff;
  --wash: #f3f5ef;
  --error: #9e3535;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--wash); }
body { min-height: 100vh; min-height: 100svh; margin: 0; color: var(--ink); }
button, input { font: inherit; }
button:focus-visible, input:focus-visible { outline: 3px solid #82ad91; outline-offset: 3px; }

.login-shell {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  background: radial-gradient(ellipse at 50% 0%, #e4eee5 0, transparent 52%), var(--wash);
}
.login-card {
  width: min(100%, 430px);
  padding: clamp(28px, 7vw, 44px);
  border: 1px solid #e3e9e1;
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 22px 70px #173c2b12, 0 2px 8px #173c2b08;
}
.brand-mark {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 30px;
  place-items: center;
  border-radius: 17px;
  background: var(--green);
  color: #fff;
  font-size: 29px;
  font-weight: 600;
}
h1 { margin: 0 0 30px; font-size: clamp(32px, 8vw, 40px); line-height: 1.1; letter-spacing: -1.5px; }
form { display: grid; gap: 11px; }
label { margin-top: 7px; font-size: 14px; font-weight: 650; }
input {
  width: 100%;
  min-height: 54px;
  padding: 0 15px;
  border: 1px solid #cedbce;
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  transition: border-color .16s ease, box-shadow .16s ease;
}
input:hover { border-color: #a8beac; }
input:focus { border-color: var(--green); outline: 0; box-shadow: 0 0 0 4px #28564018; }
.submit {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin-top: 11px;
  border: 0;
  border-radius: 13px;
  background: var(--green);
  color: #fff;
  font-size: 17px;
  font-weight: 650;
  transition: background .16s ease, transform .16s ease, opacity .16s ease;
}
.submit:hover { background: var(--green-deep); }
.submit:active { transform: translateY(1px); }
.submit:disabled { cursor: wait; opacity: .78; }
.spinner { display: none; width: 17px; height: 17px; border: 2px solid #ffffff70; border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.submit[aria-busy="true"] .spinner { display: block; }
.error { min-height: 20px; margin: 0; color: var(--error); font-size: 13px; }
.error:empty { min-height: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@media (max-width: 480px) {
  .login-shell { padding-left: 14px; padding-right: 14px; }
  .login-card { padding: 28px 24px; border-radius: 24px; }
}
