/* ===== RESET E ESTILOS GERAIS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f8f9fa;
    line-height: 1.6;
    color: #333;
    font-size: 18px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===== HEADER ===== */
header {
    background-color: #295bbe;
    padding: 25px 20px;
    text-align: center;
    color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* ===== MAIN ===== */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    justify-content: center;
}

/* ===== CONTAINER DE CADASTRO ===== */
.cadastro-container {
    background-color: #fff;
    padding: 40px 30px;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    box-shadow: 0px 5px 20px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 500px;
}

.cadastro-container h1 {
    color: #295bbe;
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
    font-weight: 600;
}

/* ===== GRUPOS DE FORMULÁRIO ===== */
.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 18px;
    color: #2c3e50;
}

/* ===== CAMPOS DE ENTRADA ===== */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    background-color: #fafafa;
    transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #295bbe;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(41, 91, 190, 0.1);
}

/* Placeholder styling */
input::placeholder {
    color: #999;
    font-size: 14px;
}

/* Estilo específico para campos com máscara */
input[type="tel"],
input[type="text"][name="cpf"] {
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

/* ===== BOTÃO ===== */
.botao {
    background-color: #295bbe;
    color: #fff;
    border: none;
    padding: 18px 30px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(41, 91, 190, 0.3);
    margin: 20px 0;
    width: 100%;
    font-weight: 600;
    transition: all 0.3s ease;
    display: block;
    text-align: center;
    text-decoration: none;
}

.botao:hover {
    background-color: #1e4a9e;
    transform: translateY(-2px);
    box-shadow: 0px 6px 20px rgba(41, 91, 190, 0.4);
}

.botao:active {
    transform: translateY(0);
}

/* ===== LOGO ===== */
.cuideMais {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto;
    display: block;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    object-fit: cover;
}

/* ===== TEXTO E LINKS ===== */
.cadastro-container p {
    text-align: center;
    margin-top: 25px;
    font-size: 17px;
    color: #555;
}

.cadastro-container a {
    color: #295bbe;
    text-decoration: none;
    font-weight: 600;
    font-size: 17px;
    transition: color 0.3s ease;
}

.cadastro-container a:hover {
    color: #1e4a9e;
    text-decoration: underline;
}

/* ===== TEXTO DE AJUDA ===== */
.ajuda-texto {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
    display: block;
    font-style: italic;
}

/* ===== RODAPÉ ===== */
#rodape {
    background-color: #295bbe;
    padding: 12px 20px;
    text-align: center;
    color: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.container-rodape {
    text-align: center;
    font-size: 14px;
}

/* ===== DESIGN RESPONSIVO ===== */
@media (max-width: 768px) {
    .cadastro-container {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .cadastro-container h1 {
        font-size: 28px;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="date"],
    select,
    textarea {
        padding: 14px;
        font-size: 16px;
    }
    
    .botao {
        padding: 16px;
        font-size: 17px;
    }
    
    .cuideMais {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }
    
    .cadastro-container {
        padding: 25px 15px;
    }
    
    .cadastro-container h1 {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="date"],
    select,
    textarea {
        padding: 12px;
        font-size: 16px;
    }
    
    .botao {
        padding: 15px;
        font-size: 16px;
    }
    
    .cadastro-container p {
        font-size: 16px;
    }
    
    header {
        padding: 20px 15px;
    }
}

/* Estilo para campos obrigatórios */
input:required {
    border-left: 3px solid #295bbe;
}

/* Estilo para campos válidos/inválidos */
input:valid {
    border-color: #28a745;
}

input:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #dc3545;
}