
@layer base {
    body {
        min-height: 100vh;
    }
}

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

body {
    font-family: Arial, sans-serif;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 20px;

    position: relative;
    overflow-x: hidden;
}

/* Fundo */
body::before {
    content: "";

    position: fixed;
    inset: 0;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.45),
            rgba(0, 0, 0, 0.45)
        ),
        url('/images/5.png');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    z-index: -1;
}

/* Container principal */
.container {
    width: 100%;
    max-width: 580px;

    padding: 35px;

    border-radius: 24px;

    text-align: center;

    background: rgba(255, 255, 255, 0.15);

    backdrop-filter: blur(10px);

    border: 1px solid rgba(255, 255, 255, 0.2);

    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

    animation: aparecer 0.6s ease;
}

.container p {
    text-align: center;

    color: #a51948;

    box-shadow: 0 8px 32px rgba(210, 230, 37, 0.3);

    border-radius: 12px;

    padding: 10px;

    animation: aparecer 0.6s ease;
}

/* Animação */
@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Decoração */
.decoracao {
    font-size: 2rem;
    margin-bottom: 15px;
}

.topo {
    font-size: clamp(40px, 8vw, 60px);
    margin-bottom: 10px;
}

/* Títulos */
h1 {
    color: #ffcc70;

    font-size: clamp(2rem, 5vw, 2.5rem);

    margin-bottom: 10px;

    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);
}

h4 {
    color: white;

    margin-bottom: 25px;

    font-weight: 400;
}

/* Captcha */
.captcha-box {
    display: flex;
    justify-content: center;

    margin-bottom: 25px;
}

/* Formulário */
.form-votacao {
    margin-bottom: 20px;
}

/* Card da candidata */
.btn-voto {
    width: 100%;

    border: none;
    border-radius: 18px;

    overflow: hidden;

    cursor: pointer;

    background: #fff;

    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);

    display: flex;
    flex-direction: column;
    align-items: center;

    position: relative;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.btn-voto:hover {
    transform: translateY(-3px);

    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

/* Barra superior decorativa */
.btn-voto::after {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background: linear-gradient(
        90deg,
        #ffcc70,
        #c939c9
    );
}

/* Imagem */
.btn-voto img {
    width: 100%;

    aspect-ratio: 3 / 4;

    object-fit: cover;

    display: block;

    background: #fff;

    transition: transform 0.25s ease;
}

/* Zoom suave */
.btn-voto:hover img {
    transform: scale(1.03);
}

/* Nome */
.nome-candidata {
    width: 100%;

    padding: 16px;

    background: #fff;

    color: #111;

    font-size: 1.3rem;
    font-weight: bold;

    letter-spacing: 1px;

    text-align: center;
}

/* Texto secundário */
.btn-voto span {
    padding: 10px 12px;

    text-align: center;

    font-size: 15px;

    color: #333;

    background: #fff;

    width: 100%;
}

/* Mensagens */
.mensagem,
.mensagem-erro {
    padding: 14px;

    border-radius: 12px;

    margin-bottom: 20px;

    color: white;

    font-weight: bold;
}

.mensagem {
    background: #16a34a;
}

.mensagem-erro {
    background: #dc2626;
}

/* Layout principal */
.principal {
    min-height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Footer */
.footer {
    width: 100%;
    height: 50px;

    position: absolute;
    bottom: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;

    background: transparent;

    color: rgb(159, 184, 166);

    font-size: 0.9rem;
}

/* Apuração */
.apuracao {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;

    padding: 20px;

    background-color: rgb(140, 179, 156);

    border-radius: 20px;
}

.apuracao ol {
    width: 200px;

    margin: 0;

    padding: 15px;

    background-color: #dad6cf;

    color: #000;

    text-align: center;

    font-size: 30px;

    border-radius: 30px;

    list-style-position: inside;
}

/* Barra de progresso */
.barra-progresso {
    width: 100%;

    height: 25px;

    margin: 10px 0;

    background: #e5e7eb;

    border-radius: 10px;

    overflow: hidden;
}

.progresso {
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        90deg,
        #960c8f,
        #b688ac
    );

    color: white;

    font-weight: bold;

    transition: width 0.4s ease;
}

/* Responsivo */
@media (max-width: 480px) {
    .container {
        padding: 22px;

        border-radius: 18px;
    }

    .nome-candidata {
        font-size: 1.1rem;
    }

    h3 {
        margin-bottom: 20px;
    }

    .apuracao ol {
        width: 100%;

        font-size: 24px;
    }
}

/* Remove hover em touch */
@media (hover: none) {
    .btn-voto:hover {
        transform: none;
    }

    .btn-voto:hover img {
        transform: none;
    }
}


.imagem-comprovante {
    display: block;
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 15px auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
