TEAM SHIVAA

Join the elite squad

Step 1 — Login / Register

Enter your email to get started

We'll use this to fetch your profile photo

Step 2 — Verify OTP

Enter the 6-digit code sent to your contact

⏱️ OTP expires in 1:00

Step 3 — Your Gaming Profile

Tell us who you are in the arena

Example: 1234567890 or ShivaaGamer

Welcome to TEAM SHIVAA!

You're now part of the elite squad.
Get ready to dominate the arena!

// ===== LOGIN WITH EMAIL (Gravatar) ===== async function loginWithEmail() { const email = document.getElementById('loginEmail').value.trim(); if (!email || !email.includes('@')) { alert('⚠️ Please enter a valid email address.'); return; } // ✅ Gravatar se profile photo fetch karein const emailHash = CryptoJS.MD5(email.toLowerCase().trim()).toString(); const gravatarUrl = `https://www.gravatar.com/avatar/${emailHash}?d=identicon&s=100`; // Check if Gravatar exists try { const response = await fetch(gravatarUrl); let photoUrl; if (response.ok && response.url.includes('gravatar')) { photoUrl = gravatarUrl; } else { // Fallback: UI Avatars const name = email.split('@')[0]; photoUrl = `https://ui-avatars.com/api/?name=${encodeURIComponent(name)}&background=8B5CF6&color=fff&size=100`; } // ✅ SAVE LOGIN DATA localStorage.setItem('isLoggedIn', 'true'); localStorage.setItem('userEmail', email); localStorage.setItem('userPhoto', photoUrl); window.location.href = 'index.html'; } catch (error) { console.error('Login error:', error); // ✅ FALLBACK const name = email.split('@')[0]; localStorage.setItem('isLoggedIn', 'true'); localStorage.setItem('userEmail', email); localStorage.setItem('userPhoto', `https://ui-avatars.com/api/?name=${encodeURIComponent(name)}&background=8B5CF6&color=fff&size=100`); window.location.href = 'index.html'; } }