/*!
 * Legendary Lightworks – login_slider.css
 * Neon Glow slider CAPTCHA for login form (Variant C).
 * Version 1.0.0
 * Last modified: February 2026 – Legendary Lightworks
 * (c) Joel Aniol – https://legendary-lightworks.com
 * Redistribution without written permission is prohibited.
 */

/* ── Slider Track ─────────────────────────────────── */
.slider-captcha {
  margin: 0.75rem 0 0.25rem;
}

.slider-captcha__track {
  position: relative;
  height: 52px;
  background: rgba(10, 10, 10, 0.9);
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: 0.5rem;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

/* Grid-background pattern */
.slider-captcha__grid {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 20px,
    rgba(168, 85, 247, 0.03) 20px,
    rgba(168, 85, 247, 0.03) 21px
  );
  pointer-events: none;
}

/* ── Progress Fill ────────────────────────────────── */
.slider-captcha__fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg,
    rgba(168, 85, 247, 0.05),
    rgba(168, 85, 247, 0.15));
  border-right: 2px solid rgba(168, 85, 247, 0.4);
  transition: width 0.05s linear;
  pointer-events: none;
}

/* ── Scanline Overlay ─────────────────────────────── */
.slider-captcha__scanline {
  position: absolute;
  top: 0;
  width: 1px;
  height: 100%;
  background: rgba(168, 85, 247, 0.6);
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

/* ── Label Text ───────────────────────────────────── */
.slider-captcha__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: #52525b;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 0.3s, color 0.3s;
}

/* Animated dots flanking the label */
.slider-captcha__dots {
  display: flex;
  gap: 4px;
}

.slider-captcha__dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.4);
  animation: slider-dot-blink 1.5s ease-in-out infinite;
}

.slider-captcha__dots span:nth-child(2) { animation-delay: 0.2s; }
.slider-captcha__dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes slider-dot-blink {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ── Thumb ────────────────────────────────────────── */
.slider-captcha__thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 44px;
  height: 44px;
  background: rgba(17, 17, 17, 0.95);
  border: 2px solid rgba(168, 85, 247, 0.6);
  border-radius: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a855f7;
  font-size: 1rem;
  cursor: grab;
  transition: border-color 0.2s, box-shadow 0.2s;
  z-index: 2;
  touch-action: none;
}

.slider-captcha__thumb:hover {
  border-color: #c084fc;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.3), inset 0 0 8px rgba(168, 85, 247, 0.1);
}

.slider-captcha__thumb:active {
  cursor: grabbing;
}

/* ── Solved State ─────────────────────────────────── */
.slider-captcha--solved .slider-captcha__thumb {
  border-color: #22c55e;
  color: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.3);
  cursor: default;
}

.slider-captcha--solved .slider-captcha__fill {
  background: linear-gradient(90deg,
    rgba(34, 197, 94, 0.05),
    rgba(34, 197, 94, 0.15));
  border-right-color: rgba(34, 197, 94, 0.4);
}

.slider-captcha--solved .slider-captcha__label {
  color: #4ade80;
  letter-spacing: 3px;
}

.slider-captcha--solved .slider-captcha__dots span {
  background: rgba(34, 197, 94, 0.5);
  animation: none;
  opacity: 1;
}

.slider-captcha--solved .slider-captcha__scanline {
  opacity: 0 !important;
}

/* ── Snap-Back Animation ──────────────────────────── */
.slider-captcha--snapback .slider-captcha__thumb {
  transition: left 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.slider-captcha--snapback .slider-captcha__fill {
  transition: width 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
