:root {
    --fundo: #05070d;
    --painel: rgba(16, 20, 30, 0.62);
    --texto: #eef3ff;
    --texto-fraco: #8f9cb5;
    --acento: #35e0ff;
    --acento-2: #7b5cff;
    --acento-3: #ff4fd8;
    --alerta: #ffb454;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--fundo);
    color: var(--texto);
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    overflow: hidden;
}

/* ---------------------------------------------------------------
   Fundo animado
   --------------------------------------------------------------- */

.fundo {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

/* REMOVIDOS em 2026-08-09, a pedido: a nevoa colorida (.fundo__aurora), as
   duas esferas de luz (.fundo__brilho) e a grade em perspectiva
   (.fundo__grade). Lavavam os cantos da tela de azul e magenta e a grade
   desenhava uma faixa clara de ponta a ponta na altura do horizonte.
   O fundo agora e escuro e liso, so com a rede de particulas por cima.
   As <div> correspondentes tambem sairam de todas as paginas -- nao ha
   marcacao orfa esperando estilo. */

.fundo__particulas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.9;
}

/* ---------------------------------------------------------------
   Painel central
   --------------------------------------------------------------- */

.painel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    padding: 46px 36px 40px;
    text-align: center;
    background: var(--painel);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid rgba(53, 224, 255, 0.20);
    border-radius: 20px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03),
        0 24px 70px rgba(0, 0, 0, 0.55),
        0 0 90px rgba(53, 224, 255, 0.12);
    animation: entrarPainel 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

/* Angulo animavel do contorno. Sem suporte a @property o contorno
   simplesmente fica parado, sem quebrar o layout. */
@property --angulo {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* Contorno luminoso girando na borda do painel.
   Gira o ANGULO do gradiente, nunca o elemento: rotacionar o ::before
   arrastaria o retangulo inteiro para fora do painel. */
.painel::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 20px;
    padding: 1px;
    background: conic-gradient(
        from var(--angulo),
        transparent 0deg,
        rgba(53, 224, 255, 0.85) 40deg,
        rgba(123, 92, 255, 0.85) 90deg,
        transparent 150deg,
        transparent 360deg
    );
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;
    animation: girarBorda 6s linear infinite;
    pointer-events: none;
}

.painel__selo {
    display: inline-block;
    margin-bottom: 18px;
    padding: 5px 14px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: var(--acento);
    background: rgba(53, 224, 255, 0.08);
    border: 1px solid rgba(53, 224, 255, 0.28);
    border-radius: 999px;
}

.titulo {
    margin: 0 0 10px;
    font-size: 52px;
    font-weight: 700;
    letter-spacing: 8px;
    background: linear-gradient(100deg, var(--acento), #ffffff 45%, var(--acento-3));
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: deslizarBrilhoTitulo 7s ease-in-out infinite;
}

.subtitulo {
    margin: 0 0 32px;
    color: var(--texto-fraco);
    font-size: 15px;
    line-height: 1.5;
}

.botao {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 220px;
    padding: 15px 30px;
    overflow: hidden;
    color: #04121a;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-decoration: none;
    background: linear-gradient(120deg, var(--acento), var(--acento-2));
    border: 0;
    border-radius: 12px;
    box-shadow: 0 0 24px rgba(53, 224, 255, 0.40);
    animation: pulsar 2.8s ease-in-out infinite;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

/* Reflexo que cruza o botao. */
.botao::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-20deg);
    animation: reflexo 3.6s ease-in-out infinite;
}

.botao:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 0 42px rgba(53, 224, 255, 0.70);
}

.botao:active {
    transform: translateY(-1px) scale(0.99);
}

.botao__icone {
    display: inline-flex;
    animation: descerIcone 2.2s ease-in-out infinite;
}

.botao--inativo {
    color: var(--texto-fraco);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: none;
    cursor: not-allowed;
    animation: none;
}

.botao--inativo::after,
.botao--inativo:hover {
    animation: none;
    transform: none;
    box-shadow: none;
}

.detalhe {
    margin: 20px 0 0;
    color: var(--texto-fraco);
    font-size: 13px;
    letter-spacing: 0.4px;
}

.detalhe--alerta {
    color: var(--alerta);
}

@keyframes entrarPainel {
    from { opacity: 0; transform: translateY(26px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes girarBorda {
    to { --angulo: 360deg; }
}

@keyframes deslizarBrilhoTitulo {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

@keyframes pulsar {
    0%, 100% { box-shadow: 0 0 24px rgba(53, 224, 255, 0.40); }
    50%      { box-shadow: 0 0 40px rgba(123, 92, 255, 0.65); }
}

@keyframes reflexo {
    0%       { left: -120%; }
    55%, 100% { left: 130%; }
}

@keyframes descerIcone {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(3px); }
}

/* Responsivo */
@media (max-width: 480px) {
    .titulo { font-size: 40px; letter-spacing: 5px; }
    .painel { padding: 36px 24px 30px; }
}

/* Respeita quem pediu menos movimento no sistema. */
@media (prefers-reduced-motion: reduce) {
    .painel,
    .painel::before,
    .titulo,
    .botao,
    .botao::after,
    .botao__icone {
        animation: none !important;
    }
}
