@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* ===== RESET BÁSICO ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', Arial, sans-serif;
}

/* ===== BODY ===== */
body {
    background: linear-gradient(to bottom, #c5f1ff, #f7f7f7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    transition: all 0.3s ease;
}

/* ===== CABEÇALHO ===== */
.cabecalho {
    text-align: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.cabecalho h1 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.cabecalho p {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 8px;
    font-style: italic;
    transition: all 0.3s ease;
}

.cabecalho h2 {
    font-size: 16px;
    color: #34495e;
    transition: all 0.3s ease;
}

/* ===== CONTAINER ===== */
.container {
    background-color: #fff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 400px; /* padrão mobile */
    transition: all 0.3s ease;
}

/* ===== FORMULÁRIO ===== */
.formularios label {
    display: block;
    margin-bottom: 5px;
    color: #34495e;
    transition: all 0.3s ease;
}

.formularios input::placeholder {
    color: #95a5a6;
    opacity: 1;
    transition: color 0.3s ease;
}

.formularios input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    font-size: 14px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.formularios input:hover {
    box-shadow: 0 0 3px rgba(52, 152, 219, 0.3);
}

.formularios input:focus {
    outline: none;
    border: 1px solid #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

.formularios input:focus::placeholder {
    color: #b0bec5;
}

.formularios button {
    width: 100%;
    padding: 12px;
    background-color: #3498db;
    color: #fff;
    font-size: 16px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.formularios button:hover {
    background-color: #2980b9;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.formularios button:active {
    transform: scale(0.98);
    background-color: #2471a3;
}

/* Botão desabilitado (para validações futuras) */
.formularios button:disabled {
    background-color: #7f8c8d;
    cursor: not-allowed;
}

/* ===== LINHA ===== */
#linha {
    width: 80%;
    margin: 25px auto;
    border: 0;
    height: 1px;
    background-color: #ccc;
}

/* ===== RODAPÉ ===== */
.rodape {
    text-align: center;
    margin-top: 15px;
    color: #7f8c8d;
    font-size: 12px;
}

/* ===== MEDIA QUERIES ===== */

/* ===== MOBILE (padrão, 0-599px) ===== */
@media (max-width: 599px) {
    .cabecalho {
        margin-bottom: 30px;
    }

    .cabecalho h1 {
        font-size: 22px;
    }

    .cabecalho h2 {
        font-size: 16px;
    }

    .cabecalho p {
        font-size: 14px;
    }

    .container {
        max-width: 90%;
        padding: 20px;
    }
}

/* ===== TABLET (600px – 899px) ===== */
@media (min-width: 600px) and (max-width: 899px) {
    .cabecalho {
        margin-bottom: 40px;
    }

    .cabecalho h1 {
        font-size: 28px;
    }

    .cabecalho h2 {
        font-size: 18px;
    }

    .cabecalho p {
        font-size: 16px;
    }

    .container {
        max-width: 500px;
        padding: 25px;
    }

    .formularios input {
        width: 100%;
    }
}

/* ===== DESKTOP (900px+) ===== */
@media (min-width: 900px) {
    .cabecalho {
        margin-bottom: 50px;
    }

    .cabecalho h1 {
        font-size: 32px;
    }

    .cabecalho h2 {
        font-size: 20px;
    }

    .cabecalho p {
        font-size: 18px;
    }

    .container {
        max-width: 550px;
        padding: 30px;
    }
}
