.auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(239, 243, 250, .97);
}
.auth-overlay[hidden] { display: none; }
.auth-card {
    width: min(420px, 100%);
    padding: 28px;
    border: 1px solid #d8e1ee;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(25, 55, 110, .14);
}
.auth-brand { display: flex; align-items: center; gap: 12px; }
.auth-brand img { width: 44px; height: 44px; }
.auth-card h2 { margin: 0; color: #10233f; font-size: 24px; }
.auth-card > p { margin: 10px 0 18px; color: #66758d; font-size: 13px; line-height: 1.65; }
.auth-form { display: grid; gap: 12px; }
.auth-form > label { display: grid; gap: 6px; color: #56667f; font-size: 12px; font-weight: 700; }
.auth-form input[type="text"],
.auth-form input[type="password"] {
    width: 100%;
    height: 44px;
    box-sizing: border-box;
    padding: 0 12px;
    border: 1px solid #ccd7e6;
    border-radius: 12px;
    background: #fff;
    color: #10233f;
    font: inherit;
}
.auth-form input:focus-visible,
.auth-form button:focus-visible { outline: 3px solid rgba(45, 99, 232, .22); outline-offset: 2px; }
.auth-preferences { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.auth-preferences label { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; color: #40516b; font-size: 13px; cursor: pointer; }
.auth-preferences input {
    flex: 0 0 17px;
    width: 17px;
    min-width: 17px;
    height: 17px;
    min-height: 17px;
    margin: 0;
    padding: 0;
    accent-color: #2d63e8;
}
.auth-preferences label:has(input:disabled) { color: #9aa7b9; cursor: not-allowed; }
.auth-form > button[type="submit"] { min-height: 44px; border-radius: 12px; }
.auth-status { color: #b54758; font-size: 12px; line-height: 1.5; }
.auth-status:not(:empty) { min-height: 20px; }
@media (max-width: 767px) {
    .auth-overlay { padding: 18px; align-items: center; }
    .auth-card { padding: 22px 20px; border-radius: 18px; box-shadow: 0 16px 40px rgba(25, 55, 110, .12); }
    .auth-card h2 { font-size: 20px; }
    .auth-preferences { display: grid; gap: 4px; }
    .auth-preferences label { min-height: 44px; }
}
