:root {
    --an-primary: #0648B3;
    --an-secondary: #EE5050;
    --an-tertiary: #05A677;
    --an-dark: #020B16;
    --an-navy: #061A33;
    --an-blue: #168BFF;
    --an-ice: #EAF6FF;
    --an-silver: #C8D2DC;
}

.an-auth-body {
    min-height: 100vh;
    margin: 0;
    background: #f4f8fb;
    color: #182233;
}

.an-auth-shell {
    display: grid;
    grid-template-columns: minmax(360px, 48vw) minmax(0, 1fr);
    min-height: 100vh;
}

.an-auth-brand {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: clamp(2rem, 5vw, 5rem);
    color: #fff;
    background:
        radial-gradient(circle at 78% 18%, rgba(22, 139, 255, 0.36), transparent 34%),
        linear-gradient(145deg, var(--an-dark) 0%, var(--an-navy) 56%, #074a92 100%);
}

.an-auth-brand::before,
.an-auth-brand::after {
    position: absolute;
    inset: auto;
    content: "";
    pointer-events: none;
}

.an-auth-brand::before {
    right: -8rem;
    bottom: -12rem;
    width: 28rem;
    height: 28rem;
    border: 1px solid rgba(234, 246, 255, 0.16);
    border-radius: 50%;
}

.an-auth-brand::after {
    top: 0;
    right: 0;
    bottom: 0;
    width: 36%;
    background: linear-gradient(90deg, transparent, rgba(234, 246, 255, 0.08));
    transform: skewX(-12deg) translateX(34%);
}

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

.an-brand-lockup,
.an-mobile-lockup {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.an-brand-logo {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
}

.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.26);
}

.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.25rem;
    max-height: 1.8rem;
}

.an-brand-name {
    color: inherit;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1;
}

.an-brand-copy {
    margin-top: clamp(3rem, 8vw, 6rem);
}

.an-eyebrow {
    margin-bottom: 0.9rem;
    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: clamp(2.5rem, 5vw, 4.75rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: 0;
}

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

.an-trust-list {
    display: grid;
    gap: 1rem;
    margin: clamp(2.25rem, 5vw, 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.8rem 1rem;
    border: 1px solid rgba(200, 210, 220, 0.14);
    border-radius: 8px;
    background: rgba(2, 11, 22, 0.28);
    color: rgba(255, 255, 255, 0.9);
}

.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-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 4vw, 4rem);
}

.an-login-card {
    width: min(100%, 29rem);
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid rgba(6, 26, 51, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 1.5rem 4rem rgba(6, 26, 51, 0.12);
}

.an-mobile-lockup {
    display: none;
    margin-bottom: 1.75rem;
    color: var(--an-navy);
}

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

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

.an-login-heading p:last-child {
    margin: 0.5rem 0 0;
    color: #5d6b7c;
}

.an-login-form {
    margin-top: 1.25rem;
}

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

.an-login-form .input-group-text {
    border-color: #d9e2ea;
    background: #f8fbfd;
    color: var(--an-primary);
}

.an-login-form .form-control {
    min-height: 2.9rem;
    border-color: #d9e2ea;
    color: #182233;
}

.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-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 {
    color: var(--an-primary);
    font-weight: 700;
    text-decoration: none;
}

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

.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: #053b92;
    background: #053b92;
}

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

.an-register-link {
    margin-top: 1.4rem;
    text-align: center;
    font-size: 0.9rem;
}

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

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

@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.4rem;
    }

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

    .an-auth-panel {
        align-items: flex-start;
        padding: 2rem 1rem 3rem;
        background: linear-gradient (
            135deg,
            #020B16 0%,
            #061A33 40%,
            #0648B3 70%,
            #168BFF 100%
        );
    }
    .auth-left {
        background: linear-gradient (
            135deg,
            #020B16 0%,
            #061A33 40%,
            #0648B3 70%,
            #168BFF 100%
        );
    }
}

@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-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: flex;
    }

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

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