/* Patient entry: shared wellness palette, readable fields and comfortable touch targets. */
:root { --login-green: #1b5e4b; --login-ink: #193c31; --login-muted: #526a60; }
[hidden] { display: none !important; }
body { background: #f3f6f1; color: var(--login-ink); min-height: 100svh; padding: 32px; }
.shell { max-width: 1040px; border: 1px solid #e0e7df; box-shadow: 0 24px 80px #193c3110; }
.welcome { padding: 48px; min-height: 680px; background: linear-gradient(145deg, #153e31, #23674f); }
.welcome img { width: 72px; height: 72px; object-fit: contain; filter: none; border-radius: 16px; background: #fff; }
.welcome h1 { font-size: clamp(36px, 4vw, 52px); line-height: 1.12; letter-spacing: -.045em; }
.welcome p { color: #d3e6db; font-size: 16px; }
.welcome-eyebrow { display: block; position: relative; margin-bottom: 20px; color: #b9dccb; font-size: 10px; font-weight: 700; letter-spacing: .18em; }
.welcome-features { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.welcome-features span { padding: 8px 12px; border: 1px solid #ffffff30; border-radius: 30px; color: #e0eee7; font-size: 11px; }
.login { padding: 44px; }
.eyebrow { color: var(--login-green); }
.login h2 { font-size: 30px; letter-spacing: -.035em; }
.subtitle { color: var(--login-muted); }
.field { margin-bottom: 20px; }
.field label { font-size: 13px; color: var(--login-ink); }
.field input { min-height: 54px; background: #f8faf7; border: 1px solid #dce5dc; font-size: 16px; border-radius: 14px; }
.field input:focus { border-color: #32765c; box-shadow: 0 0 0 3px #32765c18; }
.password-field { position: relative; }
.password-field input { padding-right: 56px; }
.password-toggle { display: grid; place-items: center; position: absolute; right: 5px; top: 5px; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 10px; color: var(--login-muted); background: transparent; cursor: pointer; }
.password-toggle svg { width: 22px; height: 22px; }
.password-toggle:hover { background: #eaf0e8; }
.eye-slash { display: none; }
.password-toggle[aria-pressed="true"] .eye-slash { display: block; }
.hint { color: #5d7167; font-size: 12px; line-height: 1.6; }
#capsLockHint { color: #8b510a; }
.remember { padding: 12px 0; background: transparent; gap: 12px; align-items: center; color: #607368; font-size: 12px; }
.remember:hover { background: transparent; }
.remember input { width: 22px; height: 22px; accent-color: var(--login-green); }
.remember strong { font-size: 13px; margin-bottom: 3px; }
.btn { display: flex; justify-content: center; align-items: center; gap: 12px; background: var(--login-green); min-height: 54px; border-radius: 14px; box-shadow: 0 6px 18px #1b5e4b1a; }
.btn:hover { background: #174f3f; box-shadow: 0 8px 20px #1b5e4b26; }
.btn:disabled { opacity: .7; cursor: wait; }
.login-help { margin-top: 24px; padding-top: 22px; border-top: 1px solid #e7ece5; color: var(--login-muted); font-size: 13px; text-align: center; }
.login-help summary { cursor: pointer; min-height: 44px; padding: 10px 0; font-weight: 700; color: var(--login-green); }
.login-help p { margin: 8px 0 0; line-height: 1.7; text-align: left; }
.login-security { color: #607368; font-size: 11px; line-height: 1.6; align-items: flex-start; }
.login-security svg { flex: none; margin-top: 2px; }
.alert { line-height: 1.6; }
:is(button, input, summary):focus-visible { outline: 3px solid #32765c; outline-offset: 4px; }
@media (max-width: 760px) {
    body { display: block; padding: 0; background: #f3f6f1; min-height: 100svh; }
    .shell { min-height: 100svh; border: 0; width: 100%; max-width: none; }
    .login { max-width: 480px; margin: auto; padding: max(24px, 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)); }
    .mobile-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; padding: 12px 0 28px; color: var(--login-ink); }
    .mobile-hero .login-mark { width: 96px; height: 64px; border: 0; background: transparent; box-shadow: none; border-radius: 0; }
    .login-mark img { width: 96px; height: 64px; }
    .mobile-hero strong { font-size: 30px; font-weight: 800; line-height: 1.16; letter-spacing: -.04em; }
    .mobile-hero span { margin-top: 10px; font-size: 13px; color: #607368; }
    .access-card { padding: 26px 22px 18px; border: 1px solid #e0e7dc; border-radius: 24px; box-shadow: 0 10px 32px #1b5e4b08; background: #fff; backdrop-filter: none; }
    .access-card::before { content: 'SEU ESPAÇO DE CUIDADO'; color: #47745d; letter-spacing: .12em; font-size: 10px; }
    .access-card::after { content: none; }
    .access-card h2 { font-size: 26px; margin: 9px 0; }
    .access-card .subtitle { line-height: 1.65; font-size: 13px; margin-bottom: 25px; }
    .field input { background: #f8faf7 !important; border-color: #dce5dc !important; }
    .field input:focus { border-color: #32765c !important; }
    .field { margin-bottom: 18px; }
    .remember { margin: 0 0 12px; }
    .login-security { display: flex; margin-top: 16px; }
    .login-help { margin-top: 20px; padding-top: 12px; }
}
@media (max-width: 360px) { .login { padding-left: 14px; padding-right: 14px; } .access-card { padding-left: 18px; padding-right: 18px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
