/* ── Generic Blazor boot / startup loading ── */

.blazor-boot {
    --blazor-boot-accent: #6c5ffc;
    --blazor-boot-accent-soft: rgba(108, 95, 252, 0.14);
    --blazor-boot-text: #282f53;
    --blazor-boot-muted: #6c757d;
    --blazor-boot-bg: #f4f2ff;

    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1.5rem;
    background:
        radial-gradient(ellipse 70% 55% at 50% 0%, rgba(108, 95, 252, 0.1) 0%, transparent 60%),
        linear-gradient(180deg, #f8f9ff 0%, var(--blazor-boot-bg) 100%);
}

.blazor-boot--inline {
    min-height: auto;
    padding: 3rem 1.5rem;
    background: transparent;
}

.blazor-boot--overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;
    min-height: 100vh;
    background: rgba(244, 242, 255, 0.82);
    backdrop-filter: blur(6px);
}

html.DarkMode .blazor-boot--overlay {
    background: rgba(26, 26, 60, 0.82);
}

.blazor-boot__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
    text-align: center;
}

.blazor-boot__spinner {
    position: relative;
    width: 3.5rem;
    height: 3.5rem;
}

.blazor-boot__spinner::before,
.blazor-boot__spinner::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
}

.blazor-boot__spinner::before {
    border-top-color: var(--blazor-boot-accent);
    border-right-color: var(--blazor-boot-accent-soft);
    animation: blazor-boot-spin 0.85s cubic-bezier(0.55, 0.15, 0.35, 0.85) infinite;
}

.blazor-boot__spinner::after {
    inset: 0.45rem;
    border-bottom-color: rgba(108, 95, 252, 0.55);
    border-left-color: var(--blazor-boot-accent-soft);
    animation: blazor-boot-spin 1.1s cubic-bezier(0.55, 0.15, 0.35, 0.85) infinite reverse;
}

.blazor-boot__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 0.5rem;
}

.blazor-boot__dot {
    width: 0.38rem;
    height: 0.38rem;
    border-radius: 50%;
    background: var(--blazor-boot-accent);
    opacity: 0.35;
    animation: blazor-boot-dot 1.2s ease-in-out infinite;
}

.blazor-boot__dot:nth-child(2) {
    animation-delay: 0.15s;
}

.blazor-boot__dot:nth-child(3) {
    animation-delay: 0.3s;
}

.blazor-boot__text {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--blazor-boot-text);
    letter-spacing: 0.01em;
}

html.DarkMode .blazor-boot {
    --blazor-boot-text: #d8d8f0;
    --blazor-boot-muted: #8888a8;
    --blazor-boot-bg: #1a1a3c;
    --blazor-boot-accent-soft: rgba(108, 95, 252, 0.22);
    background:
        radial-gradient(ellipse 70% 55% at 50% 0%, rgba(108, 95, 252, 0.14) 0%, transparent 60%),
        linear-gradient(180deg, #1a1a3c 0%, #222244 100%);
}

html.DarkMode .blazor-boot--inline {
    background: transparent;
}

@keyframes blazor-boot-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes blazor-boot-dot {
    0%, 80%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }

    40% {
        opacity: 1;
        transform: translateY(-0.18rem);
    }
}

.auth-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
    padding: 0.75rem 0 1.25rem;
}

.auth-loading--animate {
    animation: auth-loading-in 0.35s ease;
}

.auth-loading__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    margin-bottom: 0.35rem;
}

.auth-loading__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.95rem;
    background: linear-gradient(135deg, #6c5ffc 0%, #0d1a52 100%);
    color: #fff;
    font-size: 1.35rem;
    box-shadow: 0 8px 22px rgba(108, 95, 252, 0.32);
    z-index: 1;
}

.auth-loading__spinner {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid rgba(108, 95, 252, 0.16);
    border-top-color: #6c5ffc;
    animation: auth-loading-spin 0.9s linear infinite;
}

.auth-loading__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--login-text, #282f53);
    line-height: 1.45;
}

.auth-loading__hint {
    margin: 0;
    max-width: 18rem;
    font-size: 0.875rem;
    color: var(--login-text-muted, #6c757d);
    line-height: 1.65;
}

.auth-loading__steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.35rem;
}

.auth-loading__step {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: rgba(108, 95, 252, 0.28);
    animation: auth-loading-pulse 1.15s ease-in-out infinite;
}

.auth-loading__step:nth-child(2) {
    animation-delay: 0.18s;
}

.auth-loading__step:nth-child(3) {
    animation-delay: 0.36s;
}

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

@keyframes auth-loading-in {
    from {
        opacity: 0;
        transform: translateY(0.35rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes auth-loading-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes auth-loading-pulse {
    0%, 80%, 100% {
        opacity: 0.35;
        transform: scale(0.85);
    }

    40% {
        opacity: 1;
        transform: scale(1);
    }
}
