.back-home-link:hover,
.back-home-link:active {
    color: #ffffff;
    background: rgba(0, 224, 255, 0.15);
    box-shadow: 0 2px 8px rgba(0, 224, 255, 0.2);
    transform: translateX(-4px);
}
/* Modern Back to Home button */
.back-home-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.6rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--neon-blue);
    text-decoration: none;
    letter-spacing: 0.03em;
    background: transparent;
    border: none;
    border-radius: 0.8rem;
    padding: 0.65rem 1.1rem 0.65rem 1rem;
    box-shadow: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 10;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
}
.back-home-link::before {
    content: '←';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    transition: transform 0.3s ease;
}
.back-home-link:hover::before {
    transform: translateX(-3px);
}

/* Neon animated alert styles */
.neon-alert {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    min-width: 200px;
    max-width: 90vw;
    padding: 0.8rem 1.6rem;
    border-radius: 0.6rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-align: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    background: rgba(10, 15, 31, 0.95);
    color: #ffffff;
    border: 1px solid rgba(0, 224, 255, 0.25);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}
.neon-alert.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}
.neon-alert.success {
    background: rgba(10, 15, 31, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    color: #ffffff;
    border: 1px solid rgba(0, 224, 255, 0.25);
}
.neon-alert.error {
    background: rgba(10, 15, 31, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    color: #ffffff;
    border: 1px solid rgba(255, 80, 100, 0.25);
}
@keyframes neonAlertPop {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.85); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.password-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}
.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    width: 100%;
    padding-right: 2.5rem;
}
.toggle-password {
    position: absolute;
    right: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
    padding: 0.2rem;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}
.toggle-text {
    font-family: 'Orbitron', Arial, sans-serif;
    font-size: 1.01em;
    font-weight: 700;
    color: var(--neon-blue);
    letter-spacing: 0.08em;
    text-shadow: 0 0 8px var(--neon-blue);
    transition: color 0.18s, text-shadow 0.18s;
    user-select: none;
}
.toggle-password.active .toggle-text {
    color: var(--neon-purple);
    text-shadow: 0 0 8px var(--neon-purple);
}
/* Futuristic Neon Logo and Tagline */
.futuristic-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.2rem;
    margin-top: 0.2rem;
}
.neon-glow {
    font-family: 'Orbitron', Arial, sans-serif;
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--neon-blue);
    letter-spacing: 0.18em;
    text-shadow: 0 0 16px var(--neon-blue), 0 0 32px var(--neon-purple);
    text-transform: uppercase;
    animation: neonPulse 2.2s infinite alternate cubic-bezier(.4,0,.2,1);
    position: relative;
}
.dot-glow {
    color: var(--neon-purple);
    text-shadow: 0 0 12px var(--neon-purple), 0 0 24px var(--neon-blue);
    font-size: 2.3rem;
    vertical-align: middle;
    animation: neonPulseDot 1.5s infinite alternate cubic-bezier(.4,0,.2,1);
}
.tagline {
    color: var(--text-muted);
    font-family: 'Inter', Arial, sans-serif;
    font-size: 1.05rem;
    margin-top: 0.2rem;
    margin-bottom: 0.2rem;
    letter-spacing: 0.08em;
    text-align: center;
    text-shadow: 0 0 8px var(--neon-blue);
    opacity: 0.85;
}
@keyframes neonPulse {
    0% { text-shadow: 0 0 8px var(--neon-blue), 0 0 16px var(--neon-purple); }
    100% { text-shadow: 0 0 24px var(--neon-purple), 0 0 32px var(--neon-blue); }
}
@keyframes neonPulseDot {
    0% { text-shadow: 0 0 8px var(--neon-purple), 0 0 16px var(--neon-blue); }
    100% { text-shadow: 0 0 24px var(--neon-blue), 0 0 32px var(--neon-purple); }
}

.glow-divider {
    width: 100%;
    height: 6px;
    position: relative;
    margin: 0.7rem 0 1.2rem 0;
    background: linear-gradient(90deg, transparent 0%, var(--neon-blue) 35%, var(--neon-purple) 65%, transparent 100%);
    box-shadow: 0 0 16px 2px var(--neon-blue), 0 0 24px 4px var(--neon-purple);
    border-radius: 3px;
    opacity: 0.95;
    overflow: visible;
    animation: dividerGlow 2.5s infinite alternate;
    display: flex;
    align-items: center;
    justify-content: center;
}
.divider-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    background: radial-gradient(circle, var(--neon-blue) 60%, var(--neon-purple) 100%);
    border-radius: 50%;
    box-shadow: 0 0 16px 4px var(--neon-blue), 0 0 24px 8px var(--neon-purple);
    z-index: 2;
    animation: dotPulse 1.8s infinite alternate;
    border: 2.5px solid #0A0F1F;
    cursor: pointer;
    transition: left 0.18s cubic-bezier(.4,0,.2,1);
    touch-action: pan-x;
}
/* Interactive backgrounds for divider */
body.bg-left,
body.bg-right {
    background: linear-gradient(120deg, #0A0F1F 80%, #111827 100%);
    transition: background 0.5s cubic-bezier(.4,0,.2,1);
    position: relative;
}
@keyframes dividerGlow {
    0% { box-shadow: 0 0 8px var(--neon-blue), 0 0 12px var(--neon-purple); opacity: 0.8; }
    100% { box-shadow: 0 0 24px 8px var(--neon-purple), 0 0 32px 12px var(--neon-blue); opacity: 1; }
}
@keyframes dotPulse {
    0% { box-shadow: 0 0 8px var(--neon-blue), 0 0 12px var(--neon-purple); }
    100% { box-shadow: 0 0 24px 8px var(--neon-purple), 0 0 32px 12px var(--neon-blue); }
}
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600;800&family=Inter:wght@400;600;700&display=swap');

:root {
    --primary-bg: #0A0F1F;
    --secondary-bg: #111827;
    --glass-bg: rgba(10,15,31,0.55);
    --neon-blue: #00E0FF;
    --neon-purple: #7B00FF;
    --text-main: #E5E7EB;
    --text-muted: #9CA3AF;
    --radius-xl: 1.25rem;
    --radius-2xl: 2rem;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(120deg, #0A0F1F 80%, #111827 100%);
    color: var(--text-main);
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(0,224,255,0.10) 0%, rgba(123,0,255,0.10) 100%),
        repeating-linear-gradient(90deg, rgba(123,0,255,0.09) 0 2px, transparent 2px 80px),
        repeating-linear-gradient(0deg, rgba(0,224,255,0.09) 0 2px, transparent 2px 80px);
    animation: cyberGridMove 18s linear infinite;
    opacity: 0.85;
}
@keyframes cyberGridMove {
    0% { background-position: 0 0, 0 0, 0 0; }
    100% { background-position: 120px 80px, 80px 120px, 40px 60px; }
}

.auth-container {
    background: var(--glass-bg);
    border-radius: var(--radius-2xl);
    box-shadow: 0 0 32px 0 var(--neon-blue), 0 1px 24px #0008;
    padding: 2.5rem 2rem 2rem 2rem;
    width: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(12px);
}
.form-toggle {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.form-toggle button {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 1.1rem;
    font-family: 'Orbitron', Arial, sans-serif;
    font-weight: 700;
    cursor: pointer;
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-xl);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, text-shadow 0.2s, border-color 0.2s;
    outline: none;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2), inset 0 0 8px rgba(255, 255, 255, 0.1);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}
.form-toggle button.active, .form-toggle button:hover {
    background: var(--neon-blue);
    color: #ffffff;
    box-shadow: 0 0 16px var(--neon-blue), 0 0 8px rgba(0, 224, 255, 0.4), inset 0 0 8px rgba(255, 255, 255, 0.15);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 224, 255, 0.8);
}
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}
/* Auth headings use Orbitron */
.auth-title {
    color: var(--neon-blue);
    margin-bottom: 0.5rem;
    text-align: center;
    font-family: 'Orbitron', Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-shadow: 0 0 12px var(--neon-blue);
}
/* Auth inputs use Inter */
.auth-input {
    padding: 0.7rem 1rem;
    border-radius: var(--radius-xl);
    border: 2px solid rgba(0,224,255,0.18);
    background: var(--glass-bg);
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 8px 0 var(--neon-blue)22;
    font-family: 'Inter', Arial, sans-serif;
}
.auth-input:focus {
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 16px var(--neon-blue);
}
.auth-form input:focus {
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 16px var(--neon-blue);
}
/* Auth buttons use Orbitron */
.auth-btn {
    background: linear-gradient(90deg, var(--neon-blue) 0%, var(--neon-purple) 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius-xl);
    padding: 0.8rem 0;
    font-size: 1.1rem;
    font-family: 'Orbitron', Arial, sans-serif;
    font-weight: 700;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 8px var(--neon-blue);
    letter-spacing: 0.12em;
}
.auth-btn:hover {
    background: linear-gradient(90deg, var(--neon-purple) 0%, var(--neon-blue) 100%);
    color: var(--neon-blue);
    box-shadow: 0 0 16px var(--neon-purple);
}

/* Demo button */
.demo-btn {
    background: transparent;
    color: var(--neon-blue);
    border: 2px solid var(--neon-blue);
    border-radius: var(--radius-xl);
    padding: 0.7rem 0;
    font-size: 1rem;
    font-family: 'Orbitron', Arial, sans-serif;
    font-weight: 700;
    cursor: pointer;
    margin-top: 0.7rem;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s;
    letter-spacing: 0.12em;
}
.demo-btn:hover {
    background: var(--neon-blue);
    color: #0A0F1F;
    border-color: var(--neon-blue);
    box-shadow: 0 0 16px var(--neon-blue);
}

/* Social login section */
.social-divider {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 1.5rem 0 1rem 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-divider::before,
.social-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #2a2f3e;
}

.social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.social-btn {
    background: #1a1f2e;
    border: 1px solid #2a2f3e;
    color: #e8e9f2;
    border-radius: var(--radius-xl);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.social-btn:hover {
    background: #252a3a;
    border-color: var(--neon-blue);
    transform: translateY(-1px);
}

.social-btn svg {
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .auth-container {
        width: 98vw;
        padding: 1.2rem 0.5rem 1.2rem 0.5rem;
        border-radius: 1.2rem;
    }
}

/* Splash Screen */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0a0f1f;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.splash-video {
  display: none;
}

.outro-logo {
  position: absolute;
  max-width: 300px;
  max-height: 300px;
  width: 80%;
  height: auto;
  z-index: 10;
  animation: logoFadeInOut 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0s forwards;
  filter: drop-shadow(0 0 30px rgba(0, 224, 255, 0.6));
}

@keyframes videoFadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes logoFadeInOut {
  0% {
    opacity: 0;
    transform: scale(0) rotateZ(-45deg) rotateX(180deg) rotateY(180deg);
    filter: blur(30px) brightness(0) drop-shadow(0 0 50px rgba(0, 224, 255, 0));
  }
  15% {
    opacity: 0.5;
    transform: scale(0.6) rotateZ(-20deg) rotateX(90deg) rotateY(90deg);
    filter: blur(15px) brightness(0.5) drop-shadow(0 0 50px rgba(0, 224, 255, 0.3));
  }
  35% {
    opacity: 1;
    transform: scale(1.2) rotateZ(5deg) rotateX(0deg) rotateY(0deg);
    filter: blur(0px) brightness(1.5) drop-shadow(0 0 60px rgba(0, 224, 255, 1));
  }
  50% {
    opacity: 1;
    transform: scale(0.98) rotateZ(-2deg) rotateX(-5deg) rotateY(-5deg);
    filter: blur(0px) brightness(1.2) drop-shadow(0 0 80px rgba(0, 224, 255, 0.9)) 
            drop-shadow(0 0 40px rgba(100, 200, 255, 0.7));
  }
  70% {
    opacity: 0.8;
    transform: scale(1.1) rotateZ(8deg) rotateX(10deg) rotateY(10deg);
    filter: blur(2px) brightness(1.1) drop-shadow(0 0 60px rgba(0, 224, 255, 0.7));
  }
  85% {
    opacity: 0.3;
    transform: scale(0.7) rotateZ(-30deg) rotateX(100deg) rotateY(-100deg);
    filter: blur(15px) brightness(0.6) drop-shadow(0 0 40px rgba(0, 224, 255, 0.3));
  }
  100% {
    opacity: 0;
    transform: scale(0) rotateZ(90deg) rotateX(-180deg) rotateY(180deg);
    filter: blur(40px) brightness(0) drop-shadow(0 0 0px rgba(0, 224, 255, 0));
  }
}
    .auth-form h2 {
        font-size: 1.15rem;
    }
    .form-toggle button {
        font-size: 1.01rem;
        padding: 0.4rem 0.8rem;
        border-radius: 0.7rem;
    }
    .auth-form input {
        font-size: 0.98rem;
        padding: 0.6rem 0.7rem;
        border-radius: 0.7rem;
    }
    .auth-form button[type="submit"] {
        font-size: 1.01rem;
        padding: 0.7rem 0;
        border-radius: 0.7rem;
    }
