.web-login, .web-login * { box-sizing: border-box; }
.web-login {
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(24px, 5vh, 48px) 20px max(24px, env(safe-area-inset-bottom));
  background: #f8f5f0;
  color: #20332e;
}
.login-layout { width: 100%; max-width: 390px; margin: 0 auto; }
.login-brand { margin-bottom: 22px; padding: 0 2px; }
.login-eyebrow { margin: 0 0 10px; color: #a94e39; font-size: 13px; font-weight: 600; letter-spacing: 1px; }
.login-brand h1 { margin: 0; font-size: 25px; line-height: 1.4; font-weight: 700; }
.login-intro { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: #65736e; }
.login-card { padding: 20px; background: #fff; border: 1px solid #eee7df; border-radius: 14px; }
.login-card h2 { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.4; }
.login-description { margin: 0 0 18px; font-size: 13px; color: #65736e; line-height: 1.7; }
.web-field { display: block; margin: 20px 0 8px; color: #43564f; font-size: 13px; font-weight: 600; }
.web-input { display: block; width: 100%; min-width: 0; height: 50px; padding: 0 14px; border: 1px solid #deded6; border-radius: 10px; background: #fcfbf8; color: #20332e; font-size: 16px; line-height: normal; outline: none; }
.web-input::placeholder { color: #7c8781; font-size: 14px; }
.web-input:focus { border-color: #c66850; box-shadow: 0 0 0 3px rgba(198,104,80,.12); background: #fff; }
.web-input[aria-invalid="true"] { border-color: #b33f31; }
.login-password { position: relative; }
.login-password .web-input { padding-right: 64px; }
.password-toggle { position: absolute; top: 3px; right: 4px; min-width: 52px; min-height: 44px; padding: 0 10px; border-radius: 8px; color: #596b63; background: transparent; font-size: 13px; }
.web-primary { display: block; width: 100%; min-height: 50px; margin-top: 26px; padding: 12px; border: 0; border-radius: 11px; background: var(--brand); color: #fff; font-size: 16px; line-height: 24px; font-weight: 600; }
.web-primary:active { background: var(--brand-dark); }
.web-primary:disabled { opacity: .65; cursor: wait; }
.web-login button:focus-visible { outline: 2px solid var(--brand-dark); outline-offset: 3px; }
.web-notice { margin: 16px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--brand-soft); color: #a13e2b; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.web-notice[hidden] { display: none; }
.login-consent { display: flex; align-items: flex-start; gap: 9px; margin: 20px 0 0; color: #65736e; font-size: 12px; line-height: 1.7; }
.login-consent input { flex: none; width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--brand); cursor: pointer; }
.login-consent div { flex: 1; min-width: 0; }
.login-consent label { cursor: pointer; }
.login-consent button { margin: 0; padding: 0; border: 0; background: transparent; color: var(--brand-dark); font: inherit; font-weight: 600; cursor: pointer; }
.login-consent button:hover { text-decoration: underline; }
.login-help { margin: 18px 0 0; text-align: center; color: #65736e; font-size: 12px; line-height: 1.6; }
.web-login .login-back { display: flex; align-items: center; justify-content: center; min-height: 44px; margin: 14px 0 0; padding: 8px 12px; border-radius: 9px; color: var(--brand-dark); background: transparent; font-size: 13px; font-weight: 500; text-decoration: none; }
.login-back:focus-visible { outline: 2px solid var(--brand-dark); outline-offset: 2px; }
.staff-entry .login-description { margin: 0; }
@media (max-width: 350px) { .web-login { padding-right: 16px; padding-left: 16px; } .login-card { padding-right: 18px; padding-left: 18px; } }
@media (max-height: 580px) { .web-login { padding-top: 24px; } .login-brand { margin-bottom: 20px; } .login-eyebrow { margin-bottom: 8px; } }
