:root { font-family: "Segoe UI", system-ui, -apple-system, sans-serif; color: #192c3c; background: #f3f6f9; color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 32px 24px; }
.login-card { width: 100%; max-width: 440px; background: #fff; padding: 40px; border: 1px solid #e2e8ed; border-radius: 24px; box-shadow: 0 20px 60px #17314a0c; }
.brand-mark { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 28px; border-radius: 14px; color: #164c41; background: #b8efdb; font-size: 28px; font-weight: 700; }
.eyebrow { font-size: 10px; letter-spacing: 1.5px; font-weight: 700; color: #527e7b; }
h1 { font-size: 30px; letter-spacing: -.7px; line-height: 1.2; margin: 14px 0 10px; }
p { color: #61717d; line-height: 1.65; margin: 0 0 28px; }
label { display: block; font-size: 14px; font-weight: 600; margin: 20px 0 8px; }
input { width: 100%; min-width: 0; min-height: 50px; border: 1px solid #cad7df; border-radius: 10px; padding: 12px 14px; color: #192c3c; background: white; font: inherit; font-size: 16px; }
input:focus { outline: 3px solid #64a99a; outline-offset: 2px; }
button { border: 0; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer; touch-action: manipulation; }
button:focus-visible { outline: 3px solid #64a99a; outline-offset: 3px; }
.submit-button { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; min-height: 52px; margin-top: 28px; background: #157563; color: white; padding: 13px; }
.submit-button:hover { background: #106452; }
.password-field { position: relative; }
.password-field:has(.password-toggle:not([hidden])) input { padding-right: 88px; }
.password-toggle { position: absolute; top: 3px; bottom: 3px; right: 3px; min-width: 78px; padding: 8px; color: #157563; background: transparent; font-size: 14px; }
.password-toggle:hover { background: #edf6f3; }
[hidden] { display: none !important; }
.error { padding: 14px; border: 1px solid #f1c7c0; border-radius: 10px; background: #fff0ed; color: #9b3425; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
@media (max-width: 520px) {
  body { padding: max(20px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
  .login-card { padding: 28px 24px; border-radius: 20px; }
  h1 { font-size: 28px; }
}
@media (max-height: 620px) {
  body { place-items: start center; }
  .brand-mark { margin-bottom: 18px; }
}
