.password-auth {
    box-sizing: border-box;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
    color: #f8fafc;
    line-height: 1.5;
}
.password-auth *, .password-auth *::before, .password-auth *::after { box-sizing: border-box; }
.password-auth [hidden], .password-login [hidden] { display: none !important; }
.auth-card {
    width: min(100%, 440px);
    padding: 2.2rem 2.4rem;
    background: rgba(0, 0, 0, .42);
    border: 1px solid rgba(226, 232, 240, .12);
    border-radius: 14px;
    box-shadow: 0 15px 25px rgba(0, 0, 0, .3);
}
.auth-brand { text-align: center; margin-bottom: 1.8rem; }
.auth-brand img { display: block; width: 86px; height: 86px; object-fit: contain; margin: 0 auto 1rem; }
.auth-brand p { color: #cbd5e1; font-size: .88rem; margin: 0 0 .4rem; }
.auth-brand h1 { margin: 0; color: #fff; font-size: 1.55rem; line-height: 1.3; font-weight: 600; }
.auth-form { display: grid; gap: 1.35rem; }
.auth-field label { display: block; margin-bottom: .45rem; font-size: .9rem; font-weight: 600; }
.auth-field input {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: .7rem .85rem;
    color: #fff;
    font: inherit;
    font-size: 1rem;
    background: rgba(15, 23, 42, .45);
    border: 1px solid #64748b;
    border-radius: 7px;
    transition: border-color .16s ease, box-shadow .16s ease;
}
.auth-field input:focus { outline: 0; border-color: #03e9f4; box-shadow: 0 0 0 3px rgba(3, 233, 244, .13); }
.auth-field input[aria-invalid="true"] { border-color: #fca5a5; }
.auth-input-wrap { position: relative; }
.auth-input-wrap input { padding-right: 3.2rem; }
.password-toggle {
    position: absolute;
    display: grid;
    place-items: center;
    top: 50%;
    right: .3rem;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #cbd5e1;
    cursor: pointer;
}
.password-toggle [data-eye-closed] { display: none; }
.password-toggle[aria-pressed="true"] [data-eye-open] { display: none; }
.password-toggle[aria-pressed="true"] [data-eye-closed] { display: block; }
.password-toggle:hover { color: #fff; }
.password-toggle:focus-visible, .auth-back:focus-visible, .auth-forgot:focus-visible { outline: 2px solid #03e9f4; outline-offset: 3px; }
.password-toggle:disabled { opacity: .55; cursor: default; }
.auth-field-hint { margin: .4rem 0 0; font-size: .8rem; color: #cbd5e1; }
.auth-field-error { margin: .4rem 0 0; font-size: .85rem; color: #fecaca; }
.auth-captcha-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .6rem; }
.auth-captcha-heading label { margin: 0; }
.auth-captcha-image { display: block; width: 240px; max-width: 100%; height: 88px; object-fit: contain; margin: 0 auto .7rem; border-radius: 5px; background: #e8edf3; }
.auth-captcha-field[aria-busy="true"] .auth-captcha-image { opacity: .55; }
.auth-captcha-refresh { display: inline-flex; align-items: center; gap: .35rem; flex-shrink: 0; border: 0; border-radius: 3px; padding: .3rem 0; background: transparent; color: #bdebf1; font: inherit; font-size: .8rem; cursor: pointer; }
.auth-captcha-refresh:hover { color: #fff; }
.auth-captcha-refresh:focus-visible, .auth-captcha-reload:focus-visible { outline: 2px solid #03e9f4; outline-offset: 3px; }
.auth-captcha-refresh:disabled { opacity: .55; cursor: wait; }
.auth-captcha-reload { display: block; margin-top: .5rem; color: #bdebf1; font-size: .85rem; }
.auth-captcha-field input[name="captcha_answer"] { letter-spacing: .18em; }
.auth-feedback { padding: .85rem 1rem; margin: 0 0 1.4rem; border: 1px solid rgba(252, 165, 165, .4); border-radius: 7px; color: #fee2e2; background: rgba(127, 29, 29, .22); font-size: .9rem; overflow-wrap: anywhere; }
.auth-feedback-success { border-color: rgba(134, 239, 172, .4); color: #dcfce7; background: rgba(20, 83, 45, .22); }
.auth-submit {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 46px;
    padding: .75rem 1rem;
    border: 1px solid #03e9f4;
    border-radius: 7px;
    background: #03e9f4;
    color: #102a43;
    font: inherit;
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .16s ease, border-color .16s ease;
}
.auth-submit:hover { background: #67edf5; border-color: #67edf5; }
.auth-submit:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.auth-submit:disabled { cursor: wait; opacity: .65; }
.auth-back { display: block; width: fit-content; margin: 1.5rem auto 0; color: #cbd5e1; font-size: .9rem; text-decoration: none; border-radius: 2px; }
.auth-back:hover, .auth-forgot:hover { color: #03e9f4; text-decoration: underline; }
.auth-link-expired p { margin: 0 0 1.5rem; text-align: center; color: #e2e8f0; }
.password-login .login-actions { display: flex; justify-content: flex-end; margin-top: -.7rem; }
.password-login .auth-forgot { color: #cbd5e1; font-size: .9rem; text-decoration: none; }
.password-login .password-toggle { top: 20px; right: 0; }
.password-login .password-box input { padding-right: 44px; box-sizing: border-box; }
.password-login .submit-btn .auth-submit-label { position: static; display: inline; background: transparent; }
.password-login .submit-btn:disabled { cursor: wait; opacity: .65; }
.password-login .submit-btn:focus-visible { outline: 2px solid #03e9f4; outline-offset: 4px; }
@media (max-width: 480px) {
    .auth-card { padding: 1.8rem 1.4rem; }
    .password-login .login-box { width: calc(100% - 2rem); padding: 30px 26px; }
}
@media (max-height: 760px) and (max-width: 1617px) {
    .password-login .login-box { position: relative; top: auto; left: auto; transform: none; margin: 2rem auto; }
}
@media (prefers-reduced-motion: reduce) {
    .password-auth *, .password-login .submit-btn, .password-login .submit-btn span, .password-login .user-box label { animation: none !important; transition: none !important; }
}
