.portal-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: #ffffff;
    background:
        radial-gradient(circle at 50% 38%, rgba(28, 82, 160, 0.24), transparent 34%),
        linear-gradient(180deg, #061a3a 0%, #031226 100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.portal-loader.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.portal-loader.is-hidden {
    display: none;
}

.login-loader {
    display: none;
}

.login-loader.on {
    display: flex;
}

body.is-authenticating {
    overflow: hidden;
}

body.is-authenticating .page-shell,
body.is-authenticating .shader-bg {
    opacity: 0;
    visibility: hidden;
}

.portal-loader__content {
    width: min(100%, 360px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.portal-loader__mark {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.portal-loader__mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.portal-loader__mark span {
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0;
    color: #061a3a;
}

.portal-loader__eyebrow {
    font-size: clamp(1.08rem, 2.7vw, 1.42rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
    color: #ffffff;
}

.portal-loader__message {
    min-height: 20px;
    margin-top: 7px;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.68);
}

.portal-loader__message.is-soft {
    color: rgba(255, 255, 255, 0.68);
}

.portal-loader__progress {
    width: min(100%, 210px);
    height: 3px;
    margin-top: 18px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.20);
}

.portal-loader__progress span {
    display: block;
    width: 45%;
    height: 100%;
    border-radius: inherit;
    background: #ffffff;
    animation: portalLoaderProgress 1.15s ease-in-out infinite;
}

@keyframes portalLoaderProgress {
    0% {
        transform: translateX(-110%);
    }
    52% {
        transform: translateX(75%);
    }
    100% {
        transform: translateX(230%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .portal-loader,
    .portal-loader * {
        animation: none !important;
        transition: none !important;
    }

    .portal-loader__progress span {
        width: 100%;
        transform: none;
    }
}

@media (max-width: 560px) {
    .portal-loader__content {
        width: min(100%, 300px);
    }

    .portal-loader__mark {
        width: 64px;
        height: 64px;
        margin-bottom: 16px;
    }

    .portal-loader__progress {
        width: min(100%, 190px);
    }
}
