/* CNH do Brasil - Splash Screen 1:1 Oficial (Fidelidade ao Aplicativo Oficial) */

.cnh-splash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.22s ease-in-out;
    pointer-events: all;
    user-select: none;
    -webkit-user-select: none;
}

.cnh-splash-overlay.active {
    opacity: 1;
}

.cnh-splash-card {
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 20px;
    box-sizing: border-box;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cnh-splash-overlay.active .cnh-splash-card {
    transform: scale(1);
}

/* GIF Oficial Serpro: Bandeira Animada Dobrando + CNH do BRASIL */
.cnh-splash-official-gif {
    width: 142px;
    height: auto;
    max-height: 135px;
    object-fit: contain;
    display: block;
    margin-bottom: 2px;
}

.cnh-splash-loading {
    font-size: 13.5px;
    color: #555555;
    font-weight: 500;
    font-family: 'Open Sans', -apple-system, sans-serif;
    letter-spacing: 0.2px;
}

/* Suporte Completo ao Tema Escuro */
.cnh-splash-overlay.theme-dark,
body.theme-dark .cnh-splash-overlay,
html.theme-dark .cnh-splash-overlay {
    background: rgba(0, 0, 0, 0.65);
}

.cnh-splash-overlay.theme-dark .cnh-splash-card,
body.theme-dark .cnh-splash-card,
html.theme-dark .cnh-splash-card {
    background-color: #242528;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.65);
}

.cnh-splash-overlay.theme-dark .cnh-splash-loading,
body.theme-dark .cnh-splash-loading,
html.theme-dark .cnh-splash-loading {
    color: #98989d;
}
