.auth-page {
    position: relative;
    isolation: isolate;
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    color: #17345b;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    background: #e5f2ff;
}
.auth-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: var(--auth-background);
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: cover;
}
@media (max-aspect-ratio: 3/4) {
    .auth-page::before {
        /* Keep the skyline and bottom ribbon visible on portrait screens. */
        background-position: 32% bottom;
    }
}
.auth-header {
    position: relative;
    padding: 20px 24px 30px;
    background: linear-gradient(115deg, #0961df, #2384ff);
    border-radius: 0 0 50% 18px / 0 0 24px 18px;
    box-shadow: 0 6px 24px #1556a51a;
}
.auth-header-inner {
    max-width: 1160px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.auth-company { background: #fff; padding: 9px 12px; border-radius: 10px; }
.auth-company img { display: block; width: 190px; max-width: 100%; height: auto; }
.auth-credit { color: #fff; font-size: 14px; white-space: nowrap; }
.auth-main { padding: 40px 20px 150px; }
.auth-panel {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 32px;
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: 24px;
    box-shadow: 0 24px 64px #234d8814, 0 4px 16px #234d8808;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}
.auth-app-logo { text-align: center; margin-bottom: 32px; }
.auth-app-logo img { width: 240px; max-width: 100%; height: auto; }
.auth-field { position: relative; margin-bottom: 22px; }
.auth-field label { display: block; margin-bottom: 8px; color: #284463; font-size: 14px; font-weight: 600; }
.auth-field .form-control {
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid #c7d7e9;
    border-radius: 12px;
    background: #fff;
    color: #17345b;
    font: inherit;
    font-size: 16px;
    transition: border-color .15s, box-shadow .15s;
}
.auth-field .form-control:focus { border-color: #1671ef; outline: none; box-shadow: 0 0 0 3px #1671ef20; }
.auth-password .form-control { padding-right: 56px; }
.auth-password-toggle {
    position: absolute;
    right: 5px;
    bottom: 4px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #547294;
    cursor: pointer;
}
.auth-password-toggle:hover { background: #edf5ff; color: #0961df; }
.auth-submit {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 14px 20px;
    border: 0;
    border-radius: 12px;
    background: #096bf0;
    color: #fff;
    font: inherit;
    font-weight: 600;
    box-shadow: 0 6px 16px #096bf026;
    cursor: pointer;
}
.auth-submit:hover { background: #055bcc; }
.auth-submit:focus-visible, .auth-password-toggle:focus-visible { outline: 3px solid #17345b; outline-offset: 3px; }
.loginform[aria-busy="true"] .auth-submit { opacity: .75; cursor: wait; }
@media (max-width: 480px) {
    .auth-header { padding: 16px 16px 26px; }
    .auth-company { padding: 8px; }
    .auth-company img { width: 155px; }
    .auth-credit { font-size: 12px; }
    .auth-main { padding: 28px 20px 120px; }
    .auth-panel { padding: 28px 22px; border-radius: 20px; }
    .auth-app-logo img { width: 220px; }
}
@media (max-width: 340px) {
    .auth-header-inner { gap: 10px; }
    .auth-company img { width: 130px; }
    .auth-credit { font-size: 11px; }
    .auth-main { padding-right: 14px; padding-left: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .auth-field .form-control { transition: none; }
}
