:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  color: #182b2a;
  background: #f3f6f4;
  --green: #087e68;
  --muted: #687976;
  --border: #e1e9e5;
}
* { box-sizing: border-box; }
html { min-width: 0; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  padding: max(28px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}
button, input { font: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: default; }
button:focus-visible { outline: 3px solid #178eae; outline-offset: 3px; }
[hidden] { display: none !important; }
.login-shell { width: 100%; max-width: 440px; min-width: 0; margin: auto; }
.login-card {
  width: 100%;
  padding: 34px 32px 30px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 3px 18px rgba(24, 49, 42, .025);
}
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--green); font-size: 10px; line-height: 1.5; font-weight: 750; letter-spacing: 1.5px; margin-bottom: 14px; }
.status-dot { width: 7px; height: 7px; flex: 0 0 7px; background: #138574; border-radius: 50%; }
h1 { margin: 0; font-size: 30px; line-height: 1.25; font-weight: 680; letter-spacing: -.8px; }
.login-intro { margin: 13px 0 28px; color: var(--muted); font-size: 14px; line-height: 1.75; }
label { display: block; margin-bottom: 9px; color: #697a74; font-size: 13px; line-height: 1.5; font-weight: 600; }
.password-control { display: flex; align-items: center; gap: 2px; min-width: 0; border: 1px solid #dfe7e2; border-radius: 9px; background: #fff; }
.password-control:focus-within { border-color: #29927a; box-shadow: 0 0 0 2px #e4f3ed; }
.password-control:has([aria-invalid=true]) { border-color: #bc6956; }
#login-password { flex: 1 1 0; min-width: 0; width: 100%; height: 50px; padding: 0 13px; border: 0; border-radius: 9px; background: transparent; color: #203d34; font-size: 16px; line-height: 1.5; outline: none; }
.password-toggle { flex: 0 0 auto; min-width: 82px; min-height: 44px; margin-right: 3px; padding: 9px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--green); font-size: 12px; font-weight: 600; }
.password-toggle:hover:not(:disabled) { background: #f0f5ef; }
.password-toggle:disabled { opacity: .55; }
.login-submit { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; margin-top: 20px; padding: 12px 18px; border: 0; border-radius: 9px; background: var(--green); color: #fff; font-size: 15px; line-height: 1.5; font-weight: 600; }
.login-submit:hover:not(:disabled) { background: #076f5c; }
.login-submit:disabled { opacity: .75; }
.login-submit[data-pending=true]::before { content: ""; width: 15px; height: 15px; border: 2px solid #ffffff66; border-top-color: #fff; border-radius: 50%; animation: login-spin .8s linear infinite; }
.login-hint { margin: 17px 0 0; color: var(--muted); text-align: center; font-size: 12px; line-height: 1.7; }
.login-error { margin: 12px 0 0; padding: 11px 12px; border: 1px solid #ebc8be; border-radius: 8px; background: #fff0ed; color: #8c3f30; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
@keyframes login-spin { to { transform: rotate(360deg); } }
@media (max-width: 480px) {
  body { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .login-card { padding: 28px 22px 25px; border-radius: 14px; }
  h1 { font-size: 28px; }
  .login-intro { margin-bottom: 25px; }
}
@media (max-width: 359px) {
  .login-card { padding-left: 18px; padding-right: 18px; }
  h1 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) { .login-submit[data-pending=true]::before { animation: none; } }
