.auth-loading,
.auth-loading-page {
    margin: 0;
    background: #fff;
    color-scheme: light;
}

.auth-loading {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
}

.auth-loading[hidden] { display: none !important; }

.auth-loading,
.auth-loading-page main {
    display: grid;
    place-items: center;
    min-height: 100vh;
    min-height: 100dvh;
}

.auth-loading__content {
    display: grid;
    justify-items: center;
    gap: 24px;
    width: min(200px, calc(100vw - 48px));
}

.auth-loading__logo {
    display: block;
    width: min(176px, 100%);
    height: auto;
}

.auth-loading__track {
    display: block;
    width: 100%;
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: #e6efff;
}

.auth-loading__track::after {
    content: "";
    display: block;
    width: 44%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #62a5ff);
    animation: auth-loading-travel 1s ease-in-out infinite alternate;
}

.auth-loading__status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.auth-loading-page #continue:not([hidden]) {
    position: fixed;
    left: 50%;
    top: calc(50% + 110px);
    transform: translateX(-50%);
    color: #2456ab;
    font: 16px system-ui, sans-serif;
    white-space: nowrap;
}

@keyframes auth-loading-travel {
    to { transform: translateX(128%); }
}

@media (prefers-reduced-motion: reduce) {
    .auth-loading__track::after { animation: none; width: 100%; }
}
