/* Mystical Background Styles */
:root {
    --primary-glow: #6e00ff;
    --secondary-glow: #00ff9d;
    --tertiary-glow: #ff00ff;
    --particle-color: rgba(255, 255, 255, 0.8);
}

.mystical-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    overflow: hidden;
    z-index: -1;
}

/* Animated Background */
.animated-bg {
    position: absolute;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 50% 50%, var(--primary-glow) 0%, transparent 50%),
        radial-gradient(circle at 30% 70%, var(--secondary-glow) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, var(--tertiary-glow) 0%, transparent 50%);
    opacity: 0.3;
    animation: rotate 20s linear infinite;
}

/* Floating Particles */
.particle {
    position: absolute;
    background: var(--particle-color);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out;
}

/* Glowing Orbs */
.glow {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle at center, 
        rgba(255, 255, 255, 0.8) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 70%);
    filter: blur(20px);
    opacity: 0.5;
    animation: pulse 8s infinite ease-in-out;
}

/* Energy Lines */
.energy-line {
    position: absolute;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom,
        transparent 0%,
        var(--primary-glow) 50%,
        transparent 100%);
    animation: energyFlow 4s infinite linear;
}

/* Mystical Portal */
.portal {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle at center,
        var(--primary-glow) 0%,
        var(--secondary-glow) 50%,
        transparent 70%);
    filter: blur(30px);
    animation: portalPulse 10s infinite ease-in-out;
}

/* Animations */
@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -20px) rotate(90deg); }
    50% { transform: translate(0, -40px) rotate(180deg); }
    75% { transform: translate(-20px, -20px) rotate(270deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

@keyframes energyFlow {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

@keyframes portalPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
}

/* Glassmorphism Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .portal {
        width: 200px;
        height: 200px;
    }
    
    .glow {
        width: 150px;
        height: 150px;
    }
}

/* Language Selector Styling */
.language-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.language-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.language-select:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.language-select option {
    background: #1a1a2e;
    color: white;
}

/* Mystical Form Effects */
.login-form {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: formAppear 1s ease-out;
}

@keyframes formAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Input Field Effects */
.form-group input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    transition: all 0.3s ease;
}

.form-group input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(156, 39, 176, 0.5);
    box-shadow: 0 0 10px rgba(156, 39, 176, 0.3);
}

/* Button Effects */
.login-btn {
    background: linear-gradient(135deg, #9c27b0, #673ab7);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(156, 39, 176, 0.4);
} 