/*
 * App start loader: a centred logo shown before the app's code and styles have loaded.
 * Loaded straight from index.html, so it can't use the app's theme tokens; the colours below
 * match --color-bg. AppBootLoader reuses this class for the sign-in check, so both look the same.
 */
.app-boot {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

[data-theme='dark'] .app-boot {
    background: #0a0f1a;
}

/* Hidden for the first 250ms like the other loaders, so a fast start shows no logo at all. */
.app-boot img {
    width: 48px;
    height: 48px;
    opacity: 0;
    animation:
        app-boot-reveal 150ms ease-out 250ms forwards,
        app-boot-pulse 1.6s ease-in-out 400ms infinite;
}

@keyframes app-boot-reveal {
    to {
        opacity: 1;
    }
}

@keyframes app-boot-pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.55;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-boot img {
        animation: app-boot-reveal 0.01ms linear 250ms forwards;
    }
}
