/* Estilos gerais */
body { font-family: sans-serif; background-color: #f4f7f6; color: #333; margin: 0; }
main { max-width: 700px; margin: 2rem auto; padding: 2rem; background: #fff; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

/* Header bonito */
.main-header { background-color: #0056b3; color: white; padding: 20px; text-align: center; display: flex; align-items: center; justify-content: center; gap: 20px; }
.main-header h1 { margin: 0; font-size: 1.8rem; }
.main-header h2 { margin: 0; font-weight: 300; font-size: 1.2rem; }

/* Formulário */
form fieldset { border: 1px solid #ccc; border-radius: 5px; padding: 20px; margin-bottom: 20px; }
form fieldset[disabled] { background-color: #e9ecef; opacity: 0.7; }
form legend { font-weight: bold; color: #0056b3; }
form label { display: block; margin-bottom: 5px; font-weight: 500; }
form input, form select { width: 100%; padding: 10px; margin-bottom: 15px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; }
form input[readonly] { background-color: #e9ecef; cursor: not-allowed; }
form button { background-color: #007bff; color: white; padding: 12px 20px; border: none; border-radius: 4px; cursor: pointer; font-size: 16px; width: 100%; }
form button[type="button"] { background-color: #28a745; }
form button:hover { opacity: 0.9; }

/* Área de Mensagens */
.message { padding: 15px; margin-bottom: 20px; border-radius: 5px; text-align: center; font-weight: bold; display: none; }
.message.success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.message.error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

.auto-fields {
    display: flex;
    gap: 1rem;
    margin-top: 1rem; /* Adiciona um espaço acima */
}

.auto-fields > div {
    flex: 1; /* Faz os dois campos dividirem o espaço igualmente */
}

