* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    min-height: 100vh;
    background: url('https://external-preview.redd.it/ESSabRPUaDj-4sTgD4cwDdihFIs1L0fCuB-ZqPCYcWo.jpg?auto=webp&s=9877e45259298aedb2271b9be97ff99e942b28d7') no-repeat center center fixed;
    background-size: cover;
    overflow-x: hidden;
    position: relative;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
    backdrop-filter: blur(8px);
}

.lava-particle {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    animation: riseLava 8s ease-in infinite;
    opacity: 0;
}

@keyframes riseLava {
    0% {
        transform: translateY(0) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-120vh) translateX(var(--drift)) scale(1.5);
        opacity: 0;
    }
}

.particle {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    animation: floatParticle 6s ease-in-out infinite;
}

.particle.small {
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #FF5722, #F44336);
    box-shadow: 0 0 10px #FF5722, 0 0 20px #FF5722;
}

.particle.medium {
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #FF9800, #FF5722);
    box-shadow: 0 0 15px #FF9800, 0 0 25px #FF5722;
}

.particle.large {
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #FFD700, #FF9800);
    box-shadow: 0 0 20px #FFD700, 0 0 30px #FF9800;
}

@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-25px) translateX(15px) rotate(90deg) scale(1.2);
        opacity: 1;
    }
    50% {
        transform: translateY(-50px) translateX(-10px) rotate(180deg) scale(0.8);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-25px) translateX(-20px) rotate(270deg) scale(1.1);
        opacity: 1;
    }
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.5), rgba(255, 152, 0, 0.3), transparent 70%);
    animation: glowPulse 8s ease-in-out infinite;
    filter: blur(40px);
    z-index: 1;
    pointer-events: none;
}

.glow-orb:nth-child(1) {
    top: 10%;
    left: 5%;
    width: 300px;
    height: 300px;
    animation-delay: 0s;
}

.glow-orb:nth-child(2) {
    bottom: 15%;
    right: 5%;
    width: 400px;
    height: 400px;
    animation-delay: 2s;
}

.glow-orb:nth-child(3) {
    top: 50%;
    left: 50%;
    width: 250px;
    height: 250px;
    animation-delay: 4s;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.2;
        transform: scale(0.8) rotate(0deg);
    }
    33% {
        opacity: 0.5;
        transform: scale(1.2) rotate(120deg);
    }
    66% {
        opacity: 0.3;
        transform: scale(1) rotate(240deg);
    }
}

.login-container {
    position: relative;
    z-index: 10;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 60px 50px;
    border: 2px solid rgba(255, 87, 34, 0.4);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6), 0 0 60px rgba(255, 87, 34, 0.3);
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: fadeInScale 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #FF5722, #FF9800, #FFD700, #FF9800, #FF5722);
    background-size: 200% 100%;
    animation: gradientFlow 3s ease infinite;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.logo-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.3), rgba(255, 152, 0, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    border: 4px solid rgba(255, 87, 34, 0.5);
    box-shadow: 0 10px 40px rgba(255, 87, 34, 0.4), inset 0 0 30px rgba(255, 87, 34, 0.1);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 40px rgba(255, 87, 34, 0.4), inset 0 0 30px rgba(255, 87, 34, 0.1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 50px rgba(255, 87, 34, 0.6), inset 0 0 40px rgba(255, 87, 34, 0.2);
    }
}

.login-title {
    font-size: 2.8rem;
    background: linear-gradient(135deg, #FF5722, #FF9800, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    font-weight: bold;
    text-shadow: 0 0 30px rgba(255, 87, 34, 0.5);
    animation: titleGlow 2s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(255, 87, 34, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(255, 87, 34, 0.6));
    }
}

.login-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

#buttonDiv {
    margin: 30px 0;
    display: flex;
    justify-content: center;
}

.error-msg {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.2), rgba(244, 67, 54, 0.1));
    border: 2px solid rgba(244, 67, 54, 0.5);
    padding: 18px 25px;
    border-radius: 15px;
    margin-top: 25px;
    display: none;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(244, 67, 54, 0.3);
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.error-msg.active {
    display: flex;
}

.error-icon {
    font-size: 24px;
    filter: drop-shadow(0 0 10px rgba(244, 67, 54, 0.5));
}

#errorText {
    color: #fff;
    font-weight: 500;
    flex: 1;
}

.loading {
    display: none;
    margin-top: 25px;
    padding: 20px;
}

.loading.active {
    display: block;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #FF5722;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
    box-shadow: 0 0 20px rgba(255, 87, 34, 0.3);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.footer-text {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 87, 34, 0.2);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-text i {
    color: #FF5722;
    filter: drop-shadow(0 0 5px #FF5722);
}

@media (max-width: 768px) {
    .login-container {
        padding: 40px 30px;
    }

    .logo-icon {
        width: 100px;
        height: 100px;
        font-size: 50px;
    }

    .login-title {
        font-size: 2.2rem;
    }

    .login-subtitle {
        font-size: 1rem;
    }
}