/* Self-contained boot splash styles — intentionally not part of the app's
   compiled stylesheet, so there is no blank gap while the Angular bundle
   downloads, parses, and bootstraps (auth init + first route). Served as a
   same-origin static asset so it satisfies a strict style-src 'self'
   Content-Security-Policy without needing an inline-style nonce. */
html,
body {
    height: 100%;
    margin: 0;
    background: #f8f8fb;
}

html.dark-theme,
html.dark-theme body {
    background: #1f1f28;
}

app-root {
    display: block;
    height: 100%;
}

.app-boot-splash {
    display: flex;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

.app-boot-mark {
    width: 56px;
    height: 56px;
    object-fit: contain;
    transform-origin: center;
    animation: app-boot-logo 1.4s ease-in-out infinite;
}

.app-boot-mark--dark {
    display: none;
}

html.dark-theme .app-boot-mark--light {
    display: none;
}

html.dark-theme .app-boot-mark--dark {
    display: block;
}

@keyframes app-boot-logo {

    0%,
    100% {
        opacity: 0.68;
        transform: scale(0.96);
    }

    50% {
        opacity: 1;
        transform: scale(1.04);
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-boot-mark {
        animation: none;
    }
}