:root {
    --bg-color: #FFFFFF;
    /* Fundo da página em branco */
    --accent-blue: #00d1ff;
    --dark-blue: #1b4965;
    --glass-bg: rgba(15, 23, 42, 0.9);
    /* Card escuro com transparência elegante */
    --text-main: #FFFFFF;
    --text-dim: #94a3b8;
    --error-red: #ff4d4d;
    --logo-cyan: #36c1d4;
    --logo-blue: #28508a;
    --neon-blue: #a0f0ff;
    --light-text: #c0dce0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100vw;
    position: relative;
    padding: 10px;
}

/* --- BACKGROUND CANVAS RESTAURADO --- */
#canvas-bg {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
    /* Colocado logo acima do body branco */
    width: 100%;
    height: 100%;
    opacity: 0.8;
    /* Ajuste de opacidade para os efeitos neon aparecerem bem no branco */
    pointer-events: none;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    width: 100%;
    max-width: 800px;
    animation: fadeIn 1s ease-out;
    padding: 10px;
    min-height: 100vh;
}

/* --- LOGO WRAPPER --- */
.logo-wrapper {
    margin-top: 10px;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 20px rgba(0, 209, 255, 0.6));
    transition: transform 0.3s ease;
    text-align: center;
    z-index: 20;
}

.logo-img {
    max-width: clamp(140px, 15vw, 200px);
    height: auto;
    animation: breathe 5s infinite ease-in-out;
}

@keyframes breathe {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }
}

/* --- ERROR CARD --- */
.error-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
    width: 100%;
    animation: pulse-shadow 3s infinite alternate;
    position: relative;
}

@keyframes pulse-shadow {
    0% {
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    }

    100% {
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    }
}

/* --- STATUS BADGE --- */
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-blue);
    border: 1px solid rgba(0, 209, 255, 0.5);
    margin-bottom: 1.2rem;
    text-transform: uppercase;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-blue);
    animation: pulse-blue 1.5s infinite;
}

@keyframes pulse-blue {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* --- GEAR ICON --- */
.gear-icon {
    width: 35px;
    height: 35px;
    margin: 0 auto 0.8rem auto;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23a0f0ff"><path d="M12 2c-2.76 0-5 2.24-5 5v2h2V7c0-1.65 1.35-3 3-3s3 1.35 3 3v2h2V7c0-2.76-2.24-5-5-5zm0 10c-2.76 0-5 2.24-5 5v2h2v-2c0-1.65 1.35-3 3-3s3 1.35 3 3v2h2v-2c0-2.76-2.24-5-5-5z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    animation: spin 4s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* --- TYPOGRAPHY --- */
h1 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
    color: var(--neon-blue);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(160, 240, 255, 0.6);
}

p {
    color: var(--light-text);
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    line-height: 1.6;
    margin: 1rem 0 1.5rem 0;
}

/* --- FOOTER --- */
.footer {
    margin-top: 1rem;
    padding: 1rem;
    font-size: clamp(8px, 2vw, 11px);
    color: #444;
    /* Cor escura para o rodapé no fundo branco da página */
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.9;
    text-align: center;
    width: 100%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* --- RESPONSIVIDADE MOBILE --- */
@media (max-width: 600px) {
    .container {
        justify-content: flex-start;
        padding-top: 20px;
    }

    .error-card {
        padding: 1.5rem 1rem;
        width: 100%;
    }

    .logo-wrapper {
        margin-bottom: 0.2rem;
    }

    .footer {
        margin-top: auto;
        padding-bottom: 20px;
    }
}