/* Brand splash: shown by index.html while the WebAssembly runtime downloads, and by BrandSplash.razor for every later
   wait (auth check, sign-in redirect and callback). Global (not scoped CSS) so index.html can use it before Blazor
   starts; keep the markup in index.html and BrandSplash.razor in step. */
.sb-splash {
    align-items: center;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    inset: 0;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
    position: fixed;
    z-index: 100;
}

.sb-splash__logo {
    height: auto;
    max-width: 70vw;
    width: 15rem;
}

.sb-splash__bar {
    background: rgba(67, 64, 210, 0.12);
    border-radius: 2px;
    height: 4px;
    overflow: hidden;
    position: relative;
    width: 10rem;
}

.sb-splash__bar::after {
    animation: sb-splash-slide 1.2s ease-in-out infinite;
    background: #4340D2;
    border-radius: 2px;
    content: "";
    inset: 0 auto 0 0;
    position: absolute;
    width: 40%;
}

/* While the runtime downloads, Blazor sets --blazor-load-percentage on <html>: show real progress instead. */
.sb-splash__bar--boot::after {
    animation: none;
    transition: width 0.2s ease-out;
    width: var(--blazor-load-percentage, 5%);
}

@keyframes sb-splash-slide {
    from { transform: translateX(-100%); }
    to { transform: translateX(250%); }
}

@media (prefers-reduced-motion: reduce) {
    .sb-splash__bar::after {
        animation: none;
        width: 100%;
        opacity: 0.6;
    }
}

.sb-visually-hidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}
