/* ==========================================================================
   PÁGINA: LOGIN / REGISTRO / RECUPERAR
   Layout split: imagen de fondo + frase a la izquierda + formulario a la derecha
   En móvil: solo formulario sobre fondo sólido (imagen móvil llegará después)
   ========================================================================== */

.content {
  display: flex;
  transition: filter 0.3s ease, transform 0.3s ease;
  justify-content: center;
  align-items: flex-start;
  margin-top: 10rem;
  margin-bottom: 3rem;
  width: 100%;
}

/* ====== CONTENEDOR PRINCIPAL ======
   Móvil: caja simple con fondo sólido (imagen móvil llegará en otra entrega).
   Desktop ≥768px: grid 50/50 con imagen de fondo que abarca todo el contenedor. */
/* En móvil: caja simple */
.login-container {
  background: var(--tema-login-bg);
  border-radius: var(--radio-lg);
  width: 92%;
  margin: 0 auto;
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.1);
  border: .1rem solid #2A6A50;
  transition: background 0.4s ease;
  overflow: hidden;
  padding: 2rem 2.5rem;
  /* Imagen de fondo móvil */
  background-image: url("../../img/movil_claro.png");
  background-image: image-set(
    url("../../img/movil_claro.avif") type("image/avif"),
    url("../../img/movil_claro.webp") type("image/webp"),
    url("../../img/movil_claro.png") type("image/png")
  );
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

[data-tema="oscuro"] .login-container {
  border-color: rgba(201, 164, 76, 0.35);
  background-image: url("../../img/movil_oscuro.png");
  background-image: image-set(
    url("../../img/movil_oscuro.avif") type("image/avif"),
    url("../../img/movil_oscuro.webp") type("image/webp"),
    url("../../img/movil_oscuro.png") type("image/png")
  );
}

@media (min-width: 768px) {
  .login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 85%;
    max-width: 110rem;
    padding: 0;
    /* El alto lo dicta el contenido (columna derecha con el formulario).
       La imagen se ancla a la izquierda para que el pianista siempre se vea. */
    background-image: url("../../img/Formulario_claro.png");
    background-image: image-set(
      url("../../img/Formulario_claro.avif") type("image/avif"),
      url("../../img/Formulario_claro.webp") type("image/webp"),
      url("../../img/Formulario_claro.png") type("image/png")
    );
    background-size: 100% 100%;
    background-position: center center;
    background-repeat: no-repeat;
  }
  [data-tema="oscuro"] .login-container {
    background-image: url("../../img/Formulario_oscuro.png");
    background-image: image-set(
      url("../../img/Formulario_oscuro.avif") type("image/avif"),
      url("../../img/Formulario_oscuro.webp") type("image/webp"),
      url("../../img/Formulario_oscuro.png") type("image/png")
    );
  }
}

/* ====== FRASE MOTIVADORA (lado izquierdo en desktop) ======
   Se oculta en móvil para no empujar el formulario hacia abajo. */
.login-frase {
  display: none;
}

@media (min-width: 768px) {
  .login-frase {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
  }
  .login-frase-titulo {
    font-family: var(--fuente-titulos);
    font-size: 4.2rem;
    line-height: 1.15;
    font-weight: 500;
    margin: 0;
    max-width: 38rem;
    text-align: left;
    /* Opción A — Sombra (halo) para legibilidad sobre la imagen */
    color: #000;
    text-shadow:
      0 .2rem 1.6rem rgba(255, 255, 255, .95),
      0 0 1rem rgba(255, 255, 255, .75),
      0 0 .4rem rgba(255, 255, 255, .6);
  }
  [data-tema="oscuro"] .login-frase-titulo {
    color: #fff;
    text-shadow:
      0 .2rem 1.6rem rgba(0, 0, 0, .85),
      0 0 1rem rgba(0, 0, 0, .65),
      0 0 .4rem rgba(0, 0, 0, .5);
  }
  .login-frase-titulo em {
    font-style: italic;
    /* sin acento de color — usa el mismo que el resto para no competir con
       las notas musicales doradas del fondo */
  }
}

/* ====== FORMULARIO (lado derecho en desktop) ====== */
.formulario {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}
.login-form {
  width: 100%;
}
@media (min-width: 768px) {
  .formulario {
    padding: 3rem 3rem 3rem 1rem;
  }
  .login-form {
    width: 100%;
    max-width: 42rem;
  }
}

.login-form h2 {
  text-align: center;
  margin: 1rem 0 2.8rem;   /* .8rem propios + 2rem que antes daba el padding-bottom global */
  font-family: var(--fuente-titulos);
  font-size: 3rem;
  font-weight: 500;
}

/* ====== DIVISOR DECORATIVO CON ROMBO ======
   Va debajo del título del formulario. */
.divisor-rombo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  margin: 0 0 2rem;
}
.divisor-rombo::before,
.divisor-rombo::after {
  content: "";
  flex: 1;
  max-width: 6rem;
  height: .1rem;
  background: linear-gradient(90deg, transparent, var(--color-amarillo), transparent);
}
.divisor-rombo .rombo {
  width: .8rem;
  height: .8rem;
  background: var(--color-amarillo);
  transform: rotate(45deg);
}

/* ====== RECUPERAR CONTRASEÑA ====== */
/* min-height igual al de login para que la imagen de fondo
   se vea igual en ambas páginas */
.recuperar-container {
  min-height: 52rem;
}

/* En desktop el alto lo dicta la columna del formulario —
   forzamos que sea al menos igual que login */
@media (min-width: 768px) {
  .recuperar-container .formulario {
    min-height: 52rem;
  }
}

.recuperar-desc {
  color: var(--tema-texto);
  font-size: 1.5rem;
  text-align: center;
  line-height: 1.5;
  margin-bottom: 3rem;
}
.recuperar-nota {
  font-size: 1.3rem;
  color: var(--tema-texto-suave);
  margin-top: 1rem;
}
.recuperar-icono {
  font-size: 5rem;
  text-align: center;
  margin-bottom: 1rem;
}
.recuperar-exito {
  text-align: center;
}
