.flocara-auth-bootstrap,
html.flocara-startup-viewport-locked,
html.flocara-startup-viewport-locked body,
html:has(.flocara-auth-bootstrap),
html:has(.flocara-auth-bootstrap) body {
    overscroll-behavior: none;
}

html.flocara-startup-viewport-locked,
html.flocara-startup-viewport-locked body,
html:has(.flocara-auth-bootstrap),
html:has(.flocara-auth-bootstrap) body {
    overflow: hidden !important;
}

html.flocara-startup-viewport-locked body,
html:has(.flocara-auth-bootstrap) body {
    position: fixed;
    inset: 0;
    width: 100%;
    touch-action: none;
}

.flocara-auth-bootstrap {
    position: fixed;
    inset: 0;
    z-index: 2000;
    isolation: isolate;
    box-sizing: border-box;
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 1.5rem;
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    color: var(--flocara-text, #171717);
    background: var(--flocara-surface, #ffffff);
    opacity: 1;
    transition: opacity 450ms ease-in-out, visibility 0s linear 450ms;
}

.flocara-auth-bootstrap-exiting {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.flocara-layout-entering {
    animation: flocara-layout-blend-in 450ms ease-in-out both;
}

.flocara-auth-bootstrap::before {
    position: absolute;
    inset: -24%;
    z-index: 0;
    content: "";
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.94) 12%, rgba(255, 255, 255, 0.62) 24%, rgba(255, 255, 255, 0.12) 38%, transparent 48%),
        linear-gradient(145deg, #050505 0%, #101010 20%, #4a4a4a 32%, #e6e6e6 43%, #ffffff 50%, #ffd0d0 58%, #ef3838 68%, #d10000 80%, #660000 100%);
    opacity: 0;
    animation:
        flocara-auth-bootstrap-reveal-background 220ms ease-out 420ms forwards,
        flocara-auth-bootstrap-spotlight 3.6s cubic-bezier(0.45, 0, 0.55, 1) 420ms infinite alternate;
    backface-visibility: hidden;
    will-change: transform, opacity;
}

.flocara-auth-bootstrap > * {
    position: relative;
    z-index: 1;
}

.flocara-auth-bootstrap-logo {
    display: block;
    width: min(68vw, 280px);
    height: auto;
}

.flocara-auth-bootstrap > .flocara-auth-bootstrap-spinner {
    position: absolute;
    top: calc(50% + 2.5rem);
    color: var(--flocara-brand-text, #d10000);
    opacity: 0;
    animation: flocara-auth-bootstrap-reveal-spinner 160ms ease 420ms forwards;
}

.flocara-auth-bootstrap > .flocara-auth-bootstrap-spinner-static {
    position: absolute;
    top: calc(50% + 2.5rem);
    box-sizing: border-box;
    width: 32px;
    height: 32px;
    border: 3px solid rgba(209, 0, 0, 0.2);
    border-top-color: #d10000;
    border-radius: 50%;
    opacity: 0;
    animation:
        flocara-auth-bootstrap-spin 0.8s linear infinite,
        flocara-auth-bootstrap-reveal-spinner 160ms ease 420ms forwards;
}

.flocara-auth-bootstrap-error {
    max-width: 360px;
}

@keyframes flocara-auth-bootstrap-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes flocara-layout-blend-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes flocara-auth-bootstrap-reveal-spinner {
    to {
        opacity: 1;
    }
}

@keyframes flocara-auth-bootstrap-reveal-background {
    to {
        opacity: 0.94;
    }
}

@keyframes flocara-auth-bootstrap-spotlight {
    0% {
        transform: translate3d(-8%, -6%, 0) scale(0.94);
    }

    32% {
        transform: translate3d(7%, -8%, 0) scale(1.16);
    }

    68% {
        transform: translate3d(9%, 7%, 0) scale(0.96);
    }

    100% {
        transform: translate3d(-7%, 9%, 0) scale(1.12);
    }
}

@media (prefers-reduced-motion: reduce) {
    .flocara-auth-bootstrap {
        transition: none;
    }

    .flocara-layout-entering {
        animation: none;
    }

    .flocara-auth-bootstrap::before {
        animation: none;
        transform: none;
        opacity: 0;
    }

    .flocara-auth-bootstrap > .flocara-auth-bootstrap-spinner,
    .flocara-auth-bootstrap > .flocara-auth-bootstrap-spinner-static {
        opacity: 1;
        animation-duration: 1.6s;
    }
}
