/* forms.css */

/* Contenedor general del formulario */
form {
  max-width: 400px;
  margin: 30px auto;
  padding: 20px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: Arial, sans-serif;
}

/* Título del formulario */
form h1 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.6em;
  color: #333;
}

/* Etiquetas */
form label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  color: #444;
}

/* Campos de texto */
form input[type="text"],
form input[type="email"],
form input[type="password"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
  box-sizing: border-box;
}

/* Botón de envío */
form input[type="submit"] {
  width: 100%;
  padding: 12px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s ease;
}

form input[type="submit"]:hover {
  background: #555;
}

/* Mensajes de error o alertas */
.alert {
  color: #b30000;
  background: #ffe5e5;
  border: 1px solid #b30000;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 6px;
}
.error {
  color: #b30000;
  font-size: 0.9em;
  margin-top: 4px;
}
