/* Ingreso en celular (diseño móvil, 27/9/2026): la bienvenida (sólo la
   primera vez) y "Hola de nuevo". En escritorio lo nuevo está escondido y
   todo lo demás va dentro de < 720 px, salvo "¿No tienes cuenta? Crear
   cuenta": sin él, en el computador no había cómo llegar al registro. */
.lm-bienvenida, .lm-encabezado, .lm-etiqueta, .lm-seguro { display: none; }
.lm-sin-cuenta { margin: 10px 0 0; text-align: center; font-size: 0.82rem; color: #64748B; }
.lm-sin-cuenta a { color: #6D28D9; font-weight: 700; text-decoration: none; }
.lm-sin-cuenta a:hover { text-decoration: underline; }

@media (max-width: 719px) {
  body { background: #FFFFFF; }
  body.lm-con-bienvenida #login-box { display: none; }

  /* ---- Bienvenida ---- */
  .lm-bienvenida:not([hidden]) {
    display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh;
    padding: calc(22px + env(safe-area-inset-top)) 24px calc(42px + env(safe-area-inset-bottom));
    background: #FFFFFF; color: #0A1338; font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  }
  .lm-logo-chico { height: 24px; width: auto; align-self: flex-start; }
  .lm-composicion { position: relative; flex: 1; min-height: 260px; display: flex; align-items: center; justify-content: center; }
  .lm-cuadro { position: absolute; background: #16B8B2; }
  .lm-cuadro-1 { right: 26px; top: 40px; width: 34px; height: 34px; border-radius: 9px; }
  .lm-cuadro-2 { right: 70px; top: 58px; width: 16px; height: 16px; border-radius: 5px; opacity: .7; }
  .lm-cuadro-3 { right: 52px; top: 84px; width: 26px; height: 26px; border-radius: 7px; opacity: .85; }
  .lm-tarjeta {
    width: 280px; max-width: 86%; padding: 20px; border-radius: 22px; background: #0A1338; color: #FFFFFF;
    transform: rotate(-4deg); box-shadow: 0 24px 40px -18px rgba(10, 19, 56, .5); display: flex; flex-direction: column;
  }
  .lm-tarjeta-etiqueta { font-size: 13px; font-weight: 600; color: #B0BFDC; }
  .lm-tarjeta-monto { margin-top: 6px; font-size: 30px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
  .lm-tarjeta-duo { display: flex; gap: 18px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 12px; color: #B0BFDC; }
  .lm-tarjeta-duo > span { display: flex; flex-direction: column; gap: 2px; }
  .lm-tarjeta-duo b { color: #FFFFFF; font-size: 14px; font-variant-numeric: tabular-nums; }
  .lm-aviso {
    position: absolute; left: 8px; bottom: 36px; display: flex; align-items: center; gap: 10px; padding: 12px 14px;
    border-radius: 14px; background: #FFFFFF; border: 1px solid #DCE5F6; box-shadow: 0 12px 24px -12px rgba(10, 19, 56, .25);
    transform: rotate(2deg); font-size: 13px; font-weight: 700;
  }
  .lm-aviso-check { width: 28px; height: 28px; border-radius: 8px; background: #E7F8EF; color: #146C4E; display: flex; align-items: center; justify-content: center; }
  .lm-puntos { display: flex; gap: 6px; margin-bottom: 18px; }
  .lm-puntos span { width: 8px; height: 8px; border-radius: 3px; background: #DCE5F6; }
  .lm-puntos .lm-activo { width: 24px; background: #6D28D9; }
  .lm-bienvenida h1 { margin: 0; font-size: 30px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
  .lm-acento { color: #6D28D9; }
  .lm-bienvenida p { margin: 12px 0 28px; font-size: 16px; line-height: 1.5; color: #46629C; }
  .lm-acciones { display: flex; flex-direction: column; gap: 10px; }
  .lm-primario, .lm-secundario {
    height: 54px; border-radius: 14px; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center; text-decoration: none;
  }
  .lm-primario { border: 0; background: #6D28D9; color: #FFFFFF; }
  .lm-primario:active { background: #5B21B6; }
  .lm-secundario { border: 1.5px solid #DCE5F6; background: #FFFFFF; color: #0A1338; }

  /* ---- Ingreso ("Hola de nuevo") ---- */
  .auth-wrapper { display: block; min-height: 100vh; min-height: 100dvh; padding: 0; background: #FFFFFF; }
  .auth-blob, .auth-dots, .auth-header, .auth-field-icon { display: none !important; }
  .auth-card {
    width: 100%; max-width: none; min-height: 100vh; min-height: 100dvh; margin: 0; border: 0; border-radius: 0; box-shadow: none; background: #FFFFFF;
    padding: calc(22px + env(safe-area-inset-top)) 24px calc(42px + env(safe-area-inset-bottom));
    display: flex; flex-direction: column;
  }
  .auth-form { flex: 1; display: flex; flex-direction: column; gap: 18px; }
  .lm-encabezado { display: block; order: 0; }
  #login-aviso { order: 0; }
  .lm-volver {
    display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -6px 0 14px -10px;
    border: 0; border-radius: 12px; background: transparent; color: #0A1338; cursor: pointer;
  }
  .lm-volver:active { background: #F1ECFC; }
  .lm-logo { display: block; height: 28px; width: auto; }
  .lm-hola { margin: 40px 0 0; font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: #0A1338; }
  .lm-bajada { margin: 8px 0 10px; font-size: 16px; color: #46629C; }
  .auth-field { order: 1; position: relative; display: flex; flex-direction: column; gap: 6px; margin: 0; }
  .lm-etiqueta { display: block; font-size: 13px; font-weight: 600; color: #46629C; }
  .auth-field input {
    width: 100%; height: 52px; margin: 0; padding: 0 52px 0 16px; border: 1.5px solid #DCE5F6; border-radius: 12px;
    background: #FFFFFF; font: inherit; font-size: 16px; color: #0A1338;
  }
  .auth-field input:focus { outline: none; border-color: #7137E8; box-shadow: 0 0 0 4px #F1ECFC; }
  /* El ojo, centrado en su caja de 44 px (24/10/2026, el dueño: "el ojo de la contraseña está
     descuadrado"): sin align/justify quedaba pegado arriba a la izquierda, ~10 px fuera del centro. */
  .auth-field-toggle { position: absolute; top: auto; right: 4px; bottom: 4px; width: 44px; height: 44px; transform: none; color: #6B7688; align-items: center; justify-content: center; padding: 0; }
  .auth-forgot { order: 2; align-self: flex-end; margin: -8px 0 0; padding: 4px 0; font-size: 14px; font-weight: 600; color: #6D28D9; }
  .auth-submit { order: 3; margin: 6px 0 0; height: 54px; border-radius: 14px; background: #6D28D9; font-size: 16px; font-weight: 700; }
  .auth-error { order: 4; }
  .lm-sin-cuenta { order: 5; display: flex; justify-content: center; gap: 6px; margin: auto 0 0; font-size: 15px; color: #46629C; }
  .lm-sin-cuenta a { color: #6D28D9; font-weight: 700; text-decoration: none; }
  .lm-seguro { order: 6; display: flex; justify-content: center; align-items: center; gap: 6px; margin: 0; font-size: 12px; color: #6B7688; }
}
