/* ==========================================================================
   MODERN LIS 3D AUTHENTICATION THEME
   STEADY LAB FOREGROUND + FULLY DYNAMIC CENTRAL DNA HOLOGRAM & MOLECULES
   ========================================================================== */

:root {
  --lis-primary: #1565c0;
  --lis-primary-dark: #0d47a1;
  --lis-primary-light: #42a5f5;
  --lis-cyan: #00ffff;
  --lis-sky: #38bdf8;
  --lis-indigo: #6366f1;
  --lis-bg-light: #f1f5f9;
  --lis-card-bg: #ffffff;
  --lis-text-main: #0f172a;
  --lis-text-muted: #64748b;
  --lis-border: #e2e8f0;
  --lis-radius: 16px;
}

/* Reset & Base Body */
html, body.lis-auth-body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--lis-bg-light);
  color: var(--lis-text-main);
  overflow-x: hidden;
}

.lis-auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
}

/* Contenedor Principal Split-Screen */
.lis-auth-container {
  width: 100%;
  max-width: 1120px;
  min-height: 620px;
  background: var(--lis-card-bg);
  border-radius: var(--lis-radius);
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.12), 0 0 1px 1px rgba(15, 23, 42, 0.05);
  display: flex;
  overflow: hidden;
  position: relative;
}

/* ==========================================================================
   LADO IZQUIERDO: Escena 3D con ADN Central y Moléculas Vivas
   ========================================================================== */
.lis-brand-pane {
  flex: 1.18;
  position: relative;
  background-color: #070d1e;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lis-3d-scene {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  perspective: 1200px;
  overflow: hidden;
}

/* 1. Capa Base: Imagen del Laboratorio y Tubos de Ensayo (Firmes y Estáticos) */
.lis-3d-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.96) contrast(1.05);
  transform: scale(1.02);
  z-index: 1;
}

/* 2. Rayo Láser / Proyector Holográfico Central */
.lis-holo-beam {
  position: absolute;
  top: 2%;
  left: 50%;
  transform: translateX(-50%);
  width: 170px;
  height: 80%;
  background: linear-gradient(180deg, 
    rgba(0, 255, 255, 0.3) 0%, 
    rgba(56, 189, 248, 0.15) 40%, 
    rgba(0, 255, 255, 0.25) 85%, 
    transparent 100%);
  filter: blur(14px);
  z-index: 2;
  pointer-events: none;
  animation: lisBeamPulse 5s ease-in-out infinite alternate;
}

.lis-holo-emitter-top {
  position: absolute;
  top: 1%;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 255, 255, 0.9) 0%, rgba(56, 189, 248, 0.4) 60%, transparent 80%);
  filter: blur(8px);
  z-index: 3;
  animation: lisEmitterPulse 3s ease-in-out infinite alternate;
}

.lis-holo-emitter-bottom {
  position: absolute;
  bottom: 16%;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 35px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 255, 255, 0.8) 0%, rgba(21, 101, 192, 0.3) 60%, transparent 80%);
  filter: blur(10px);
  z-index: 3;
  animation: lisEmitterPulse 3.5s ease-in-out infinite alternate;
}

/* 3. Anillos de Escaneo Vertical (Suben y Bajan por el ADN) */
.lis-scan-ring {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(0, 255, 255, 0.85);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.9), inset 0 0 10px rgba(56, 189, 248, 0.6);
  z-index: 4;
  pointer-events: none;
}

.lis-scan-ring.ring-1 {
  animation: lisScanMove1 4.5s ease-in-out infinite;
}

.lis-scan-ring.ring-2 {
  animation: lisScanMove2 6s ease-in-out infinite 1.5s;
}

.lis-scan-ring.ring-3 {
  animation: lisScanMove3 5s ease-in-out infinite 2.5s;
}

/* 4. HÉLICE DE ADN CENTRAL 3D VIVA (Rotación y Ondulación Fluida) */
.lis-center-dna-container {
  position: absolute;
  top: 11%;
  left: 50%;
  transform: translateX(-50%);
  width: 135px;
  height: 68%;
  z-index: 5;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lisDnaCoreFloat 8s ease-in-out infinite alternate;
}

.lis-live-dna-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 16px rgba(0, 255, 255, 0.85));
}

.dna-helical-strand.strand-left {
  animation: lisHelicalMorphA 4s ease-in-out infinite alternate;
}

.dna-helical-strand.strand-right {
  animation: lisHelicalMorphB 4s ease-in-out infinite alternate;
}

.dna-rungs line {
  animation: lisRungsGlow 2.5s ease-in-out infinite alternate;
}

.energy-node {
  animation: lisNodeEnergy 2s ease-in-out infinite alternate;
}

.energy-node.n1 { animation-delay: 0s; }
.energy-node.n2 { animation-delay: 0.5s; }
.energy-node.n3 { animation-delay: 1s; }
.energy-node.n4 { animation-delay: 1.5s; }

/* 5. Moléculas Holográficas 3D Orbitando (Flotando libremente) */
.lis-holo-cluster {
  position: absolute;
  z-index: 6;
  pointer-events: none;
}

.cluster-top-left {
  top: 15%;
  left: 12%;
  animation: lisClusterDrift1 12s ease-in-out infinite alternate;
}

.cluster-top-right {
  top: 14%;
  right: 14%;
  animation: lisClusterDrift2 15s ease-in-out infinite alternate;
}

.cluster-bottom-right {
  bottom: 22%;
  right: 15%;
  animation: lisClusterDrift3 11s ease-in-out infinite alternate;
}

.holo-core-atom {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff, #00ffff);
  box-shadow: 0 0 16px rgba(0, 255, 255, 0.95);
  position: relative;
}

.holo-core-atom.small {
  width: 12px;
  height: 12px;
}

.holo-orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1.5px solid rgba(56, 189, 248, 0.65);
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
  pointer-events: none;
}

.holo-orbit-ring.ring-a {
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  transform: rotateX(65deg) rotateY(20deg);
  animation: lisOrbitSpinA 6s linear infinite;
}

.holo-orbit-ring.ring-b {
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  transform: rotateX(25deg) rotateY(65deg);
  animation: lisOrbitSpinB 8s linear infinite;
}

.holo-electron {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px #00ffff;
  top: 50%;
  left: 50%;
}

.holo-electron.e1 {
  animation: lisElectronPath1 4s linear infinite;
}

.holo-electron.e2 {
  animation: lisElectronPath2 5.5s linear infinite;
}

/* 6. Bio-Partículas y Células Ascendentes */
.lis-energy-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 7;
  pointer-events: none;
}

.holo-sparkle {
  position: absolute;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px #00ffff, 0 0 18px rgba(56, 189, 248, 0.8);
}

.holo-sparkle.s1 { width: 5px; height: 5px; left: 48%; bottom: 20%; animation: lisAscend 7s ease-in infinite; }
.holo-sparkle.s2 { width: 7px; height: 7px; left: 52%; bottom: 25%; animation: lisAscend 9s ease-in infinite 1.5s; }
.holo-sparkle.s3 { width: 4px; height: 4px; left: 45%; bottom: 30%; animation: lisAscend 6s ease-in infinite 3s; }
.holo-sparkle.s4 { width: 6px; height: 6px; left: 55%; bottom: 22%; animation: lisAscend 8s ease-in infinite 2s; }
.holo-sparkle.s5 { width: 8px; height: 8px; left: 25%; bottom: 35%; animation: lisAscend 11s ease-in infinite 0.5s; }
.holo-sparkle.s6 { width: 5px; height: 5px; left: 75%; bottom: 40%; animation: lisAscend 10s ease-in infinite 2.5s; }
.holo-sparkle.s7 { width: 6px; height: 6px; left: 35%; bottom: 15%; animation: lisAscend 12s ease-in infinite 4s; }
.holo-sparkle.s8 { width: 4px; height: 4px; left: 65%; bottom: 28%; animation: lisAscend 8.5s ease-in infinite 1s; }


/* ==========================================================================
   ANIMACIONES CLAVE DE LA HÉLICE DE ADN Y HOLOGRAMAS
   ========================================================================== */
@keyframes lisBeamPulse {
  0% { opacity: 0.45; transform: translateX(-50%) scaleX(0.85); }
  100% { opacity: 0.9; transform: translateX(-50%) scaleX(1.15); }
}

@keyframes lisEmitterPulse {
  0% { opacity: 0.5; transform: translateX(-50%) scale(0.9); }
  100% { opacity: 1; transform: translateX(-50%) scale(1.15); }
}

@keyframes lisScanMove1 {
  0% { top: 12%; opacity: 0.2; transform: translateX(-50%) scale(0.85); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
  100% { top: 78%; opacity: 0.2; transform: translateX(-50%) scale(0.85); }
}

@keyframes lisScanMove2 {
  0% { top: 75%; opacity: 0.3; transform: translateX(-50%) scale(0.9); }
  50% { opacity: 0.95; transform: translateX(-50%) scale(1.12); }
  100% { top: 15%; opacity: 0.3; transform: translateX(-50%) scale(0.9); }
}

@keyframes lisScanMove3 {
  0% { top: 30%; opacity: 0.4; }
  50% { top: 65%; opacity: 0.9; }
  100% { top: 30%; opacity: 0.4; }
}

@keyframes lisDnaCoreFloat {
  0% { transform: translateX(-50%) translateY(0) scale(0.98); }
  50% { transform: translateX(-50%) translateY(-14px) scale(1.02); }
  100% { transform: translateX(-50%) translateY(10px) scale(0.99); }
}

@keyframes lisHelicalMorphA {
  0% { stroke-width: 4px; filter: drop-shadow(0 0 10px #00ffff); }
  50% { stroke-width: 5.5px; filter: drop-shadow(0 0 22px #00ffff); }
  100% { stroke-width: 3.5px; filter: drop-shadow(0 0 12px #38bdf8); }
}

@keyframes lisHelicalMorphB {
  0% { stroke-width: 3.5px; filter: drop-shadow(0 0 12px #38bdf8); }
  50% { stroke-width: 5.5px; filter: drop-shadow(0 0 22px #00ffff); }
  100% { stroke-width: 4px; filter: drop-shadow(0 0 10px #00ffff); }
}

@keyframes lisRungsGlow {
  0% { opacity: 0.4; stroke-width: 2px; }
  100% { opacity: 1; stroke-width: 3.5px; filter: drop-shadow(0 0 8px #ffffff); }
}

@keyframes lisNodeEnergy {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 1; filter: drop-shadow(0 0 14px #ffffff); }
}

@keyframes lisClusterDrift1 {
  0% { transform: translate(0, 0) scale(0.95); }
  50% { transform: translate(18px, -22px) scale(1.08); }
  100% { transform: translate(-12px, 15px) scale(1); }
}

@keyframes lisClusterDrift2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, -18px) scale(1.1); }
  100% { transform: translate(14px, 12px) scale(0.95); }
}

@keyframes lisClusterDrift3 {
  0% { transform: translate(0, 0); }
  50% { transform: translate(16px, -16px); }
  100% { transform: translate(-10px, -24px); }
}

@keyframes lisOrbitSpinA {
  0% { transform: rotateX(65deg) rotateY(20deg) rotateZ(0deg); }
  100% { transform: rotateX(65deg) rotateY(20deg) rotateZ(360deg); }
}

@keyframes lisOrbitSpinB {
  0% { transform: rotateX(25deg) rotateY(65deg) rotateZ(360deg); }
  100% { transform: rotateX(25deg) rotateY(65deg) rotateZ(0deg); }
}

@keyframes lisElectronPath1 {
  0% { transform: translate(-50%, -50%) rotate(0deg) translateX(23px) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg) translateX(23px) rotate(-360deg); }
}

@keyframes lisElectronPath2 {
  0% { transform: translate(-50%, -50%) rotate(0deg) translateX(20px) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(-360deg) translateX(20px) rotate(360deg); }
}

@keyframes lisAscend {
  0% { transform: translateY(0) scale(0.7); opacity: 0; }
  30% { opacity: 0.95; }
  80% { opacity: 0.8; }
  100% { transform: translateY(-280px) scale(1.2); opacity: 0; }
}


/* ==========================================================================
   LADO DERECHO: Formulario de Acceso Clínico
   ========================================================================== */
.lis-form-pane {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.75rem 2.5rem;
  background-color: var(--lis-card-bg);
}

.lis-form-card {
  width: 100%;
  max-width: 390px;
  display: flex;
  flex-direction: column;
}

/* Brand Header */
.lis-form-brand-header {
  margin-bottom: 1.25rem;
}

.lis-login-logo {
  max-height: 58px;
  max-width: 170px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(15, 23, 42, 0.06));
}

.lis-brand-name-header {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--lis-text-main);
  letter-spacing: -0.02em;
  margin: 0.4rem 0 0.15rem;
  line-height: 1.2;
}

.lis-brand-slogan-header {
  font-size: 0.84rem;
  color: var(--lis-text-muted);
  margin: 0;
  font-weight: 500;
}

.lis-login-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--lis-primary);
}

/* Form Groups & Inputs */
.lis-form-group {
  margin-bottom: 1.25rem;
}

.lis-label {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--lis-text-main);
  margin-bottom: 0.45rem;
}

.lis-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.lis-input-icon {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  font-size: 0.95rem;
  pointer-events: none;
  transition: color 0.15s ease;
}

.lis-form-control {
  width: 100%;
  height: 48px;
  padding: 0.6rem 2.75rem 0.6rem 2.6rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--lis-text-main);
  background-color: #f8fafc;
  border: 1.5px solid var(--lis-border);
  border-radius: 12px;
  transition: all 0.15s ease-in-out;
  outline: none;
}

.lis-form-control:focus {
  background-color: #ffffff;
  border-color: var(--lis-primary);
  box-shadow: 0 0 0 4px rgba(21, 101, 192, 0.12);
}

.lis-form-control:focus + .lis-input-icon,
.lis-input-wrap:focus-within .lis-input-icon {
  color: var(--lis-primary);
}

.lis-toggle-password {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #94a3b8;
  padding: 6px;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 6px;
  transition: color 0.15s ease;
}

.lis-toggle-password:hover {
  color: var(--lis-primary);
}

/* Checkbox & Forgot Password */
.lis-checkbox-wrap {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-size: 0.84rem;
  color: var(--lis-text-muted);
  font-weight: 500;
}

.lis-checkbox-wrap input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.lis-checkbox-custom {
  width: 18px;
  height: 18px;
  background-color: #f8fafc;
  border: 1.5px solid var(--lis-border);
  border-radius: 5px;
  margin-right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.lis-checkbox-wrap input:checked ~ .lis-checkbox-custom {
  background-color: var(--lis-primary);
  border-color: var(--lis-primary);
}

.lis-checkbox-wrap input:checked ~ .lis-checkbox-custom::after {
  content: "";
  width: 5px;
  height: 9px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

.lis-link-forgot {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--lis-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.lis-link-forgot:hover {
  color: var(--lis-primary-dark);
  text-decoration: underline;
}

/* Submit Button */
.lis-btn-submit {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, var(--lis-primary) 0%, var(--lis-primary-dark) 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(21, 101, 192, 0.35);
  transition: all 0.18s ease-in-out;
}

.lis-btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(21, 101, 192, 0.45);
}

.lis-btn-submit:active {
  transform: translateY(0);
}

.lis-btn-icon {
  margin-left: 8px;
  font-size: 0.9rem;
  transition: transform 0.15s ease;
}

.lis-btn-submit:hover .lis-btn-icon {
  transform: translateX(4px);
}

/* Card Footer */
.lis-card-footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--lis-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.lis-ssl-badge {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--lis-text-muted);
  display: flex;
  align-items: center;
}

.lis-copyright-text {
  font-size: 0.75rem;
  color: #94a3b8;
  text-align: center;
}

/* ==========================================================================
   RESPONSIVE DESIGN: MÓVIL Y TABLET
   ========================================================================== */
@media (max-width: 900px) {
  .lis-auth-wrapper {
    padding: 1.5rem 1rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .lis-auth-container {
    flex-direction: column;
    max-width: 440px;
    width: 100%;
    min-height: auto;
    border-radius: 20px;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.18);
    overflow: hidden;
  }

  .lis-brand-pane {
    height: 155px;
    flex: none;
    position: relative;
    overflow: hidden;
  }

  .lis-3d-scene {
    transform: scale(0.65);
    transform-origin: center center;
  }

  .lis-form-pane {
    padding: 1.75rem 1.5rem;
  }

  .lis-form-card {
    max-width: 100%;
  }

  .lis-login-logo {
    max-height: 48px;
  }

  .lis-brand-name-header {
    font-size: 1.25rem;
    font-weight: 800;
  }

  .lis-brand-slogan-header {
    font-size: 0.82rem;
  }
}

@media (max-width: 480px) {
  .lis-auth-wrapper {
    padding: 0.75rem 0.5rem;
  }

  .lis-auth-container {
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
  }

  .lis-brand-pane {
    height: 135px;
  }

  .lis-3d-scene {
    transform: scale(0.55);
  }

  .lis-form-pane {
    padding: 1.5rem 1.15rem;
  }

  .lis-form-brand-header {
    margin-bottom: 1rem;
  }

  .lis-login-logo {
    max-height: 42px;
  }

  .lis-brand-name-header {
    font-size: 1.15rem;
  }

  .lis-form-group {
    margin-bottom: 0.9rem;
  }

  .lis-label {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
  }

  .lis-input-wrap {
    height: 44px;
  }

  .lis-form-control {
    font-size: 0.9rem;
    padding-left: 2.3rem;
  }

  .lis-input-icon {
    font-size: 0.85rem;
    left: 0.8rem;
  }

  .lis-btn-submit {
    height: 46px;
    font-size: 0.95rem;
    border-radius: 10px;
  }

  .lis-form-options {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.5rem;
    margin-bottom: 1.15rem !important;
  }

  .lis-link-forgot {
    font-size: 0.8rem;
  }

  .lis-card-footer {
    margin-top: 1.15rem;
    padding-top: 1rem;
  }
}

