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

/* FUNDO */
body {
    height: 100vh;
    font-family: Arial, sans-serif;
    background: #1e5ed6;
}

/* CENTRALIZAÇÃO */
.container {
    height: 100%;
    display: flex;
    align-items: flex-start; /* muda aqui */
    justify-content: center;

    padding-top: 120px; /* controla a posição */
}


/* BOX */
.box {
    background: white;
    padding: 40px 50px;
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    text-align: center;

    animation: aparecer 0.5s ease;
}

/* ANIMAÇÃO */
@keyframes aparecer {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* TEXTO */
.titulo {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
}

/* FORM */
.form {
    display: flex;
    gap: 10px;
}

/* AGRUPAMENTO */
.campo {
    display: flex;
    flex-direction: column;
}

/* INPUT */
#txtbusca {
    width: 250px;
    height: 45px;
    padding: 0 12px;

    border-radius: 6px;
    border: 1px solid #ccc;

    font-size: 15px;
    outline: none;

    transition: 0.2s;
}

/* FOCO */
#txtbusca:focus {
    border-color: #1e5ed6;
    box-shadow: 0 0 0 2px rgba(30,94,214,0.2);
}

/* ERRO */
#txtbusca.erro {
    border: 1px solid #e74c3c;
    box-shadow: 0 0 0 2px rgba(231,76,60,0.2);
}

/* BOTÃO */
#btnBusca {
    height: 45px;
    padding: 0 20px;

    background: white;
    color: #1e5ed6;

    border: 2px solid #1e5ed6;
    border-radius: 25px;

    cursor: pointer;

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

    transition: 0.3s;
}

/* HOVER */
#btnBusca:hover {
    background: #1e5ed6;
    color: white;
}

/* LOADER */
.loader {
    width: 16px;
    height: 16px;

    border: 2px solid transparent;
    border-top: 2px solid #1e5ed6;
    border-radius: 50%;

    animation: girar 1s linear infinite;

    display: none;
}

/* ANIMAÇÃO LOADER */
@keyframes girar {
    100% {
        transform: rotate(360deg);
    }
}

/* LOADING */
#btnBusca.loading {
    pointer-events: none;
}

#btnBusca.loading .texto-botao {
    display: none;
}

#btnBusca.loading .loader {
    display: inline-block;
}

/* ERRO TEXTO */
.erro-msg {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    text-align: left;
    opacity: 0;
    transition: 0.2s;
}

.erro-msg.ativo {
    opacity: 1;
}

/* SHAKE */
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

.erro-animar {
    animation: shake 0.3s;
}

/* CAPTCHA */
.captcha-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

