/* Estilos Generales con Fondo de Imagen */
body {
  margin: 0;
  padding: 10px 0;
  box-sizing: border-box;
  /* Fondo con overlay y ruta de imagen corregida */
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                    url('../img/naturaleza.jpg'); 
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  align-items: center; 
  justify-content: center;
  min-height: 100vh;

  /* --- ESTO FUERZA LA BARRA DE SCROLL DESDE EL INICIO --- */
  overflow-y: scroll; 
}

/* Contenedor del Formulario - Más chico y centrado */
.form-container {
  max-width: 360px;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  padding: 1.5rem 2.3rem;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  text-align: center;
  margin: auto;
}

/* ... Resto de tu código se mantiene igual ... */

.form-container img {
  width: 65px;
  height: auto;
  margin-bottom: 0.3rem;
}

.form-container h2 {
  color: #2e7d32;
  margin-top: 0;
  margin-bottom: 2rem; 
  font-size: 1.7rem;
  font-weight: 700;
}

.form-container form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem; 
}

.form-container input {
  padding: 0.8rem;
  font-size: 0.95rem;
  border: 1px solid #a5d6a7;
  border-radius: 10px;
  outline: none;
  transition: border 0.3s ease;
}

.form-container input:focus {
  border: 2px solid #2e7d32;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #555;
  text-align: left;
  margin: 0.1rem 0;
}

.btn-submit {
  background-color: #2e7d32;
  color: white;
  font-weight: bold;
  padding: 0.85rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  width: 100%;
  margin-top: 0.85rem;
  transition: background 0.3s ease;
}

.btn-submit:hover {
  background-color: #1b5e20;
}

.form-links {
  font-size: 0.9rem;
  margin-top: 0.8rem;
  color: #444;
}

.form-links a {
  color: #2e7d32;
  text-decoration: none;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.form-links a:hover {
  text-decoration: underline;
}

.forgot-password-link {
  display: block;
  margin: 0.2rem 0 0.8rem 0;
}

/* Estilo para el selector de sexo */
.form-container select {
  padding: 0.8rem;
  font-size: 0.95rem;
  border: 1px solid #a5d6a7;
  border-radius: 10px;
  outline: none;
  background-color: white;
  color: #333;
  width: 100%;
  cursor: pointer;
  appearance: none; /* Quita la flecha por defecto */
  -webkit-appearance: none;
  -moz-appearance: none;
  /* Agrega una flecha verde personalizada */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232e7d32' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  transition: border 0.3s ease;
}

/* Mejora el color del texto y fondo de las opciones desplegadas */
.form-container select option {
    color:#333; /* Texto más oscuro para que no se vea gris */
    background-color: #ffffff; /* Fondo blanco limpio */
    padding: 10px;
}

.form-container select option:checked {
    background-color: #e8f5e9; /* Verde muy clarito para la opción elegida */
    color: #2e7d32; /* Texto verde oscuro */
}

/* Asegura que el texto del select no se vea gris una vez seleccionado */
.form-container select:not(:invalid) {
    color: rgb(0, 0, 0);
}