html {
    background: #f8fafc;
}

@media (prefers-color-scheme: dark) {
    html {
        background: #0b1120;
    }
}

#boot {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 9999;
}

.boot-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Logo */

.boot-logo {
    width: 76px;
    height: 76px;
    overflow: visible;
    animation: logo-appear 0.8s cubic-bezier(.16, 1, .3, 1) both,
        logo-float 2.5s ease-in-out 0.8s infinite;
}

.logo-background {
    transform-origin: center;
    animation: background-appear 0.6s ease-out both;
}

.logo-shield {
    transform-origin: center;
    animation: shield-appear 0.7s cubic-bezier(.16, 1, .3, 1) 0.2s both;
}

.logo-lock {
    transform-origin: center;
    animation: lock-appear 0.5s ease-out 0.55s both;
}

/* Loading indicator */

.boot-indicator {
    width: 38px;
    height: 3px;
    border-radius: 10px;
    background: rgba(1, 184, 179, 0.15);
    overflow: hidden;
}

.boot-indicator::after {
    content: "";
    display: block;
    width: 40%;
    height: 100%;
    border-radius: inherit;
    background: #01b8b3;
    animation: loading-progress 1.2s ease-in-out infinite;
}

@keyframes logo-appear {
    from {
        opacity: 0;
        transform: scale(0.65);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes background-appear {
    from {
        opacity: 0;
        transform: scale(0.75);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shield-appear {
    from {
        opacity: 0;
        transform: translateY(5px) scale(0.85);
    }

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

@keyframes lock-appear {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes logo-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes loading-progress {
    0% {
        transform: translateX(-110%);
    }

    100% {
        transform: translateX(260%);
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}