.kcaa-page-loader {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: #132033;
    background:
        linear-gradient(135deg, rgba(0, 57, 102, .70), rgba(18, 78, 114, .45)),
        rgba(8, 28, 47, .46);
    opacity: 1;
    visibility: visible;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: opacity .22s ease, visibility .22s ease;
}

.kcaa-page-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.kcaa-page-loader-card {
    position: relative;
    width: min(720px, calc(100vw - 36px));
    min-height: 360px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 58px 42px;
    text-align: center;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(229, 245, 252, .92));
    border: 1px solid rgba(255, 255, 255, .74);
    border-radius: 38px;
    box-shadow: 0 32px 94px rgba(0, 35, 69, .35), inset 0 1px 0 rgba(255, 255, 255, .92);
}

.kcaa-page-loader-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(540px, 78%);
    max-height: 260px;
    object-fit: contain;
    opacity: .085;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.kcaa-page-loader-ring {
    position: relative;
    z-index: 1;
    width: 92px;
    height: 92px;
    border: 18px solid rgba(0, 114, 188, .16);
    border-top-color: #0072bc;
    border-right-color: #ff8200;
    border-radius: 50%;
    animation: kcaaPageLoaderSpin .95s linear infinite;
    box-shadow: 0 10px 24px rgba(0, 95, 170, .12);
}

.kcaa-page-loader-title {
    position: relative;
    z-index: 1;
    margin: 18px 0 0;
    color: #132033;
    font-size: clamp(2.1rem, 5vw, 4.15rem);
    font-weight: 900;
    line-height: 1;
}

.kcaa-page-loader-message {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin: 0;
    color: #536173;
    font-size: clamp(1.25rem, 2.6vw, 2.35rem);
    font-weight: 800;
    line-height: 1.18;
}

.kcaa-page-loader-bar {
    position: relative;
    z-index: 1;
    width: min(360px, 76vw);
    height: 8px;
    overflow: hidden;
    margin-top: 8px;
    background: rgba(0, 114, 188, .13);
    border-radius: 999px;
}

.kcaa-page-loader-bar::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 42%;
    content: "";
    background: linear-gradient(90deg, #0072bc, #ff8200);
    border-radius: inherit;
    animation: kcaaPageLoaderBar 1.15s ease-in-out infinite;
}

.kcaa-page-loader.is-compact {
    padding: 18px;
    background:
        radial-gradient(circle at 48% 35%, rgba(255, 255, 255, .14), transparent 34%),
        linear-gradient(135deg, rgba(0, 45, 92, .78), rgba(0, 92, 185, .54)),
        rgba(6, 24, 45, .50);
}

.kcaa-page-loader.is-compact .kcaa-page-loader-card {
    width: min(520px, calc(100vw - 28px));
    min-height: 0;
    gap: 10px;
    padding: 24px 28px 26px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(239, 248, 255, .95)),
        linear-gradient(90deg, #0072bc, #ff8200);
    border: 1px solid rgba(255, 255, 255, .86);
    border-top: 6px solid #ff8200;
    box-shadow: 0 22px 54px rgba(0, 35, 69, .34), inset 0 1px 0 rgba(255, 255, 255, .96);
}

.kcaa-page-loader.is-compact .kcaa-page-loader-logo {
    width: min(340px, 84%);
    max-height: 130px;
    opacity: .055;
}

.kcaa-page-loader.is-compact .kcaa-page-loader-ring {
    width: 48px;
    height: 48px;
    border-width: 9px;
    box-shadow: 0 9px 20px rgba(0, 92, 185, .18);
}

.kcaa-page-loader.is-compact .kcaa-page-loader-title {
    margin: 6px 0 0;
    color: #002d5c;
    font-size: clamp(1.45rem, 3vw, 2.25rem);
    letter-spacing: 0;
    line-height: 1.04;
}

.kcaa-page-loader.is-compact .kcaa-page-loader-message {
    max-width: 440px;
    color: #304154;
    font-size: clamp(.95rem, 1.8vw, 1.25rem);
    font-weight: 900;
    line-height: 1.25;
}

.kcaa-page-loader.is-compact .kcaa-page-loader-bar {
    width: min(330px, 72vw);
    height: 10px;
    margin-top: 8px;
    background: rgba(0, 92, 185, .14);
    box-shadow: inset 0 0 0 1px rgba(0, 92, 185, .08);
}

.kcaa-page-loader.is-compact .kcaa-page-loader-bar::before {
    width: 48%;
    background: linear-gradient(90deg, #005cb9 0%, #00a6d6 38%, #ff8200 100%);
    box-shadow: 0 0 16px rgba(255, 130, 0, .30);
}

@keyframes kcaaPageLoaderSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes kcaaPageLoaderBar {
    0% {
        transform: translateX(-110%);
    }

    55% {
        transform: translateX(80%);
    }

    100% {
        transform: translateX(250%);
    }
}

@media (max-width: 560px) {
    .kcaa-page-loader-card {
        min-height: 310px;
        padding: 42px 24px;
        border-radius: 28px;
    }

    .kcaa-page-loader-ring {
        width: 78px;
        height: 78px;
        border-width: 15px;
    }

    .kcaa-page-loader.is-compact .kcaa-page-loader-card {
        padding: 22px 18px 24px;
        border-radius: 16px;
    }

    .kcaa-page-loader.is-compact .kcaa-page-loader-ring {
        width: 44px;
        height: 44px;
        border-width: 8px;
    }
}
