body.login-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    background: #101e34;
    color: #1b2b43;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.auth-page {
    position: relative;
    display: flex;
    flex: 1 0 auto;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 24px;
    isolation: isolate;
}

.auth-backdrop {
    position: fixed;
    z-index: -1;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(ellipse at 15% 10%, #234867 0, transparent 55%),
        radial-gradient(ellipse at 90% 90%, #1e365a 0, transparent 50%), #101e34;
}

.auth-backdrop::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(135deg, rgba(16, 30, 52, .15), rgba(16, 30, 52, .7));
}

.auth-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .18;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    padding: 34px 40px 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e3e9f0;
    border-top: 4px solid #3278c7;
    border-radius: 20px;
    box-shadow: 0 24px 72px rgba(0, 8, 25, .3), 0 4px 16px rgba(0, 8, 25, .12);
    animation: auth-card-enter .6s cubic-bezier(.16, 1, .3, 1) both;
}

.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding-bottom: 25px;
    margin-bottom: 26px;
    border-bottom: 1px solid #edf0f4;
}

.auth-logo {
    display: block;
    max-width: 180px;
    max-height: 76px;
    object-fit: contain;
    border-radius: 5px;
}

.auth-logo-padded {
    padding: 7px;
    background: #fff;
    border-radius: 1px;
}

.auth-brand-name {
    color: #214e7b;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

.auth-brand-name .fa {
    margin-right: 7px;
    color: #3278c7;
}

.auth-eyebrow {
    color: #68758a;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.auth-panels {
    transition: height .26s ease;
}

.auth-form[hidden] {
    display: none !important;
}

.auth-form {
    margin: 0;
}

.auth-heading {
    margin-bottom: 26px;
}

.auth-heading h1 {
    margin: 0 0 9px;
    color: #1b2b43;
    font-size: 27px;
    font-weight: 650;
    line-height: 1.25;
    letter-spacing: -.7px;
}

.auth-heading p {
    margin: 0;
    color: #68758a;
    font-size: 14px;
    line-height: 1.65;
}

.auth-field {
    margin-bottom: 20px;
}

.auth-field > label {
    display: block;
    margin-bottom: 8px;
    color: #34445b;
    font-size: 13px;
    font-weight: 600;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    color: #7b889b;
    transform: translateY(-50%);
    pointer-events: none;
}

.auth-input-wrap .auth-input {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 50px;
    padding: 12px 15px 12px 43px;
    margin: 0;
    border: 1px solid #dce3ec;
    border-radius: 10px;
    background: #f8fafc;
    color: #1b2b43;
    font-family: inherit;
    font-size: 16px;
    line-height: 24px;
    box-shadow: none;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.auth-input-wrap .auth-input-password {
    padding-right: 50px;
}

.auth-input::placeholder {
    color: #7a8799;
    font-size: 14px;
    opacity: 1;
}

.auth-input-wrap .auth-input:focus {
    border-color: #3278c7;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(50, 120, 199, .13);
}

.auth-password-toggle {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #718097;
    cursor: pointer;
}

.auth-password-toggle:hover {
    background: #edf2f8;
    color: #245e9f;
}

.auth-options {
    margin: -1px 0 24px;
}

.auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 24px;
    margin: 0;
    color: #59687e;
    font-size: 13px;
    cursor: pointer;
}

.auth-remember input[type="checkbox"] {
    position: static;
    width: 16px;
    height: 16px;
    margin: 0;
    opacity: 1;
    accent-color: #2868af;
    pointer-events: auto;
    cursor: pointer;
}

.auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 50px;
    padding: 13px 18px;
    border: 1px solid #2868af;
    border-radius: 10px;
    background: #2868af;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(40, 104, 175, .16);
    cursor: pointer;
    transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.auth-submit:hover:not(:disabled) {
    background: #205992;
    box-shadow: 0 6px 15px rgba(40, 104, 175, .24);
    transform: translateY(-1px);
}

.auth-submit:disabled {
    cursor: wait;
    opacity: .8;
}

.auth-form-footer {
    padding: 17px 0 22px;
    text-align: center;
}

.auth-text-button {
    min-height: 36px;
    padding: 6px 4px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #2868af;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.auth-text-button:hover {
    color: #1d4d80;
    text-decoration: underline;
}

.auth-text-button .fa {
    margin-right: 5px;
}

.auth-card button:focus-visible,
.auth-card a:focus-visible,
.auth-remember input:focus-visible {
    outline: 3px solid #3278c7;
    outline-offset: 3px;
}

.auth-home {
    padding: 17px 0;
    border-top: 1px solid #edf0f4;
    text-align: center;
}

.auth-home a {
    display: inline-block;
    padding: 4px;
    color: #68758a;
    font-size: 12px;
}

.auth-home a:hover {
    color: #2868af;
}

.auth-home .fa {
    margin-right: 6px;
}

.auth-recovery-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    border: 1px solid #dce8f7;
    border-radius: 13px;
    background: #eef5fd;
    color: #2868af;
    font-size: 20px;
}

.auth-help {
    display: flex;
    align-items: baseline;
    gap: 9px;
    margin: -3px 0 25px;
    color: #68758a;
    font-size: 12px;
    line-height: 1.6;
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 22px;
    border-radius: 9px;
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.auth-alert > span {
    flex: 1;
}

.auth-alert .close {
    float: none;
    color: inherit;
    font-size: 20px;
}

.auth-spinner {
    display: none;
    width: 17px;
    height: 17px;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: auth-spin .7s linear infinite;
}

.auth-form.is-submitting .auth-spinner {
    display: inline-block;
}

.auth-form.is-submitting .auth-submit-icon {
    display: none;
}

.auth-panel-leaving {
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity .16s ease, transform .16s ease;
    pointer-events: none;
}

.auth-panel-entering {
    animation: auth-panel-enter .26s ease both;
}

.auth-panels.is-returning .auth-panel-leaving {
    transform: translateX(12px);
}

.auth-panels.is-returning .auth-panel-entering {
    animation-name: auth-panel-return;
}

.login-page footer.page-footer {
    position: relative;
    background: transparent !important;
}

.login-page footer.page-footer .footer-copyright {
    padding: 0 20px 24px !important;
    background: transparent;
    color: #b1bfd1;
    font-size: 11px;
    letter-spacing: .2px;
}

@keyframes auth-card-enter {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes auth-panel-enter {
    from { opacity: 0; transform: translateX(12px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes auth-panel-return {
    from { opacity: 0; transform: translateX(-12px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes auth-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
    .auth-page { padding: 24px 16px 20px; }
    .auth-card { padding: 28px 24px 0; border-radius: 16px; }
    .auth-heading h1 { font-size: 24px; }
    .auth-brand { padding-bottom: 22px; margin-bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .auth-page *, .auth-page *::before, .auth-page *::after {
        animation: none !important;
        transition: none !important;
    }
    .auth-video { display: none; }
}
