:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #1b2c48; background: #327486; }
* { box-sizing: border-box; }
body { margin: 0; }
.login-page { min-height: 100vh; min-height: 100svh; background: #327486 url("paraguay-river.webp") center / cover no-repeat fixed; }
.login-brand { position: absolute; top: 28px; left: 32px; color: white; font-size: 21px; font-weight: 700; letter-spacing: 2px; text-shadow: 0 1px 10px #183d5260; }
.login-main { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 88px 24px 48px; }
.login-card { width: 100%; max-width: 380px; padding: 32px; border-radius: 22px; background: #fff; box-shadow: 0 18px 64px #123d4f30; text-align: center; }
.login-logo { display: block; width: 56px; height: auto; margin: 0 auto 20px; }
h1 { margin: 0 0 28px; font-size: 30px; line-height: 1.2; font-weight: 700; letter-spacing: -.7px; }
.login-field { text-align: left; margin-bottom: 18px; }
label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 600; line-height: 1.4; }
input { width: 100%; height: 46px; border: 1px solid #cfd6df; border-radius: 8px; padding: 0 14px; background: #fff; color: #1b2c48; font: inherit; font-size: 14px; transition: border-color .15s, box-shadow .15s; }
input::placeholder { color: #788391; opacity: 1; }
input:focus { outline: none; border-color: #087f91; box-shadow: 0 0 0 3px #087f911c; }
input[aria-invalid="true"] { border-color: #be4747; }
.password-control { position: relative; }
.password-control input { padding-right: 48px; }
.password-toggle { position: absolute; right: 3px; top: 3px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: #566378; cursor: pointer; }
.password-toggle[hidden] { display: none; }
.password-toggle:hover { background: #eef5f6; color: #087f91; }
.password-toggle svg { width: 20px; height: 20px; }
.eye-slash { display: none; }
.password-toggle[aria-pressed="true"] .eye-slash { display: block; }
.login-submit { width: 100%; min-height: 46px; margin-top: 2px; border: 0; border-radius: 8px; background: #087d90; color: white; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .15s, box-shadow .15s; }
.login-submit:hover { background: #066b7c; box-shadow: 0 4px 12px #087d9026; }
.login-submit:active { background: #055b69; }
.login-register { display: inline-block; margin-top: 24px; color: #087d90; font-size: 14px; font-weight: 600; text-decoration: none; }
.login-register:hover { text-decoration: underline; }
button:focus-visible, a:focus-visible { outline: 3px solid #0a8ba6; outline-offset: 4px; }
.alert { padding: 12px; margin-bottom: 18px; border-radius: 8px; background: #edf5f8; color: #254d60; font-size: 13px; line-height: 1.5; text-align: left; overflow-wrap: anywhere; }
.alert-error, .field-error { color: #a42e36; }
.alert-error { background: #fff0f0; }
.alert-success { background: #ebf7f1; color: #28664b; }
.field-error { display: block; margin-top: 6px; font-size: 12px; line-height: 1.5; }
@media (max-width: 480px) { .login-brand { top: 24px; left: 24px; font-size: 18px; } .login-main { padding: 80px 20px 32px; } .login-card { padding: 28px; border-radius: 18px; } .login-page { background-attachment: scroll; } }
@media (prefers-reduced-motion: reduce) { input, button { transition: none !important; } }
