*{
  box-sizing:border-box;
}

html, body{
  width:100%;
  height:100%;
  margin:0;
  padding:0;
  overflow:hidden;
}

body.lm-body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:linear-gradient(135deg, #0f172a 0%, #111827 45%, #0b1120 100%);
  color:#e5e7eb;
}

/* CONTENEDOR GENERAL */
.lm-wrap{
  position:relative;
  width:100%;
  height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  overflow:hidden;
}

/* FONDO ANIMADO */
.lm-bg{
  position:absolute;
  inset:-10%;
  background:
    radial-gradient(circle at 20% 20%, rgba(59,130,246,0.18), transparent 30%),
    radial-gradient(circle at 80% 30%, rgba(16,185,129,0.14), transparent 28%),
    radial-gradient(circle at 50% 80%, rgba(99,102,241,0.12), transparent 30%),
    linear-gradient(135deg, #0b1120 0%, #111827 50%, #0f172a 100%);
  animation: lmBgFloat 14s ease-in-out infinite alternate;
  pointer-events:none;
}

/* CAPA DE MALLA TECNOLOGICA */
.lm-bg::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(rgba(59,130,246,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.08) 1px, transparent 1px);
  background-size:40px 40px;
  opacity:.35;
  animation: lmGridMove 18s linear infinite;
}

/* CAPA DE BRILLO EN MOVIMIENTO */
.lm-bg::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 30% 50%, rgba(34,211,238,0.14), transparent 18%),
    radial-gradient(circle at 70% 40%, rgba(96,165,250,0.12), transparent 20%),
    radial-gradient(circle at 50% 70%, rgba(52,211,153,0.10), transparent 18%);
  filter:blur(18px);
  animation: lmGlowMove 10s ease-in-out infinite alternate;
}

/* TARJETA LOGIN */
.lm-card{
  position:relative;
  z-index:1;
  width:100%;
  max-width:420px;
  padding:28px 24px;
  border-radius:18px;
  background:rgba(15,23,42,0.82);
  border:1px solid rgba(255,255,255,0.08);
  box-shadow:0 20px 50px rgba(0,0,0,0.45);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  overflow:hidden;
}

/* BRILLO SUPERIOR */
.lm-card::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(96,165,250,0.8), transparent);
}

/* LOGO */
.lm-top-logo{
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 0 18px;
}

.lm-top-logo img{
  display:block;
  max-width:260px;
  max-height:95px;
  width:auto;
  height:auto;
  object-fit:contain;
  filter:drop-shadow(0 0 12px rgba(59,130,246,0.18));
}

/* INICIAL SI NO HAY LOGO */
.lm-top-initial{
  width:58px;
  height:58px;
  margin:0 auto 18px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  font-weight:800;
  color:#07111f;
  background:linear-gradient(135deg, #60a5fa 0%, #34d399 100%);
}

/* TITULO */
.lm-title{
  text-align:center;
  margin-bottom:18px;
}

.lm-title h1{
  margin:0;
  font-size:24px;
  line-height:1.2;
  font-weight:700;
  color:#f8fafc;
}

.lm-title p{
  margin:8px 0 0;
  font-size:14px;
  color:#94a3b8;
  line-height:1.4;
}

/* MENSAJE ERROR */
.lm-error{
  margin-bottom:14px;
  padding:12px 14px;
  border-radius:12px;
  background:rgba(127,29,29,0.85);
  border:1px solid rgba(248,113,113,0.22);
  color:#fee2e2;
  font-size:13px;
  line-height:1.4;
}

/* CAMPOS */
.lm-field{
  margin-bottom:14px;
}

.lm-field label{
  display:block;
  margin-bottom:7px;
  font-size:13px;
  font-weight:600;
  color:#cbd5e1;
}

.lm-field input[type="text"],
.lm-field input[type="email"],
.lm-field input[type="password"]{
  width:100%;
  height:46px;
  padding:0 14px;
  border-radius:12px;
  border:1px solid #243244;
  background:#0b1220;
  color:#f8fafc;
  font-size:14px;
  outline:none;
  transition:border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.lm-field input[type="text"]::placeholder,
.lm-field input[type="email"]::placeholder,
.lm-field input[type="password"]::placeholder{
  color:#64748b;
}

.lm-field input[type="text"]:focus,
.lm-field input[type="email"]:focus,
.lm-field input[type="password"]:focus{
  border-color:#3b82f6;
  box-shadow:0 0 0 3px rgba(59,130,246,0.18);
  background:#0a1324;
}

/* OPCIONES */
.lm-form-options{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  margin:6px 0 14px;
}

.lm-remember{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  color:#cbd5e1;
  cursor:pointer;
}

.lm-remember input[type="checkbox"]{
  accent-color:#3b82f6;
}

/* TURNSTILE */
.lm-turnstile-wrap{
  margin:10px 0 16px;
}

/* BOTON */
.lm-submit-wrap input[type="submit"]{
  width:100%;
  height:46px;
  border:0;
  border-radius:12px;
  background:linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
  color:#ffffff;
  font-size:15px;
  font-weight:700;
  cursor:pointer;
  transition:transform .15s ease, filter .2s ease, box-shadow .2s ease;
  box-shadow:0 10px 25px rgba(37,99,235,0.28);
}

.lm-submit-wrap input[type="submit"]:hover{
  filter:brightness(1.05);
  box-shadow:0 12px 28px rgba(37,99,235,0.34);
}

.lm-submit-wrap input[type="submit"]:active{
  transform:scale(0.99);
}

/* LINKS */
.lm-links{
  margin-top:16px;
  text-align:center;
}

.lm-links a{
  color:#93c5fd;
  text-decoration:none;
  font-size:13px;
}

.lm-links a:hover{
  text-decoration:underline;
}

/* WORDPRESS FORM */
.lm-form form{
  margin:0;
}

.lm-form p{
  margin:0 0 14px;
}

.lm-form p label{
  display:block;
  margin-bottom:7px;
  font-size:13px;
  font-weight:600;
  color:#cbd5e1;
}

.lm-form input[type="text"],
.lm-form input[type="email"],
.lm-form input[type="password"]{
  width:100%;
  height:46px;
  padding:0 14px;
  border-radius:12px;
  border:1px solid #243244;
  background:#0b1220;
  color:#f8fafc;
  font-size:14px;
  outline:none;
  transition:border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.lm-form input[type="text"]:focus,
.lm-form input[type="email"]:focus,
.lm-form input[type="password"]:focus{
  border-color:#3b82f6;
  box-shadow:0 0 0 3px rgba(59,130,246,0.18);
  background:#0a1324;
}

.lm-form .forgetmenot{
  margin:6px 0 14px;
}

.lm-form .forgetmenot label{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  font-weight:500;
  color:#cbd5e1;
}

.lm-form input[type="checkbox"]{
  accent-color:#3b82f6;
}

.lm-form input[type="submit"]{
  width:100%;
  height:46px;
  border:0;
  border-radius:12px;
  background:linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
  color:#ffffff;
  font-size:15px;
  font-weight:700;
  cursor:pointer;
  transition:transform .15s ease, filter .2s ease, box-shadow .2s ease;
  box-shadow:0 10px 25px rgba(37,99,235,0.28);
}

.lm-form input[type="submit"]:hover{
  filter:brightness(1.05);
  box-shadow:0 12px 28px rgba(37,99,235,0.34);
}

/* ANIMACIONES */
@keyframes lmBgFloat{
  0%{
    transform:translate3d(0,0,0) scale(1);
  }
  100%{
    transform:translate3d(-20px, -12px, 0) scale(1.04);
  }
}

@keyframes lmGridMove{
  0%{
    transform:translate3d(0,0,0);
  }
  100%{
    transform:translate3d(-40px, -40px, 0);
  }
}

@keyframes lmGlowMove{
  0%{
    transform:translate3d(0,0,0) scale(1);
    opacity:.8;
  }
  100%{
    transform:translate3d(18px,-10px,0) scale(1.08);
    opacity:1;
  }
}

/* RESPONSIVE */
@media (max-width:480px){
  .lm-wrap{
    padding:14px;
  }

  .lm-card{
    max-width:100%;
    padding:22px 16px;
    border-radius:16px;
  }

  .lm-top-logo img{
    max-width:220px;
    max-height:80px;
  }

  .lm-title h1{
    font-size:22px;
  }

  .lm-title p{
    font-size:13px;
  }
}