/*
 * Warm, hopeful authentication experience.
 * Loaded after the viewport contract so the visual refresh cannot change page flow.
 */
.login-page,
.registration-page {
    --hope-navy: #17324d;
    --hope-ink: #20364d;
    --hope-muted: #66788a;
    --hope-coral: #ef6a4c;
    --hope-orange: #f59a42;
    --hope-sun: #ffd166;
    --hope-teal: #24a69a;
    --hope-sky: #4bb8d8;
    --hope-mint: #d9f4e8;
    --hope-cream: #fffaf0;
    color: var(--hope-ink);
    background:
        radial-gradient(circle at 8% 10%, rgba(255, 209, 102, .40), transparent 27rem),
        radial-gradient(circle at 94% 88%, rgba(75, 184, 216, .22), transparent 30rem),
        linear-gradient(145deg, #fffaf0 0%, #fff5ed 48%, #eefbf8 100%);
}

.login-page .login-shell,
.registration-shell {
    border: 1px solid rgba(255, 255, 255, .88);
    border-radius: 2rem;
    background: rgba(255, 255, 255, .88);
    box-shadow:
        0 30px 85px rgba(48, 66, 83, .16),
        0 2px 0 rgba(255, 255, 255, .95) inset;
}

.login-page .login-form-panel,
.registration-form-panel {
    position: relative;
    background:
        radial-gradient(circle at 94% 8%, rgba(255, 209, 102, .18), transparent 12rem),
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,250,244,.96));
}

.login-page .login-form-panel::after,
.registration-form-panel::after {
    position: absolute;
    inset: 1rem 1rem auto auto;
    width: 4rem;
    height: 4rem;
    pointer-events: none;
    border: 1px solid rgba(239, 106, 76, .14);
    border-radius: 1.25rem;
    box-shadow:
        -1rem 1rem 0 rgba(255, 209, 102, .09),
        -2rem 2rem 0 rgba(36, 166, 154, .06);
    content: "";
    transform: rotate(18deg);
}

.login-page .auth-card,
.registration-form {
    position: relative;
    z-index: 2;
}

.login-brand-lockup .login-logo,
.registration-brand-lockup img {
    border: 1px solid rgba(255, 209, 102, .55);
    border-radius: 1.15rem;
    background: linear-gradient(145deg, #fff, #fff7df);
    box-shadow: 0 12px 28px rgba(238, 130, 73, .14);
    filter: none;
}

.login-brand-copy small,
.registration-brand-copy small {
    color: var(--hope-coral);
    font-weight: 900;
}

.login-brand-copy strong,
.registration-brand-copy strong,
.login-auth-header h1,
.registration-form-header h1 {
    color: var(--hope-navy);
}

.login-auth-header h1,
.registration-form-header h1 {
    letter-spacing: -.035em;
}

.login-auth-header > p,
.registration-form-header p {
    color: var(--hope-muted);
}

.login-security-note {
    border-color: #cdece4;
    color: #256c62;
    background: linear-gradient(135deg, #effcf7, #fffdf4);
}

.login-security-note__icon {
    background: linear-gradient(135deg, var(--hope-teal), #16877f);
    box-shadow: 0 5px 12px rgba(36, 166, 154, .22);
}

.login-step-label,
.registration-panel-title {
    border-bottom-color: #f1dfd0;
}

.login-step-label span,
.registration-panel-title span {
    color: #8e4b35;
    background: #fff0e7;
}

.login-page .form-control,
.registration-page .form-control {
    border-color: #ead8ca;
    background: rgba(255, 253, 249, .96);
}

.login-page .form-control:focus,
.registration-page .form-control:focus {
    border-color: var(--hope-orange);
    background: #fff;
    box-shadow: 0 0 0 .22rem rgba(245, 154, 66, .16);
}

.login-page .auth-primary-action,
.registration-primary-action {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--hope-coral), var(--hope-orange));
    box-shadow: 0 13px 27px rgba(239, 106, 76, .25);
}

.login-page .auth-primary-action:hover,
.login-page .auth-primary-action:focus-visible,
.registration-primary-action:hover,
.registration-primary-action:focus-visible {
    color: #fff;
    background: linear-gradient(135deg, #df5b3e, #ef8531);
    box-shadow: 0 16px 32px rgba(239, 106, 76, .31);
    transform: translateY(-2px);
}

.login-page .btn-link,
.registration-page .btn-link,
.login-register-callout a,
.registration-login-link a {
    color: #16877f;
}

.login-page .btn-link:hover,
.registration-page .btn-link:hover,
.login-register-callout a:hover,
.registration-login-link a:hover {
    color: #0f6762;
}

.login-register-callout,
.registration-login-link {
    border-top-color: #f1dfd0;
}

.login-page .login-welcome-panel,
.registration-context-panel {
    isolation: isolate;
    color: var(--hope-navy);
    background:
        radial-gradient(circle at 12% 12%, rgba(255, 255, 255, .72), transparent 16rem),
        radial-gradient(circle at 90% 0%, rgba(255, 209, 102, .54), transparent 18rem),
        linear-gradient(145deg, #fff1bf 0%, #ffd4bd 47%, #bcebe4 100%);
}

.login-page .login-welcome-panel::after,
.registration-context-panel::after {
    position: absolute;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    opacity: .16;
    background:
        linear-gradient(45deg, transparent 46%, rgba(255,255,255,.9) 47% 53%, transparent 54%) 0 0 / 32px 32px,
        linear-gradient(-45deg, transparent 46%, rgba(255,255,255,.9) 47% 53%, transparent 54%) 0 0 / 32px 32px;
    content: "";
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 42%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 42%);
}

.auth-hope-scene {
    position: absolute;
    z-index: 1;
    left: 0;
    bottom: 0;
    width: 66%;
    height: 56%;
    pointer-events: none;
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: contain;
    filter: saturate(1.04);
    transform-origin: 50% 100%;
    animation: hopeSceneFloat 7s ease-in-out infinite;
}

.auth-hope-scene--login {
    background-image: url("../images/auth/hope-horizon.svg");
}

.auth-hope-scene--register {
    width: 68%;
    height: 60%;
    background-image: url("../images/auth/growth-path.svg");
}

.login-page .login-welcome__content,
.registration-context {
    position: relative;
    z-index: 3;
}

.login-page .login-welcome__eyebrow,
.registration-context__eyebrow {
    border-color: rgba(239, 106, 76, .24);
    color: #9b452f;
    background: rgba(255,255,255,.64);
    box-shadow: 0 7px 18px rgba(72, 84, 92, .07);
}

.login-page .login-welcome__content > h2,
.registration-context h2 {
    max-width: 63%;
    color: var(--hope-navy);
    text-shadow: 0 1px 0 rgba(255,255,255,.45);
}

.login-page .login-welcome__content > p,
.registration-context > p {
    max-width: 66%;
    color: #405b68;
    font-weight: 650;
}

.login-journey {
    max-width: 66%;
}

.login-journey__item {
    border-color: rgba(255,255,255,.76);
    background: rgba(255,255,255,.64);
    box-shadow: 0 10px 24px rgba(58, 90, 92, .08);
    backdrop-filter: blur(8px);
}

.login-journey__item:nth-child(1) {
    transform: rotate(.8deg);
}

.login-journey__item:nth-child(2) {
    transform: translateY(-3px);
}

.login-journey__item:nth-child(3) {
    transform: rotate(-.8deg);
}

.login-journey__number {
    color: #fff;
    background: linear-gradient(135deg, var(--hope-coral), var(--hope-orange));
    box-shadow: 0 6px 13px rgba(239,106,76,.20);
}

.login-journey__item:nth-child(2) .login-journey__number {
    background: linear-gradient(135deg, var(--hope-teal), #4bc49a);
}

.login-journey__item:nth-child(3) .login-journey__number {
    background: linear-gradient(135deg, var(--hope-sky), #347fc2);
}

.login-journey__item strong {
    color: var(--hope-navy);
}

.login-journey__item small {
    color: #5d7180;
}

.login-page .login-notices {
    position: relative;
    z-index: 4;
    border-color: rgba(255,255,255,.85);
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 16px 38px rgba(48, 89, 91, .12);
    backdrop-filter: blur(13px);
}

.login-notices__heading h3,
.login-notice-card__content strong {
    color: var(--hope-navy);
}

.login-notices__heading p,
.login-page .login-notices__header span,
.login-notice-card__content p {
    color: #607482;
}

.login-notices__count {
    border-color: rgba(36,166,154,.16);
    color: #25776f !important;
    background: #edf9f5;
}

.login-notice-card {
    border-color: rgba(235, 205, 182, .76);
    color: var(--hope-ink);
    background: rgba(255,255,255,.80);
    box-shadow: 0 7px 18px rgba(64, 83, 91, .07);
}

.login-notice-card:hover,
.login-notice-card:focus-visible {
    border-color: rgba(239,106,76,.40);
    color: var(--hope-ink);
    background: #fff;
    box-shadow: 0 14px 28px rgba(64,83,91,.13);
}

.login-notice-card--urgent {
    border-color: rgba(239, 106, 76, .35);
    background: rgba(255, 240, 234, .90);
}

.login-notice-card__badge {
    color: #176e67;
    background: #d9f4e8;
}

.login-notice-card__placeholder {
    color: #fff;
    background: linear-gradient(145deg, var(--hope-sky), var(--hope-teal));
}

.login-notice-card__action {
    border-color: rgba(239,106,76,.16);
    color: #a94f36;
    background: #fff2e9;
}

.login-notices__empty {
    color: #536b79;
    background: rgba(255,255,255,.62);
}

.registration-progress::before {
    background: linear-gradient(90deg, #f5c995, #bde7df);
}

.registration-progress__number {
    border-color: #f0c8ae;
    color: #a95b40;
    background: #fff8f1;
}

.registration-progress__step.is-active .registration-progress__number {
    border-color: var(--hope-coral);
    color: #fff;
    background: linear-gradient(135deg, var(--hope-coral), var(--hope-orange));
    box-shadow: 0 0 0 .22rem rgba(239,106,76,.11);
}

.registration-progress__step.is-active .registration-progress__copy strong {
    color: #9b452f;
}

.registration-progress__step.is-done .registration-progress__number {
    border-color: var(--hope-teal);
    background: var(--hope-teal);
}

.registration-guide {
    max-width: 65%;
}

.registration-guide__item {
    border-color: rgba(255,255,255,.78);
    background: rgba(255,255,255,.62);
    box-shadow: 0 9px 22px rgba(58,90,92,.07);
    backdrop-filter: blur(8px);
}

.registration-guide__item.is-active {
    border-color: rgba(239,106,76,.38);
    background: rgba(255,248,242,.88);
}

.registration-guide__item.is-done {
    border-color: rgba(36,166,154,.25);
    background: rgba(239,252,247,.82);
}

.registration-guide__icon {
    color: #fff;
    background: linear-gradient(135deg, var(--hope-coral), var(--hope-orange));
}

.registration-guide__item:nth-child(2) .registration-guide__icon {
    background: linear-gradient(135deg, var(--hope-teal), #49bf98);
}

.registration-guide__item:nth-child(3) .registration-guide__icon {
    background: linear-gradient(135deg, var(--hope-sky), #3c84c5);
}

.registration-guide__copy strong,
.registration-trust-box strong {
    color: var(--hope-navy);
}

.registration-guide__copy small {
    color: #5d7180;
}

.registration-trust-box {
    position: relative;
    z-index: 4;
    max-width: 68%;
    border-color: rgba(255,255,255,.82);
    color: #536b79;
    background: rgba(255,255,255,.68);
    box-shadow: 0 12px 28px rgba(58,90,92,.08);
    backdrop-filter: blur(10px);
}

.registration-mobile-confirmed {
    border-color: #bce9dc;
    color: #26746a;
    background: #effbf7;
}

.login-page .site-footer,
.registration-page .site-footer {
    border-top-color: rgba(255,255,255,.25);
    color: #dce8ef;
    background: var(--hope-navy);
}

.login-page .footer-credit,
.registration-page .footer-credit {
    color: #ffd9b3;
}

@keyframes hopeSceneFloat {
    0%, 100% { transform: translateY(0) }
    50% { transform: translateY(-5px) }
}

@media (min-width: 992px) {
    .login-page .login-welcome-panel,
    .registration-context-panel {
        padding-inline: 1.65rem;
    }

    .login-page .login-welcome__content > h2,
    .registration-context h2 {
        font-size: clamp(1.58rem, 2.25vw, 2.05rem);
        line-height: 1.42;
    }

    .login-page .login-welcome__content > p,
    .registration-context > p {
        font-size: .73rem;
        line-height: 1.6;
    }

    .login-page .login-journey {
        margin-top: .58rem;
        margin-bottom: .62rem;
    }

    .registration-guide {
        margin-top: .65rem;
        margin-bottom: .65rem;
    }
}

@media (max-width: 991px) {
    .login-page .login-welcome__content > h2,
    .login-page .login-welcome__content > p,
    .registration-context h2,
    .registration-context > p,
    .login-journey,
    .registration-guide,
    .registration-trust-box {
        max-width: 100%;
    }

    .auth-hope-scene {
        left: 0;
        bottom: 0;
        width: 92%;
        height: 58%;
        opacity: .32;
    }

    .login-page .login-notices,
    .registration-trust-box {
        background: rgba(255,255,255,.84);
    }
}

@media (max-width: 575px) {
    .login-page .login-shell,
    .registration-shell {
        border-radius: 1.25rem;
    }

    .login-page .login-welcome-panel,
    .registration-context-panel {
        padding: 1.45rem;
    }

    .login-journey__item {
        transform: none !important;
    }

    .auth-hope-scene {
        width: 100%;
        height: 52%;
        opacity: .25;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-hope-scene {
        animation: none;
    }
}
