/* 1. RESET E BASE: Limpando o visual padrão */
* {
    box-sizing: border-box; /* Garante que padding não aumente o tamanho dos elementos */
}

body {
    background-color: #1e135a; /* Cinza azulado suave */
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    margin: 0;
}

h1 {
    color: #2180df;
    text-align: center;
    margin-bottom: 30px;
}

/* 2. O CARD: Transformando o formulário em um painel */
form {
    background: rgb(214, 210, 245);
    max-width: 600px;
    width: 100%;
    padding: 30px;
    border-radius: 15px; /* Bordas arredondadas modernas */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); /* Sombra suave para dar profundidade */
}

fieldset {
    border: none; /* Removemos a borda padrão feia do fieldset */
    padding: 0;
}

legend {
    font-size: 1.5rem;
    color: #237dd8;
    margin-bottom: 20px;
}

/* 3. INPUTS DE TEXTO: Espaçamento e foco */
input[type="text"], 
input[type="email"], 
input[type="password"], 
input[type="date"], 
textarea {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    margin-bottom: 20px;
    border: 1px solid #473a3a;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s; 
}

input:focus, textarea:focus {
    border-color: #3498db; 
}


input[type="checkbox"], input[type="radio"] {
    margin-right: 10px;
    cursor: pointer;
}

label {
    cursor: pointer;
    color: #555;
}


input[type="submit"] {
    background-color: #014674;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    transition: background 0.3s;
}

input[type="submit"]:hover {
    background-color: #3598da;
}

textarea {
    height: 100px;
    resize: vertical;
}

button {
    background-color: rgb(202, 202, 236);
    color: black;
    border: black;
    width: 150px;
    height: 30px;
    border: 20px;
    border-radius: 15px;
    cursor: pointer;
}

button:hover {
    background-color: rgb(126, 126, 168);
    color: white;
    border: white;
}
