/* Estilos generales del body */
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to right, #f1f5f9, #e2e8f0);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 20px;
}

/* Estilo del contenedor principal */
.registro-container {
  width: 100%;
  max-width: 480px;
  background-color: #ffffff;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  text-align: center;
}

.logo {
    display: block;
    max-width: 120px;
    margin: 0 auto 20px auto;
}

/* Título */
h2 {
  color: #1e293b;
  margin-bottom: 20px;
  font-size: 28px;
}

/* Mensaje de alerta */
.mensaje {
  background-color: #e0f2fe;
  color: #0369a1;
  padding: 12px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(3, 105, 161, 0.1);
}

/* Formulario */
form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Etiquetas */
label {
  text-align: left;
  margin-bottom: 6px;
  font-weight: 600;
  color: #334155;
}

/* Inputs y select */
input[type="text"],
input[type="date"],
select {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 20px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
  color: #1e293b;
  box-sizing: border-box;
}

/* Focus */
input[type="text"]:focus,
input[type="date"]:focus,
select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* Botón */
button[type="submit"] {
  width: 100%;
  padding: 12px;
  background-color: #667eea;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Hover botón */
button[type="submit"]:hover {
  background-color: #5a67d8;
  transform: translateY(-1px);
}

/* Estilo general de mensaje */
.mensaje {
  padding: 12px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Mensaje de éxito */
.mensaje.exito {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #10b981;
}

/* Mensaje de error */
.mensaje.error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #f87171;
}

/* Mensaje de advertencia */
.mensaje.advertencia {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #facc15;
}

.botones-container {
    text-align: center;
    margin-top: 20px;
}

.volver-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #6c757d;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.volver-btn:hover {
    background-color: #5a6268;
}