/*
 * llavemx.css
 * Estilos exclusivos para la landing de autenticación Llave MX.
 * Todos los selectores están prefijados con .lmx- para evitar
 * conflictos con los estilos propios de cada plataforma.
 *
 * Variables de color:
 *   Fondo panel izquierdo : #781839
 *   Botón primario        : #611232
 *   Header / Footer       : #4A0C26
 *   Hover botón           : #4d0e28
 */

/* ── Reset mínimo (solo dentro del contenedor) ── */
.lmx-wrapper *,
.lmx-wrapper *::before,
.lmx-wrapper *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Contenedor raíz ── */
.lmx-wrapper {
  font-family: "Noto Sans", sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Contenedor principal de dos paneles ── */
.lmx-page {
  display: flex;
  flex: 1;
}

/* ────────────────────────────────────────────
   Panel izquierdo: nombre del sistema
   y logo de la institución
──────────────────────────────────────────── */
.lmx-left {
  flex: 1;
  background-color: #781839;
  background-image: url("../img/fondo-llave.svg");
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 60px;
  min-height: 100vh;
}

.lmx-left__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  max-width: 380px;
  width: 100%;
}

/* Título del sistema (reemplazar texto) */
.lmx-left__title {
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  font-family: "Noto Sans", sans-serif;
}

/* Tarjeta blanca con el logo de la institución */
.lmx-inst-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
}

/* Logo de la institución (reemplazar src) */
.lmx-inst-card img {
  max-height: 70px;
  max-width: 240px;
  object-fit: contain;
}

/* ────────────────────────────────────────────
   Panel derecho: tarjeta de acceso Llave MX
──────────────────────────────────────────── */
.lmx-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f9f9f9;
  background-image: url("../img/fondo-llave.svg");
  background-size: cover;
  background-position: center;
  padding: 60px 40px;
  min-height: 100vh;
}

.lmx-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  padding: 24px;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Logo Llave MX */
.lmx-card__logo {
  height: 56px;
  margin-bottom: 32px;
}

/* Texto de términos y condiciones */
.lmx-card__terminos {
  font-size: 13px;
  color: #434343;
  line-height: 1.6;
  width: 100%;
  margin-bottom: 40px;
  text-align: left;
  font-family: "Noto Sans", sans-serif;
}

.lmx-card__terminos a {
  color: #611232;
  text-decoration: none;
}

.lmx-card__terminos a:hover {
  text-decoration: underline;
}

/* ── Botones ── */
.lmx-btns {
  display: flex;
  gap: 24px;
  width: 100%;
}

.lmx-btn-outline {
  flex: 1;
  background: #fff;
  color: #611232;
  border: 1.5px solid #611232;
  border-radius: 6px;
  padding: 10px;
  font-size: 15px;
  font-weight: 500;
  font-family: "Noto Sans", sans-serif;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lmx-btn-solid {
  flex: 1;
  background: #611232;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px;
  font-size: 15px;
  font-weight: 500;
  font-family: "Noto Sans", sans-serif;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lmx-btn-solid:hover {
  background: #4d0e28;
}

/* ── Estilos exclusivos para la versión doble (selector de método) ── */

/* Separador y opciones de radio */
.lmx-selector {
  width: 100%;
}

.lmx-selector__titulo {
  font-weight: 500;
  text-align: center;
  font-size: 16px;
  margin-bottom: 24px;
  color: #161a1d;
  font-family: "Noto Sans", sans-serif;
}

.lmx-selector__opciones {
  text-align: center;
}

.lmx-selector__opciones label {
  font-size: 16px;
  color: #161a1d;
  cursor: pointer;
  font-family: "Noto Sans", sans-serif;
}

.lmx-selector__opciones input[type="radio"] {
  width: 21px;
  height: 21px;
  accent-color: #611232;
  vertical-align: bottom;
  cursor: pointer;
}

/* Separador vertical entre opciones */
.lmx-separador {
  display: inline-block;
  width: 1px;
  height: 18px;
  background-color: #aaaaaa;
  vertical-align: middle;
  margin: 0 14px;
}

.lmx-divider {
  width: 100%;
  border: none;
  border-top: 1px solid #dddddd;
  margin: 24px 0;
}

/* Panel usuario y contraseña */
.lmx-form label {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: #161a1d;
  margin-bottom: 4px;
  font-family: "Noto Sans", sans-serif;
}

.lmx-form input[type="text"],
.lmx-form input[type="password"] {
  display: block;
  width: 100%;
  height: 40px;
  border: 1px solid #dddddd;
  border-radius: 8px;
  padding: 0 42px 0 14px;
  font-size: 16px;
  font-family: "Noto Sans", sans-serif;
  color: #161a1d;
  margin-bottom: 24px;
  outline: none;
}

.lmx-form input[type="text"]:focus,
.lmx-form input[type="password"]:focus {
  border-color: #611232;
}

/* Contenedor del input con ícono de ojo */
.lmx-input-wrap {
  position: relative;
}

.lmx-input-wrap input {
  margin-bottom: 2px;
}

.lmx-toggle-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #888;
  display: flex;
  align-items: center;
}

.lmx-recuperar {
  display: inline-block;
  color: #611232;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 24px;
  font-family: "Noto Sans", sans-serif;
}

.lmx-form .lmx-card__terminos {
  margin-bottom: 24px;
}

/* Botón iniciar sesión en panel usuario (ancho completo) */
#lmx-btn-entrar {
  display: block;
  width: 100%;
}

/* Estado deshabilitado */
.lmx-d-none {
  display: none !important;
}

.lmx-btn-disabled {
  background-color: #dddddd !important;
  color: #767676 !important;
  pointer-events: none;
}

/* ────────────────────────────────────────────
   Responsivo móvil
──────────────────────────────────────────── */
@media (max-width: 960px) {
  .lmx-page {
    flex-direction: column;
  }

  .lmx-left {
    min-height: auto;
    padding: 40px 24px 48px;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .lmx-left__content {
    gap: 28px;
    max-width: 100%;
  }

  .lmx-left__title {
    font-size: 28px;
  }

  .lmx-inst-card {
    min-width: unset;
    width: 100%;
    max-width: 280px;
  }

  .lmx-right {
    min-height: auto;
    padding: 48px 24px 64px;
  }

  .lmx-card {
    max-width: 100%;
  }

  .lmx-btns {
    flex-direction: column;
    gap: 16px;
  }

  .lmx-btn-outline,
  .lmx-btn-solid {
    width: 100%;
  }
}

@media (max-width: 400px) {
  .lmx-left__title {
    font-size: 24px;
  }
}
