* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
    min-height: 100svh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: #f1f3f5;
    color: #1e252d;
    font: 1rem/1.4 system-ui, sans-serif;
    --primary: #0667ed;
    --link: #005dcc;
}

.brand {
    display: grid;
    place-items: center;
    min-height: 80px;
    padding: 14px;
    background: #005da7;
}
.brand img { width: min(205px, 80vw); height: auto; }

.login-card {
    width: min(calc(100% - 46px), 410px);
    margin: clamp(24px, 5vh, 44px) auto 0;
    padding: 24px 20px 25px;
    border: 1px solid #d2d6da;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 2px 6px #1523321a;
}
h1 { margin: 0 0 19px; text-align: center; font-size: 1.5rem; line-height: 1.2; }

label { display: block; margin-bottom: 7px; }
input {
    width: 100%;
    padding: 8px 10px;
    min-height: 42px;
    border: 1px solid #c5cbd2;
    border-radius: 7px;
    background: white;
    color: inherit;
    font: inherit;
}
input::placeholder { font-size: .91em; }
input:focus-visible, button:focus-visible, a:focus-visible {
    outline: 2px solid #448cf2;
    outline-offset: 2px;
}
#usuario { margin-bottom: 14px; }
.password-field { position: relative; margin-bottom: 19px; }
.password-field input { padding-right: 45px; }
.password-toggle {
    position: absolute;
    inset: 0 0 0 auto;
    width: 44px;
    border: 0;
    background: transparent;
    color: #626c76;
}
button { cursor: pointer; font: inherit; }
button:disabled { cursor: wait; opacity: .66; }

.primary, .outline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    width: 100%;
    min-height: 42px;
    padding: 8px;
    border: 1px solid var(--primary);
    border-radius: 7px;
    font-weight: 600;
}
.primary { background: var(--primary); color: #fff; }
.outline { background: #fff; color: var(--link); }
#btnPasskeyLogin { margin-top: 10px; }
.outline i { font-size: 1.15em; }
.link-button {
    display: block;
    margin: 13px auto 0;
    padding: 4px;
    border: 0;
    background: transparent;
}
a, .link-button { color: var(--link); text-decoration: underline; }
.help-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 17px;
    gap: 7px 9px;
    font-size: .88rem;
}
.install { margin-top: 21px; padding-top: 20px; border-top: 1px solid #ccd0d6; }
.status { margin: 9px 0 0; color: #37434e; font-size: .88rem; }
footer {
    padding: 24px 16px 18px;
    margin-top: auto;
    text-align: center;
    color: #454d56;
    font-size: .85rem;
}
