/* ---------- boas-vindas (loader pós-login — js/boas-vindas.js) ---------- */
.bv {
    position: fixed;
    box-sizing: border-box;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow: hidden;
    overflow: clip;
    background: radial-gradient(ellipse at 50% 40%, #172554 0%, #0b1a4a 45%, #061142 100%);
    font-family: Inter, system-ui, sans-serif;
    opacity: 0;
    transition: opacity .35s ease;
}

.bv[hidden] { display: none; }
.bv.bv-visivel { opacity: 1; }

/* Luzes suaves que passeiam no fundo, atrás da logo. */
.bv-brilho,
.bv-brilho::before {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.bv-brilho {
    width: 28rem;
    height: 28rem;
    top: 50%;
    left: 50%;
    margin: -10rem 0 0 -18rem;
    background: radial-gradient(circle, rgba(59, 130, 246, .45), transparent 65%);
    animation: bv-deriva 9s ease-in-out infinite alternate;
}

.bv-brilho::before {
    content: '';
    width: 22rem;
    height: 22rem;
    top: 6rem;
    left: 16rem;
    background: radial-gradient(circle, rgba(14, 165, 233, .35), transparent 65%);
    animation: bv-deriva 11s ease-in-out infinite alternate-reverse;
}

@keyframes bv-deriva {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(4rem, -2rem) scale(1.15); }
}

.bv-centro {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    transform: translateY(12px);
    transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}

.bv.bv-visivel .bv-centro { transform: none; }

.bv-logo {
    width: 7.5rem;
    height: auto;
    filter: drop-shadow(0 0 18px rgba(147, 197, 253, .35));
}

/* Saudação com o brilho do título do hero do reobote.tec.br (tema escuro). Ciclo de 3 s (lá, 7 s):
   o loader dura ~2 s e, com 7 s, a faixa só cruzaria o texto depois de ~2,7 s. */
.bv-texto {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    max-width: min(36rem, calc(100vw - 2rem));
    text-align: center;
}

.bv-titulo {
    max-width: 100%;
    margin: 0;
    font-size: clamp(1.75rem, 1.2rem + 2.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.02em;
    color: #fff;
    overflow-wrap: anywhere;
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
    .bv-titulo {
        width: fit-content;               /* obrigatório com background-clip: text */
        background-image: linear-gradient(100deg, #fff 0 42%, #9ce5ea 50%, #fff 58% 100%);
        background-size: 300% 100%;
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        animation: bv-brilho-texto 3s cubic-bezier(.65, 0, .35, 1) infinite;
    }
}

@keyframes bv-brilho-texto {
    from { background-position: 100% 50%; }
    to   { background-position: 0% 50%; }
}

.bv-sub {
    font-size: .9375rem;
    color: rgba(255, 255, 255, .75);
}

@media (min-width: 576px) {
    .bv-logo { width: 9rem; }
}

/* O brilho é enfeite: sem movimento, o título volta a ser branco sólido (como no site). */
@media (prefers-reduced-motion: reduce) {
    .bv, .bv-centro { transition: none; }
    .bv-brilho, .bv-brilho::before { animation: none; }
    .bv-titulo { background-image: none; color: #fff; animation: none; }
}
