:root {
    --an-primary: #0648B3;
    --an-primary-dark: #053B92;
    --an-secondary: #EE5050;
    --an-tertiary: #05A677;
    --an-dark: #020B16;
    --an-navy: #061A33;
    --an-blue: #168BFF;
    --an-ice: #EAF6FF;
    --an-silver: #C8D2DC;
    --an-ink: #182233;
    --an-muted: #5D6B7C;
    --an-border: rgba(6, 26, 51, 0.1);
}

.an-auth-body {
    min-height: 100vh;
    margin: 0;
    background: #F4F8FB;
    color: var(--an-ink);
}

.an-auth-shell {
    display: grid;
    grid-template-columns: minmax(28rem, 45%) minmax(0, 1fr);
    min-height: 100vh;
}

.an-auth-brand {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 4.5rem;
    color: #fff;
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 4.5rem),
        linear-gradient(145deg, var(--an-dark) 0%, var(--an-navy) 48%, #084E95 100%);
}

.an-auth-brand::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.08) 54%, transparent 55%),
        linear-gradient(180deg, rgba(5, 166, 119, 0.14), transparent 28%),
        linear-gradient(0deg, rgba(238, 80, 80, 0.12), transparent 34%);
    pointer-events: none;
}

.an-auth-brand::after {
    position: absolute;
    top: 0;
    right: -8rem;
    bottom: 0;
    width: 16rem;
    content: "";
    background: rgba(234, 246, 255, 0.08);
    transform: skewX(-12deg);
    pointer-events: none;
}

.an-brand-content {
    position: relative;
    z-index: 1;
    width: min(100%, 34rem);
}

.an-brand-lockup,
.an-mobile-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    color: inherit;
    text-decoration: none;
}

.an-brand-logo {
    display: block;
    width: auto;
    max-width: min(100%, 17rem);
    height: auto;
}

.an-brand-logo--badge {
    width: min(100%, 17rem);
    max-width: 17rem;
    filter: drop-shadow(0 1.25rem 1.75rem rgba(0, 0, 0, 0.32));
}

.an-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.75rem;
    height: 3.75rem;
    border: 1px solid rgba(234, 246, 255, 0.18);
    border-radius: 8px;
    background: rgba(234, 246, 255, 0.08);
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.22);
}

.an-brand-mark img {
    display: block;
    width: 1.8rem;
    max-height: 2.35rem;
}

.an-brand-mark--compact {
    width: 2.75rem;
    height: 2.75rem;
    border-color: rgba(6, 72, 179, 0.16);
    background: var(--an-ice);
    box-shadow: none;
}

.an-brand-mark--compact img {
    width: 1.35rem;
    max-height: 1.9rem;
}

.an-brand-name {
    color: var(--an-navy);
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1;
}

.an-brand-copy {
    margin-top: 3rem;
}

.an-eyebrow {
    margin-bottom: 0.85rem;
    color: var(--an-blue);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.an-brand-copy h1 {
    max-width: 12ch;
    margin: 0;
    color: #fff;
    font-size: 3.45rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
}

.an-lede {
    max-width: 34rem;
    margin: 1.35rem 0 0;
    color: rgba(234, 246, 255, 0.82);
    font-size: 1.03rem;
    line-height: 1.7;
}

.an-trust-list {
    display: grid;
    gap: 0.9rem;
    margin: 2.4rem 0 0;
    padding: 0;
    list-style: none;
}

.an-trust-list li {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 3.25rem;
    padding: 0.78rem 1rem;
    border: 1px solid rgba(200, 210, 220, 0.14);
    border-radius: 8px;
    background: rgba(2, 11, 22, 0.32);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.45;
}

.an-trust-list i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    border-radius: 8px;
    color: #fff;
    background: rgba(22, 139, 255, 0.24);
}

.an-auth-snapshot {
    margin-top: 2rem;
    overflow: hidden;
    border: 1px solid rgba(234, 246, 255, 0.18);
    border-radius: 8px;
    background: rgba(2, 11, 22, 0.38);
    box-shadow: 0 1.6rem 3.25rem rgba(0, 0, 0, 0.28);
}

.an-snapshot-header {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem 0.9rem;
    color: rgba(234, 246, 255, 0.88);
    font-size: 0.82rem;
    font-weight: 700;
}

.an-snapshot-status {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 999px;
    background: var(--an-tertiary);
    box-shadow: 0 0 0 0.28rem rgba(5, 166, 119, 0.18);
}

.an-auth-snapshot img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top left;
    border-top: 1px solid rgba(234, 246, 255, 0.12);
}

.an-auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
}

.an-auth-card,
.an-login-card {
    width: min(100%, 30rem);
    padding: 2.4rem;
    border: 1px solid var(--an-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1.5rem 4rem rgba(6, 26, 51, 0.12);
}

.an-mobile-lockup {
    display: none;
    margin-bottom: 1.75rem;
}

.an-login-heading {
    margin-bottom: 1.65rem;
}

.an-login-heading h2 {
    margin: 0;
    color: var(--an-navy);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: 0;
}

.an-login-heading p:last-child {
    margin: 0.55rem 0 0;
    color: var(--an-muted);
    line-height: 1.55;
}

.an-auth-form,
.an-login-form {
    margin-top: 1.2rem;
}

.an-auth-form .form-label,
.an-login-form .form-label {
    margin-bottom: 0.45rem;
    color: #243247;
    font-size: 0.9rem;
    font-weight: 700;
}

.an-auth-form .input-group-text,
.an-login-form .input-group-text {
    min-width: 2.8rem;
    justify-content: center;
    border-color: #D9E2EA;
    background: #F8FBFD;
    color: var(--an-primary);
}

.an-auth-form .form-control,
.an-login-form .form-control {
    min-height: 2.9rem;
    border-color: #D9E2EA;
    color: var(--an-ink);
}

.an-auth-form .form-control:focus,
.an-auth-form .form-check-input:focus,
.an-login-form .form-control:focus,
.an-login-form .form-check-input:focus {
    border-color: var(--an-blue);
    box-shadow: 0 0 0 0.2rem rgba(22, 139, 255, 0.2);
}

.an-auth-form .form-check-input:checked,
.an-login-form .form-check-input:checked {
    border-color: var(--an-primary);
    background-color: var(--an-primary);
}

.an-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.1rem 0 1.35rem;
    font-size: 0.9rem;
}

.an-auth-link,
.an-register-link a,
.an-auth-footer-links a,
.an-back-link {
    color: var(--an-primary);
    font-weight: 700;
    text-decoration: none;
}

.an-auth-link:hover,
.an-register-link a:hover,
.an-auth-footer-links a:hover,
.an-back-link:hover {
    color: var(--an-blue);
    text-decoration: underline;
}

.an-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.an-submit-btn {
    min-height: 2.9rem;
    border-color: var(--an-primary);
    background: var(--an-primary);
    font-weight: 800;
}

.an-submit-btn:hover,
.an-submit-btn:focus {
    border-color: var(--an-primary-dark);
    background: var(--an-primary-dark);
}

.an-google-btn {
    margin-bottom: 0.9rem;
}

.an-register-link {
    margin-top: 1.35rem;
    text-align: center;
    color: var(--an-muted);
    font-size: 0.9rem;
}

.an-auth-footer-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(6, 26, 51, 0.08);
    font-size: 0.82rem;
}

.an-access-note {
    display: flex;
    gap: 0.65rem;
    margin-top: 1.25rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(6, 72, 179, 0.12);
    border-radius: 8px;
    background: rgba(234, 246, 255, 0.62);
    color: #33506D;
    font-size: 0.9rem;
    line-height: 1.5;
}

.an-access-note i {
    margin-top: 0.2rem;
    color: var(--an-primary);
}

.an-auth-card .alert-danger,
.an-login-card .alert-danger {
    border-color: rgba(238, 80, 80, 0.28);
    background: rgba(238, 80, 80, 0.08);
    color: #9F2424;
}

.an-auth-card .alert-warning,
.an-login-card .alert-warning {
    border-color: rgba(238, 80, 80, 0.22);
    background: #FFF5E6;
    color: #754900;
}

.an-auth-card .alert-success,
.an-login-card .alert-success {
    border-color: rgba(5, 166, 119, 0.22);
    background: rgba(5, 166, 119, 0.09);
    color: #05694C;
}

@media (max-width: 1199.98px) {
    .an-auth-brand {
        padding: 3rem;
    }

    .an-brand-copy h1 {
        font-size: 2.8rem;
    }

    .an-auth-panel {
        padding: 2.5rem;
    }
}

@media (max-width: 991.98px) {
    .an-auth-shell {
        grid-template-columns: 1fr;
    }

    .an-auth-brand {
        min-height: auto;
        padding: 2rem;
    }

    .an-brand-copy {
        margin-top: 1.75rem;
    }

    .an-brand-copy h1 {
        max-width: 16ch;
        font-size: 2.35rem;
    }

    .an-lede,
    .an-trust-list,
    .an-auth-snapshot {
        display: none;
    }

    .an-auth-panel {
        align-items: flex-start;
        padding: 2rem 1rem 3rem;
        background: linear-gradient(180deg, var(--an-ice) 0%, #fff 44%);
    }
}

@media (max-width: 575.98px) {
    .an-auth-body {
        background: #fff;
    }

    .an-auth-brand {
        display: none;
    }

    .an-auth-panel {
        min-height: 100vh;
        align-items: center;
        background: linear-gradient(180deg, var(--an-ice) 0%, #fff 42%);
    }

    .an-auth-card,
    .an-login-card {
        padding: 1.35rem;
        border: 0;
        background: #fff;
        box-shadow: 0 1rem 2.5rem rgba(6, 26, 51, 0.1);
    }

    .an-mobile-lockup {
        display: inline-flex;
    }

    .an-login-heading h2 {
        font-size: 1.7rem;
    }

    .an-form-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.75rem;
    }

    .an-auth-footer-links {
        flex-wrap: wrap;
    }
}
