/* =========================================================
   COZY&TABLE - Splash screen + tokens de marca
   Carregado no <head> do _Host.cshtml (antes do splash, que é
   renderizado estaticamente no <body>): assim o splash nunca
   aparece sem estilo (logo a 1000px e marca de água a 100%)
   enquanto o site.css ainda está a descarregar.
   ========================================================= */
/* =========================================================
   COZY&TABLE - tokens de marca (partilhados: login + splash)
   ========================================================= */
:root {
    --ct-wine: #55192b; /* vinho da marca (texto do logo) */
    --ct-wine-2: #2a0a14; /* vinho muito escuro (gradientes / botões) */
    --ct-wine-deep: #0f0306; /* fundo quase preto de marca (painel esq. login) */
    --ct-gold: #c9973b; /* dourado da marca (espirais, "&", tagline) */
    --ct-gold-dark: #a67a28;
    --ct-gold-light: #e3bc6a;
    --ct-cream: #f7f1e7;
    --ct-text: rgba(0,0,0,.82);
    --ct-muted: rgba(0,0,0,.55);
    --ct-radius: 10px;
}

/* =========================================================
   COZY&TABLE - Splash screen (claro, creme + dourado, coerente
   com o login: espiral da marca em marca de agua a rodar)
   ========================================================= */
.splash-fullscreen {
    position: fixed;
    inset: 0;
    overflow: hidden;
    background: radial-gradient(70vw 60vw at 100% 0%, rgba(201,151,59,.18), transparent 60%), radial-gradient(60vw 50vw at 0% 100%, rgba(85,25,43,.10), transparent 60%), linear-gradient(180deg, #fbf8f3, #f2eae0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.splash-watermark {
    position: absolute;
    width: min(70vw, 70vh);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: .07;
    pointer-events: none;
    user-select: none;
    animation: splash-spin 90s linear infinite;
}

.splash-center {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.splash-logo {
    width: min(320px, 60vw);
    height: auto;
    animation: splash-rise .7s cubic-bezier(.2,.8,.3,1) both;
}

.splash-tagline {
    margin-top: 10px;
    color: var(--ct-gold-dark);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .3em;
    text-indent: .3em; /* compensa o letter-spacing no ultimo carater */
    text-transform: uppercase;
    animation: splash-rise .7s .12s cubic-bezier(.2,.8,.3,1) both;
}

.splash-progress {
    margin-top: 34px;
    width: min(220px, 50vw);
    height: 3px;
    border-radius: 999px;
    background: rgba(85,25,43,.10);
    overflow: hidden;
    position: relative;
}

    .splash-progress::after {
        content: "";
        position: absolute;
        inset: 0;
        width: 40%;
        border-radius: 999px;
        background: linear-gradient(90deg, transparent, var(--ct-gold), transparent);
        animation: splash-shimmer 1.4s ease-in-out infinite;
    }

.splash-status {
    margin-top: 14px;
    color: rgba(85,25,43,.55);
    font-size: 12px;
    animation: splash-rise .7s .2s cubic-bezier(.2,.8,.3,1) both;
}

.splash-foot {
    position: absolute;
    z-index: 1;
    bottom: 24px;
    color: rgba(85,25,43,.45);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
}

@keyframes splash-rise {
    from {
        opacity: 0;
        transform: translateY(16px) scale(.97);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes splash-spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes splash-shimmer {
    0% {
        transform: translateX(-110%);
    }

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

@media (prefers-reduced-motion: reduce) {
    .splash-logo,
    .splash-tagline,
    .splash-status,
    .splash-watermark {
        animation: none;
    }

    .splash-progress::after {
        animation-duration: 2.8s;
    }
}
