@font-face {
    font-family: 'Aller Regular';
    src: url('../fonts/Aller/Aller_Std_Rg.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Aller Display';
    src: url('../fonts/Aller/AllerDisplay.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
/* Fondo general */
.section-bg {
  background-color: #AAD159;
  min-height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

/* Contenedor principal del formulario */
.login-container {
  background-color: #fff;
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
}

/* Título */
.login-container h2 {
  text-align: center;
  color: #002060;
  margin-bottom: 25px;
  font-size: 1.8em;
}

/* Estilo de los labels */
.login-container label {
  display: block;
  margin-bottom: 8px;
  color: #002060;
  font-weight: 600;
}

/* Contenedor del input (para meter el icono dentro) */
.input-container {
  position: relative;
  margin-bottom: 20px;
}

/* Inputs */
.login-container input[type="email"],
.login-container input[type="password"],
.login-container input[type="text"] {
  width: 100%;
  padding: 12px 40px 12px 15px; /* espacio para el ícono a la derecha */
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: 0.3s;
  font-size: 1em;
  box-sizing: border-box;
}

.login-container input:focus {
  border-color: #AAD159;
  outline: none;
  box-shadow: 0 0 5px #AAD159;
}

/* Icono mostrar/ocultar contraseña */
#toggle-icon {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 22px;
  cursor: pointer;
  opacity: 0.7;
  transition: 0.3s;
}

#toggle-icon:hover {
  opacity: 1;
}

/* Botón */
.login-container button {
  width: 100%;
  padding: 12px;
  background-color: #AAD159;
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: bold;
  font-size: 1em;
  cursor: pointer;
  transition: 0.3s;
}

.login-container button:hover {
  background-color: #95b24c;
}

/* Google reCAPTCHA centrado y responsive */
.g-recaptcha {
  display: flex;
  justify-content: center;
  padding: 10px 0;
  transform-origin: 0 0;
}

@media screen and (max-width: 768px) and (orientation: portrait) {
  .login-container {
    margin: 60px 20px;
    padding: 30px 20px;
  }

  .g-recaptcha {
    width: 100vw;
    transform: scale(0.85);
  }

  #toggle-icon {
    width: 20px;
  }
}

@media screen and (max-width: 400px) {
  .g-recaptcha {
    width: 100vw;
    transform: scale(0.75);
  }
}
