// Create stars function createStars() { const stars = document.getElementById('stars'); const count = 100; for (let i = 0; i < count; i++) { const star = document.createElement('div'); star.className = 'star'; // Random position const x = Math.random() * window.innerWidth; const y = Math.random() * window.innerHeight; // Random size const size = Math.random() * 2; // Random opacity const opacity = Math.random() * 0.8 + 0.2; star.style.left = `${x}px`; star.style.top = `${y}px`; star.style.width = `${size}px`; star.style.height = `${size}px`; star.style.opacity = opacity; stars.appendChild(star); } } // Initialize stars createStars(); // Security measures to block code inspection // Captcha refresh document.getElementById('reroll').addEventListener('click', function() { const captchaImage = document.getElementById('captcha'); captchaImage.src = '/captcha?' + new Date().getTime(); }); // Redirect handling const urlParams = new URLSearchParams(window.location.search); if (urlParams.get('redirect') === 'true') { setTimeout(() => { window.location.href = '/login'; }, 3000); }