/* ════════════════════════════════════════════════
   LOGIN — Split-screen premium auth
════════════════════════════════════════════════ */

/* ════════════ NEXUNOVA RMS — REDESIGNED LOGIN ════════════ */
#s-login {
  background: #050709;
  position: relative;
  overflow: hidden;
  align-items: stretch;
}

/* ── Canvas bg ── */
#lx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* ── Orbs ── */
.lx-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 1;
}
.lx-orb-1 {
  width: 500px; height: 500px;
  background: rgba(0,217,255,0.07);
  top: -150px; left: -100px;
  animation: lxOrb1 22s ease-in-out infinite;
}
.lx-orb-2 {
  width: 400px; height: 400px;
  background: rgba(168,85,247,0.08);
  bottom: -80px; right: -60px;
  animation: lxOrb2 17s ease-in-out infinite;
  animation-delay: -6s;
}
.lx-orb-3 {
  width: 280px; height: 280px;
  background: rgba(14,165,233,0.06);
  top: 40%; left: 45%;
  animation: lxOrb1 25s ease-in-out infinite;
  animation-delay: -12s;
}
@keyframes lxOrb1 {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(50px,-40px) scale(1.08); }
  66% { transform: translate(-30px,50px) scale(0.95); }
}
@keyframes lxOrb2 {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(-40px,30px) scale(1.1); }
  66% { transform: translate(30px,-50px) scale(0.92); }
}

/* ── Noise texture ── */
#s-login::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.025;
  pointer-events: none;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── LEFT BRAND PANEL ── */
.lx-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 70px;
  position: relative;
  z-index: 3;
}

/* ── Logo wrapper with ring ── */
.lx-logo-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 180px;
  margin-bottom: 36px;
}
.lx-logo-ring {
  display: none;
  position: absolute;
  width: 146px; height: 146px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  background:
    linear-gradient(#050709, #050709) padding-box,
    linear-gradient(135deg, #00d9ff, #a855f7, #00d9ff) border-box;
  animation: lxRingRot 4s linear infinite;
  opacity: 0.75;
}
@keyframes lxRingRot {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(180deg) scale(1.06); }
  100% { transform: rotate(360deg) scale(1); }
}
.lx-logo-glow {
  position: absolute;
  width: 135px; height: 135px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(0,217,255,0.35) 0%,
    rgba(168,85,247,0.2) 50%,
    transparent 70%);
  animation: lxGlowPulse 2.8s ease-in-out infinite;
  filter: blur(10px);
}
@keyframes lxGlowPulse {
  0%,100% { transform: scale(1); opacity: 0.6; }
  50%     { transform: scale(1.45); opacity: 1; }
}
.lx-logo-wrap img {
  height: 165px;
  width: auto;
  position: relative;
  z-index: 2;
  
  filter:
    drop-shadow(0 0 14px rgba(0,217,255,0.65))
    drop-shadow(0 0 6px rgba(168,85,247,0.4));
  transition: filter 0.4s ease, transform 0.4s ease;
}
.lx-logo-wrap img:hover {
  filter:
    drop-shadow(0 0 24px rgba(0,217,255,1))
    drop-shadow(0 0 12px rgba(168,85,247,0.7));
  transform: scale(1.06);
}

/* ── Brand label ── */
.lx-brand-label {
  font-family: 'Space Mono', 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(0,217,255,0.6);
  margin-bottom: 16px;
}

/* ── Main headline ── */
.lx-headline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 52px;
  font-weight: 800;
  color: white;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.lx-headline-grad {
  background: linear-gradient(135deg, #00d9ff 0%, #0ea5e9 40%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: lxGradText 6s ease infinite;
}
@keyframes lxGradText {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── Subtext ── */
.lx-desc {
  font-size: 15px;
  color: rgba(240,244,255,0.45);
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 36px;
  font-weight: 300;
}

/* ── Feature list ── */
.lx-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 44px;
}
.lx-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.lx-feat-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(0,217,255,0.08);
  border: 1px solid rgba(0,217,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.lx-feat-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: white;
  margin-bottom: 2px;
}
.lx-feat-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  line-height: 1.5;
}

/* ── Stats bar ── */
.lx-stats {
  display: flex;
  gap: 32px;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(0,217,255,0.1);
}
.lx-stat-val {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(135deg, #00d9ff, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 4px;
}
.lx-stat-lbl {
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.lx-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.08);
}

/* ── RIGHT AUTH PANEL ── */
.lx-right {
  width: 460px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 44px;
  position: relative;
  z-index: 3;
  background: rgba(255,255,255,0.02);
  border-left: 1px solid rgba(0,217,255,0.08);
  backdrop-filter: blur(30px);
}

/* ── Form card ── */
.lx-form-card {
  width: 100%;
  max-width: 380px;
}

/* ── Small logo on form ── */
.lx-form-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}
.lx-form-logo img {
  height: 80px;
  width: auto;
  filter:
    drop-shadow(0 0 14px rgba(0,217,255,0.6))
    drop-shadow(0 0 6px rgba(168,85,247,0.4));
}
.lx-form-logo-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(90deg, #00d9ff, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.3px;
}
.lx-form-logo-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: monospace;
  margin-top: 2px;
}

.lx-form-header {
  margin-bottom: 28px;
}
.lx-form-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.lx-form-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

/* ── Form fields ── */
.lx-field { margin-bottom: 14px; }
.lx-label {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 400;
  color: rgba(0,217,255,0.6);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 7px;
}
.lx-input {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  font-size: 14px;
  color: white;
  outline: none;
  font-family: 'Inter', sans-serif;
  transition: all 0.25s ease;
}
.lx-input::placeholder { color: rgba(255,255,255,0.2); }
.lx-input:focus {
  border-color: rgba(0,217,255,0.5);
  background: rgba(0,217,255,0.04);
  box-shadow: 0 0 0 3px rgba(0,217,255,0.1);
}

.lx-err {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  color: #FCA5A5;
  margin-bottom: 14px;
  display: none;
  animation: slideDown 0.2s ease;
}
@keyframes slideDown { from { opacity:0;transform:translateY(-6px); } to { opacity:1;transform:translateY(0); } }

/* ── Sign In button ── */
.lx-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #00d9ff 0%, #0ea5e9 50%, #a855f7 100%);
  background-size: 200% 200%;
  border: none;
  border-radius: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #050709;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 24px rgba(0,217,255,0.35), 0 2px 8px rgba(168,85,247,0.2);
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}
.lx-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #a855f7, #00d9ff);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lx-btn span, .lx-btn svg { position: relative; z-index: 1; }
.lx-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 36px rgba(0,217,255,0.5), 0 4px 16px rgba(168,85,247,0.3); }
.lx-btn:hover::before { opacity: 1; }
.lx-btn:active { transform: translateY(0); }

/* ── Form footer ── */
.lx-footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 11px;
  color: rgba(255,255,255,0.18);
  text-align: center;
  line-height: 2;
}
.lx-footer a { color: rgba(0,217,255,0.7); text-decoration: none; }
.lx-footer a:hover { color: #00d9ff; }

/* ── Grid line decoration ── */
.lx-grid-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0,217,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,217,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 30% 50%, black 40%, transparent 70%);
}

/* ── Divider line ─── */
.lx-right-line {
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(0,217,255,0.2), rgba(168,85,247,0.2), transparent);
}

/* Company selector (hidden by default, only used for logic) */
.co-sel { display: none !important; }


/* ════════════ NEXUNOVA LOGIN — BEAUTIFUL ANIMATIONS ════════════ */

/* ── Entrance reveal ── */
.lx-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1),
              transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.lx-reveal.from-right {
  transform: translateX(50px);
}
.lx-reveal.from-left {
  transform: translateX(-50px);
}
.lx-reveal.scale-in {
  transform: scale(0.4);
  transition: opacity 0.9s cubic-bezier(0.34,1.56,0.64,1),
              transform 0.9s cubic-bezier(0.34,1.56,0.64,1);
}
.lx-reveal.visible {
  opacity: 1;
  transform: translate(0,0) scale(1);
}


/* ── Cursor trail canvas ── */
#lx-cursor-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

/* ── Form card laser border scan ── */
.lx-form-card {
  position: relative;
}
.lx-form-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(
    var(--lx-scan-deg, 0deg),
    transparent 30%,
    rgba(0,217,255,0.6) 50%,
    rgba(168,85,247,0.6) 60%,
    transparent 70%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: lxScanBorder 4s linear infinite;
  pointer-events: none;
}
@keyframes lxScanBorder {
  from { --lx-scan-deg: 0deg; }
  to   { --lx-scan-deg: 360deg; }
}
@property --lx-scan-deg {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* ── Button shimmer ── */
.lx-btn-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.35) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  border-radius: inherit;
}
.lx-btn-shimmer.run {
  animation: lxShimmerRun 0.65s ease forwards;
}
@keyframes lxShimmerRun {
  from { transform: translateX(-100%); }
  to   { transform: translateX(200%); }
}

/* ── Feature icon pulse loop ── */
@keyframes lxIconGlow {
  0%,100% { box-shadow: none; background: rgba(0,217,255,0.08); }
  50%     { box-shadow: 0 0 20px rgba(0,217,255,0.5), 0 0 8px rgba(168,85,247,0.3);
             background: rgba(0,217,255,0.2); }
}
.lx-feat-icon.glowing {
  animation: lxIconGlow 1.2s ease-in-out forwards;
}

/* ── Logo scanline ── */
.lx-logo-scanline {
  position: absolute;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(0,217,255,0.9), rgba(168,85,247,0.7), transparent);
  border-radius: 2px;
  top: 0;
  left: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  filter: blur(1px);
}
.lx-logo-scanline.scanning {
  animation: lxScanLine 1.2s ease-in-out forwards;
}
@keyframes lxScanLine {
  0%   { top: 0%;   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ── Stats number shimmer on reveal ── */
@keyframes lxNumReveal {
  0%   { opacity: 0; transform: translateY(8px); filter: blur(4px); }
  100% { opacity: 1; transform: translateY(0);   filter: blur(0); }
}
.lx-stat-val.counting {
  animation: lxNumReveal 0.6s ease forwards;
}

/* ── Right panel slide glow ── */
@keyframes lxRightGlow {
  0%,100% { box-shadow: inset 1px 0 0 rgba(0,217,255,0.08); }
  50%     { box-shadow: inset 1px 0 0 rgba(0,217,255,0.3), inset 2px 0 20px rgba(0,217,255,0.06); }
}
.lx-right {
  animation: lxRightGlow 5s ease-in-out infinite;
}

/* ── Input typing highlight ── */
.lx-input:focus {
  animation: lxInputPop 0.25s ease;
}
@keyframes lxInputPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.012); }
  100% { transform: scale(1); }
}

