:root { --lw-accent: #3b82f6; }

.login-wrapper {
  --lw-bg: #03050a;
  --lw-bg-grad: linear-gradient(170deg, #020308 0%, #0a0e1a 30%, #05070f 70%, #03050a 100%);
  --lw-card: rgba(8,12,28,0.50);
  --lw-card-border: rgba(255,255,255,0.05);
  --lw-card-shadow: 0 0 120px rgba(25,55,109,0.10), 0 0 60px rgba(99,102,241,0.04), 0 40px 80px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.04);
  --lw-text: #eef0f6;
  --lw-text-sec: #9498b8;
  --lw-text-muted: #5c6085;
  --lw-accent: #3b82f6;
  --lw-accent2: #6366f1;
  --lw-border: rgba(255,255,255,0.06);
  --lw-input-bg: rgba(255,255,255,0.03);
  --lw-grid: rgba(59,130,246,0.025);
  --lw-factory1: rgba(59,130,246,0.06);
  --lw-factory2: rgba(25,55,109,0.05);
  --lw-particle: rgba(59,130,246,0.20);
  --lw-watermark: rgba(255,255,255,0.04);
  --lw-overlay: radial-gradient(ellipse at center, rgba(3,5,10,0.10) 0%, rgba(3,5,10,0.70) 100%);
  --lw-thm-bg: rgba(255,255,255,0.05);
  --lw-thm-border: rgba(255,255,255,0.08);
  --lw-thm-color: #9498b8;
  --lw-thm-hover-bg: rgba(255,255,255,0.10);
  --lw-thm-hover: #eef0f6;
  --lw-check-grad: linear-gradient(135deg, #3b82f6, #6366f1);
  --lw-spoke: #3b82f6;
  --lw-cable: #22c55e;
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

[data-theme="light"] .login-wrapper {
  --lw-bg: #eef1f6;
  --lw-bg-grad: linear-gradient(170deg, #e8ecf4 0%, #f0f2f5 30%, #e8ecf4 70%, #f0f2f5 100%);
  --lw-card: rgba(255,255,255,0.75);
  --lw-card-border: rgba(0,0,0,0.06);
  --lw-card-shadow: 0 0 120px rgba(25,55,109,0.06), 0 0 60px rgba(99,102,241,0.03), 0 40px 80px rgba(0,0,0,0.10), inset 0 1px 0 rgba(255,255,255,0.80);
  --lw-text: #1a1d2e;
  --lw-text-sec: #4a4e6a;
  --lw-text-muted: #8b8fa8;
  --lw-accent: #2563eb;
  --lw-accent2: #4f46e5;
  --lw-border: rgba(0,0,0,0.08);
  --lw-input-bg: rgba(0,0,0,0.02);
  --lw-grid: rgba(59,130,246,0.035);
  --lw-factory1: rgba(59,130,246,0.03);
  --lw-factory2: rgba(25,55,109,0.02);
  --lw-particle: rgba(59,130,246,0.14);
  --lw-watermark: rgba(0,0,0,0.03);
  --lw-overlay: radial-gradient(ellipse at center, rgba(238,241,246,0.10) 0%, rgba(238,241,246,0.50) 100%);
  --lw-thm-bg: rgba(0,0,0,0.04);
  --lw-thm-border: rgba(0,0,0,0.08);
  --lw-thm-color: #4a4e6a;
  --lw-thm-hover-bg: rgba(0,0,0,0.08);
  --lw-thm-hover: #1a1d2e;
  --lw-check-grad: linear-gradient(135deg, #2563eb, #4f46e5);
  --lw-spoke: #2563eb;
  --lw-cable: #16a34a;
}

.login-bg-base {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0;
  background: var(--lw-bg-grad);
}

.login-bg-base::after {
  content: '';
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background:
    radial-gradient(ellipse at 20% 40%, rgba(25,55,109,0.45) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 60%, rgba(99,102,241,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 20%, rgba(6,182,212,0.06) 0%, transparent 40%);
  animation: lwBgPulse 8s ease-in-out infinite alternate;
}

[data-theme="light"] .login-bg-base::after {
  background:
    radial-gradient(ellipse at 20% 40%, rgba(59,130,246,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 60%, rgba(99,102,241,0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 20%, rgba(6,182,212,0.02) 0%, transparent 40%);
}

@keyframes lwBgPulse { 0% { opacity: 0.6; } 100% { opacity: 1; } }

.login-bg-drift {
  position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(59,130,246,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(99,102,241,0.05) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 20%, rgba(6,182,212,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(249,115,22,0.025) 0%, transparent 40%);
  animation: lwDrift 30s ease-in-out infinite alternate;
}

[data-theme="light"] .login-bg-drift {
  background:
    radial-gradient(ellipse at 30% 40%, rgba(59,130,246,0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(99,102,241,0.02) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 20%, rgba(6,182,212,0.015) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(249,115,22,0.01) 0%, transparent 40%);
}

@keyframes lwDrift {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-4%, 3%) rotate(0.5deg); }
  50% { transform: translate(3%, -2%) rotate(-0.3deg); }
  75% { transform: translate(-2%, 4%) rotate(0.4deg); }
  100% { transform: translate(3%, -3%) rotate(-0.2deg); }
}

.login-bg-grid {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
  background-image:
    linear-gradient(var(--lw-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--lw-grid) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, #000 25%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 70%);
}

.login-bg-factory {
  position: absolute; bottom: 0; left: 0; width: 100%; height: 45%; z-index: 1;
  background:
    linear-gradient(0deg, var(--lw-bg) 8%, transparent 60%),
    repeating-linear-gradient(90deg, var(--lw-factory1) 0px, var(--lw-factory1) 3px, transparent 3px, transparent 18px, var(--lw-factory2) 18px, var(--lw-factory2) 21px, transparent 21px, transparent 36px);
  mask-image: linear-gradient(0deg, #000 10%, transparent 80%);
  -webkit-mask-image: linear-gradient(0deg, #000 10%, transparent 80%);
}

.login-bg-factory::before {
  content: '';
  position: absolute; top: 15%; left: 0; width: 100%; height: 40%;
  background: repeating-linear-gradient(90deg, transparent 0px, transparent 60px, var(--lw-factory1) 60px, var(--lw-factory1) 64px, transparent 64px, transparent 100px, var(--lw-factory2) 100px, var(--lw-factory2) 103px, transparent 103px, transparent 140px);
}

.login-particles {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
  pointer-events: none; overflow: hidden;
}

.login-particles span {
  position: absolute;
  width: 4px; height: 4px;
  background: var(--lw-particle);
  border-radius: 50%;
  animation: lwFloat linear infinite;
}

.login-particles span:nth-child(1) { left: 8%; top: 25%; width: 3px; height: 3px; animation-duration: 20s; animation-delay: 0s; }
.login-particles span:nth-child(2) { left: 22%; top: 65%; width: 5px; height: 5px; animation-duration: 24s; animation-delay: 2s; background: rgba(99,102,241,0.15); }
.login-particles span:nth-child(3) { left: 40%; top: 15%; width: 3px; height: 3px; animation-duration: 18s; animation-delay: 4s; }
.login-particles span:nth-child(4) { left: 58%; top: 75%; width: 4px; height: 4px; animation-duration: 22s; animation-delay: 1s; background: rgba(6,182,212,0.15); }
.login-particles span:nth-child(5) { left: 75%; top: 35%; width: 3px; height: 3px; animation-duration: 26s; animation-delay: 3s; }
.login-particles span:nth-child(6) { left: 15%; top: 80%; width: 5px; height: 5px; animation-duration: 19s; animation-delay: 5s; background: rgba(59,130,246,0.12); }
.login-particles span:nth-child(7) { left: 88%; top: 55%; width: 3px; height: 3px; animation-duration: 23s; animation-delay: 7s; }
.login-particles span:nth-child(8) { left: 32%; top: 45%; width: 4px; height: 4px; animation-duration: 21s; animation-delay: 2s; background: rgba(99,102,241,0.12); }
.login-particles span:nth-child(9) { left: 62%; top: 20%; width: 3px; height: 3px; animation-duration: 25s; animation-delay: 6s; }
.login-particles span:nth-child(10) { left: 48%; top: 88%; width: 5px; height: 5px; animation-duration: 17s; animation-delay: 4s; background: rgba(6,182,212,0.12); }
.login-particles span:nth-child(11) { left: 5%; top: 50%; width: 3px; height: 3px; animation-duration: 28s; animation-delay: 8s; }
.login-particles span:nth-child(12) { left: 92%; top: 15%; width: 4px; height: 4px; animation-duration: 20s; animation-delay: 3s; }
.login-particles span:nth-child(13) { left: 70%; top: 60%; width: 3px; height: 3px; animation-duration: 22s; animation-delay: 1s; background: rgba(59,130,246,0.10); }
.login-particles span:nth-child(14) { left: 28%; top: 30%; width: 4px; height: 4px; animation-duration: 26s; animation-delay: 5s; }
.login-particles span:nth-child(15) { left: 82%; top: 82%; width: 3px; height: 3px; animation-duration: 19s; animation-delay: 7s; background: rgba(99,102,241,0.10); }

@keyframes lwFloat {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) translateX(80px); opacity: 0; }
}

.login-sparks {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
  pointer-events: none; overflow: hidden;
}

.login-sparks span {
  position: absolute;
  width: 2px; height: 2px;
  background: #f59e0b;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(245,158,11,0.6), 0 0 12px rgba(245,158,11,0.3);
  animation: lwSpark linear infinite;
}

.login-sparks span:nth-child(1) { left: 18%; top: 62%; animation-duration: 2.8s; animation-delay: 0s; }
.login-sparks span:nth-child(2) { left: 42%; top: 48%; animation-duration: 3.2s; animation-delay: 1.2s; }
.login-sparks span:nth-child(3) { left: 68%; top: 56%; animation-duration: 2.5s; animation-delay: 0.5s; }
.login-sparks span:nth-child(4) { left: 32%; top: 72%; animation-duration: 3.5s; animation-delay: 2.0s; }
.login-sparks span:nth-child(5) { left: 82%; top: 42%; animation-duration: 2.6s; animation-delay: 1.5s; }
.login-sparks span:nth-child(6) { left: 55%; top: 78%; animation-duration: 3.0s; animation-delay: 0.8s; }
.login-sparks span:nth-child(7) { left: 12%; top: 38%; animation-duration: 3.3s; animation-delay: 2.5s; }
.login-sparks span:nth-child(8) { left: 75%; top: 28%; animation-duration: 2.7s; animation-delay: 1.8s; }

@keyframes lwSpark {
  0% { opacity: 0; transform: scale(0) translateY(0); }
  15% { opacity: 1; transform: scale(1.5) translateY(-4px); }
  40% { opacity: 0.8; transform: scale(1) translateY(-12px); }
  100% { opacity: 0; transform: scale(0) translateY(-40px); }
}

.login-glow-lines {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
  pointer-events: none;
}

.login-glow-lines::before {
  content: '';
  position: absolute; top: 30%; left: -20%; width: 140%; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(59,130,246,0.08) 20%, rgba(99,102,241,0.12) 50%, rgba(59,130,246,0.08) 80%, transparent 100%);
  animation: lwSweep 7s ease-in-out infinite;
}

.login-glow-lines::after {
  content: '';
  position: absolute; top: 55%; left: -20%; width: 140%; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(6,182,212,0.05) 20%, rgba(99,102,241,0.08) 50%, rgba(6,182,212,0.05) 80%, transparent 100%);
  animation: lwSweep 9s ease-in-out 3s infinite;
}

@keyframes lwSweep {
  0% { transform: translateX(-5%); opacity: 0.3; }
  50% { transform: translateX(5%); opacity: 1; }
  100% { transform: translateX(-5%); opacity: 0.3; }
}

.login-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2;
  background: var(--lw-overlay);
}

.login-watermark {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  font-size: clamp(18px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: 0.12em;
  white-space: nowrap;
  color: var(--lw-watermark);
  z-index: 1;
  pointer-events: none;
  user-select: none;
  text-transform: uppercase;
}

.login-theme-toggle {
  position: absolute; top: 20px; right: 20px; z-index: 10;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--lw-thm-bg);
  border: 1px solid var(--lw-thm-border);
  color: var(--lw-thm-color);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.login-theme-toggle:hover {
  background: var(--lw-thm-hover-bg);
  color: var(--lw-thm-hover);
  transform: scale(1.05);
}

.login-theme-toggle svg { width: 18px; height: 18px; }

.lw-scroll-banner {
  position: absolute; top: 0; left: 0; width: 100%; height: 48px; z-index: 10;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(3,5,10,0.6) 0%, transparent 100%);
}

.lw-scroll-track {
  display: flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
  animation: lwMarquee 35s linear infinite;
  height: 48px;
  padding: 0 20px;
}

.lw-scroll-item {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  text-shadow: 0 0 20px rgba(59,130,246,0.10);
}

[data-theme="light"] .lw-scroll-item { color: rgba(0,0,0,0.25); }

.lw-scroll-sep {
  font-size: 6px;
  color: rgba(59,130,246,0.30);
}

@keyframes lwMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.lw-main-container {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  gap: 60px;
}

.lw-hero {
  flex: 1;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  padding: 20px 0;
}

.lw-hero-content {
  margin-bottom: 40px;
}

.lw-greeting {
  font-size: clamp(14px, 1.8vw, 20px);
  font-weight: 500;
  color: var(--lw-accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
  opacity: 0.7;
}

.lw-company {
  font-size: clamp(20px, 2.8vw, 34px);
  font-weight: 800;
  color: var(--lw-text);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 10px 0;
}

.lw-subtitle {
  font-size: clamp(12px, 1.2vw, 15px);
  color: var(--lw-text-muted);
  letter-spacing: 0.04em;
  font-weight: 500;
  margin: 0;
}

.lw-division-cards {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}

.lw-dcard {
  position: relative;
  width: 180px;
  padding: 24px 20px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.06);
  cursor: default;
  transition: all 0.4s cubic-bezier(0.22,1,0.36,1);
  overflow: hidden;
  text-align: center;
}

[data-theme="light"] .lw-dcard {
  background: rgba(255,255,255,0.60);
  border-color: rgba(0,0,0,0.06);
}

.lw-dcard-shine {
  position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at 50% 30%, rgba(255,255,255,0.04), transparent 50%);
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.lw-dcard:hover {
  transform: translateY(-6px);
}

.lw-dcard:hover .lw-dcard-shine {
  opacity: 0.6;
}

.lw-dcard-spoke {
  border-color: rgba(59,130,246,0.15);
  box-shadow: 0 4px 24px rgba(59,130,246,0.06), inset 0 1px 0 rgba(59,130,246,0.08);
}

.lw-dcard-spoke:hover {
  border-color: rgba(59,130,246,0.30);
  box-shadow: 0 12px 40px rgba(59,130,246,0.15), 0 0 60px rgba(59,130,246,0.04), inset 0 1px 0 rgba(59,130,246,0.12);
}

.lw-dcard-cable {
  border-color: rgba(34,197,94,0.15);
  box-shadow: 0 4px 24px rgba(34,197,94,0.06), inset 0 1px 0 rgba(34,197,94,0.08);
}

.lw-dcard-cable:hover {
  border-color: rgba(34,197,94,0.30);
  box-shadow: 0 12px 40px rgba(34,197,94,0.15), 0 0 60px rgba(34,197,94,0.04), inset 0 1px 0 rgba(34,197,94,0.12);
}

.lw-dcard-icon {
  width: 52px; height: 52px;
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
}

.lw-dcard-spoke .lw-dcard-icon { color: var(--lw-spoke); }
.lw-dcard-cable .lw-dcard-icon { color: var(--lw-cable); }

.lw-dcard-icon svg {
  width: 48px; height: 48px;
  filter: drop-shadow(0 0 12px currentColor);
}

.lw-dcard h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--lw-text);
  margin: 0 0 4px 0;
  letter-spacing: 0.02em;
}

.lw-dcard p {
  font-size: 11px;
  color: var(--lw-text-muted);
  margin: 0;
  font-weight: 500;
}

.lw-dcard-spoke h3 { color: var(--lw-spoke); }
.lw-dcard-cable h3 { color: var(--lw-cable); }

.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: lwFadeInUp 0.7s cubic-bezier(0.22,1,0.36,1) forwards;
}

@keyframes lwFadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.lw-login-section {
  flex-shrink: 0;
  width: 100%;
  max-width: 420px;
}

.login-card {
  background: rgba(8,12,28,0.55);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 40px 44px;
  width: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 60px rgba(0,0,0,0.4), 0 0 80px rgba(59,130,246,0.06);
  animation: lwCardIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.login-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.25), transparent);
}

[data-theme="light"] .login-card::before {
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.12), transparent);
}

.login-card-glow {
  position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(59,130,246,0.03), transparent 50%);
  pointer-events: none;
}

@keyframes lwCardIn {
  0% { opacity: 0; transform: translateY(20px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.login-header { text-align: center; margin-bottom: 28px; }

.login-logo-area {
  width: 88px; height: 88px;
  margin: 0 auto 16px;
  border-radius: 20px;
  background: rgba(25,55,109,0.20);
  border: 1px solid rgba(59,130,246,0.10);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
}

[data-theme="light"] .login-logo-area {
  background: rgba(59,130,246,0.06);
  border-color: rgba(59,130,246,0.12);
}

.login-logo-area::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 20px;
  background: radial-gradient(circle at 30% 30%, rgba(59,130,246,0.08), transparent 60%);
  pointer-events: none;
}

.login-logo-img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 14px;
  position: relative; z-index: 1;
}

.login-logo-fallback {
  color: var(--lw-accent);
  filter: drop-shadow(0 0 14px rgba(59,130,246,0.20));
  position: relative; z-index: 1;
}

.login-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--lw-text);
  letter-spacing: 0.01em;
  margin-bottom: 4px;
  line-height: 1.3;
}

.login-subtitle {
  font-size: 11px;
  color: var(--lw-text-muted);
  letter-spacing: 0.04em;
  font-weight: 500;
}

.login-form-group { margin-bottom: 18px; }

.login-form-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--lw-text-sec);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.login-input-icon {
  position: absolute;
  left: 14px;
  color: var(--lw-text-muted);
  pointer-events: none;
  z-index: 1;
}

.login-input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border: 1px solid var(--lw-border);
  border-radius: 14px;
  font-size: 14px;
  font-family: inherit;
  background: var(--lw-input-bg);
  color: var(--lw-text);
  transition: all 0.3s ease;
  outline: none;
  box-sizing: border-box;
}

.login-input-pass { padding-right: 44px; }

.login-input::placeholder {
  color: var(--lw-text-muted);
  font-size: 13px;
}

.login-input:focus {
  border-color: rgba(59,130,246,0.30);
  background: rgba(59,130,246,0.04);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.06), 0 0 20px rgba(59,130,246,0.04);
}

[data-theme="light"] .login-input:focus {
  background: rgba(59,130,246,0.03);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.05), 0 0 20px rgba(59,130,246,0.02);
}

.login-eye-btn {
  position: absolute;
  right: 8px;
  width: 34px; height: 34px;
  border: none;
  background: transparent;
  color: var(--lw-text-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
  z-index: 2;
}

.login-eye-btn:hover {
  background: rgba(255,255,255,0.06);
  color: var(--lw-text-sec);
}

[data-theme="light"] .login-eye-btn:hover {
  background: rgba(0,0,0,0.04);
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.login-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-left: 28px;
}

.login-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.login-checkmark {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 18px;
  width: 18px;
  border-radius: 5px;
  background: var(--lw-input-bg);
  border: 1px solid var(--lw-border);
  transition: all 0.2s ease;
}

.login-checkbox:hover .login-checkmark {
  border-color: rgba(59,130,246,0.30);
}

.login-checkbox input:checked ~ .login-checkmark {
  background: var(--lw-check-grad);
  border-color: transparent;
}

.login-checkmark::after {
  content: '';
  position: absolute;
  display: none;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.login-checkbox input:checked ~ .login-checkmark::after { display: block; }

.login-checkbox-label {
  font-size: 13px;
  color: var(--lw-text-sec);
  font-weight: 500;
}

.login-forgot {
  font-size: 12px;
  color: var(--lw-accent);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  opacity: 0.7;
}

.login-forgot:hover {
  opacity: 1;
  color: #60a5fa;
}

[data-theme="light"] .login-forgot:hover { color: #1d4ed8; }

.login-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
  letter-spacing: 0.02em;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

[data-theme="light"] .login-btn { background: linear-gradient(135deg, #2563eb, #4f46e5); }

.login-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.10), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.login-btn:hover::before { opacity: 1; }

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(59,130,246,0.25), 0 0 30px rgba(59,130,246,0.10);
}

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

.login-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.login-btn .spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.15);
  border-top-color: #fff;
  border-radius: 50%;
  animation: lwSpin 0.6s linear infinite;
  display: none;
}

@keyframes lwSpin { to { transform: rotate(360deg); } }

.login-error {
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.15);
  color: #ef4444;
  text-align: center;
}

.login-version {
  text-align: center;
  margin-top: 18px;
  font-size: 10px;
  color: rgba(59,130,246,0.50);
  letter-spacing: 0.1em;
  font-weight: 500;
}

[data-theme="light"] .login-version { color: rgba(37,99,235,0.45); }

.login-forgot-modal {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
}

.login-forgot-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.login-forgot-dialog {
  position: relative;
  background: var(--lw-card);
  border: 1px solid var(--lw-card-border);
  border-radius: 20px;
  padding: 32px;
  max-width: 420px; width: 90%;
  backdrop-filter: blur(32px) saturate(1.6);
  -webkit-backdrop-filter: blur(32px) saturate(1.6);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 80px rgba(59,130,246,0.08);
  animation: lwCardIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.login-forgot-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
}

.login-forgot-header h3 {
  color: var(--lw-text);
  font-size: 17px; font-weight: 700;
  flex: 1;
}

.login-forgot-close {
  background: none; border: none;
  color: var(--lw-text-muted);
  font-size: 24px; cursor: pointer;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.login-forgot-close:hover {
  background: var(--lw-thm-bg);
  color: var(--lw-text);
}

.login-forgot-body p {
  color: var(--lw-text-sec);
  font-size: 13px;
  line-height: 1.5;
}

.login-forgot-result {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  text-align: center;
  line-height: 1.4;
}

.login-forgot-result.success {
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.18);
  color: #22c55e;
}

.login-forgot-result.error {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.18);
  color: #ef4444;
}

.login-forgot-footer {
  display: flex; gap: 10px; justify-content: flex-end;
  margin-top: 24px;
}

.login-forgot-cancel {
  padding: 10px 22px;
  background: var(--lw-input-bg);
  border: 1px solid var(--lw-border);
  border-radius: 10px;
  color: var(--lw-text-sec);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.login-forgot-cancel:hover {
  background: var(--lw-thm-hover-bg);
  color: var(--lw-text);
}

.login-forgot-submit {
  padding: 10px 26px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s ease;
}

[data-theme="light"] .login-forgot-submit { background: linear-gradient(135deg, #2563eb, #4f46e5); }

.login-forgot-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59,130,246,0.25);
}

.login-forgot-submit:disabled {
  opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none;
}

@media (max-width: 820px) {
  .lw-main-container {
    flex-direction: column;
    gap: 24px;
    padding: 70px 16px 20px;
    overflow-y: auto;
    align-items: center;
  }
  .lw-hero {
    max-width: 100%;
    align-items: center;
    text-align: center;
    padding: 0;
    flex: none;
  }
  .lw-hero-content { margin-bottom: 24px; }
  .lw-division-cards { justify-content: center; }
  .lw-dcard { width: 150px; padding: 20px 16px; }
  .lw-login-section { max-width: 380px; }
  .login-card { padding: 30px 24px; border-radius: 22px; }
  .login-title { font-size: 15px; }
  .login-logo-area { width: 72px; height: 72px; }
  .login-options { flex-direction: column; align-items: flex-start; gap: 10px; }
  .login-theme-toggle { top: 56px; right: 12px; width: 36px; height: 36px; }
  .lw-scroll-banner { height: 40px; }
  .lw-scroll-track { height: 40px; }
  .lw-scroll-item { font-size: 11px; }
}

@media (max-width: 480px) {
  .lw-dcard { width: 130px; padding: 16px 12px; }
  .lw-dcard-icon { width: 40px; height: 40px; }
  .lw-dcard-icon svg { width: 36px; height: 36px; }
  .lw-dcard h3 { font-size: 12px; }
  .login-card { padding: 24px 18px; }
  .lw-division-cards { gap: 10px; }
}
    .login-slideshow {
      position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0;
      pointer-events: none;
    }

    .login-slide {
      position: absolute; top: 0; left: 0; width: 100%; height: 100%;
      background-size: cover;
      background-position: center;
      opacity: 0;
      animation: loginFadeSlide 30s linear infinite;
    }

    .login-slide:nth-child(1) { animation-delay: 0s; }
    .login-slide:nth-child(2) { animation-delay: 5s; }
    .login-slide:nth-child(3) { animation-delay: 10s; }
    .login-slide:nth-child(4) { animation-delay: 15s; }
    .login-slide:nth-child(5) { animation-delay: 20s; }
    .login-slide:nth-child(6) { animation-delay: 25s; }

    .login-slide::after {
      content: '';
      position: absolute; inset: 0;
      background: linear-gradient(135deg, rgba(3,5,10,0.82) 0%, rgba(10,14,26,0.72) 50%, rgba(3,5,10,0.85) 100%);
    }

    @keyframes loginFadeSlide {
      0%, 3% { opacity: 0; }
      5%, 18% { opacity: 1; }
      20%, 100% { opacity: 0; }
    }

    .lw-co-primary {
      display: block;
      font-size: 28px;
      font-weight: 800;
      background: linear-gradient(135deg, #60a5fa 0%, #818cf8 35%, #c084fc 65%, #60a5fa 100%);
      background-size: 200% 200%;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      animation: lwGradShift 4s ease-in-out infinite;
      filter: drop-shadow(0 0 20px rgba(96,165,250,0.30)) drop-shadow(0 2px 8px rgba(99,102,241,0.15));
      line-height: 1.15;
    }

    [data-theme="light"] .lw-co-primary {
      background: linear-gradient(135deg, #2563eb 0%, #4f46e5 35%, #7c3aed 65%, #2563eb 100%);
      background-size: 200% 200%;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      filter: drop-shadow(0 1px 3px rgba(37,99,235,0.15));
    }

    .lw-co-bracket {
      display: block;
      font-size: 13px;
      font-weight: 500;
      color: rgba(148,152,184,0.80);
      letter-spacing: 0.06em;
      margin-top: 2px;
    }

    @keyframes lwGradShift {
      0%, 100% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
    }

    .lt-primary {
      display: block;
      font-size: 18px;
      font-weight: 700;
      background: linear-gradient(135deg, #60a5fa 0%, #818cf8 40%, #c084fc 70%, #60a5fa 100%);
      background-size: 200% 200%;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      animation: lwGradShift 4s ease-in-out infinite;
      filter: drop-shadow(0 0 12px rgba(96,165,250,0.20));
      line-height: 1.2;
    }

    [data-theme="light"] .lt-primary {
      background: linear-gradient(135deg, #2563eb 0%, #4f46e5 40%, #7c3aed 70%, #2563eb 100%);
      background-size: 200% 200%;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      filter: drop-shadow(0 1px 2px rgba(37,99,235,0.12));
    }

    .lt-bracket {
      display: block;
      font-size: 12px;
      font-weight: 500;
      color: rgba(148,152,184,0.70);
      letter-spacing: 0.05em;
      margin-top: 2px;
    }
