/* Login Page Styles with Animated Background */

/* Animated Background */
.login-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #121212 0%, #1a1a1a 100%);
    z-index: -2;
    overflow: hidden;
}

.login-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #0a0a0a 0%, #1a1a1a 50%, #2a2a2a 100%);
    animation: gradientShift 8s ease-in-out infinite;
    z-index: -1;
}

@keyframes gradientShift {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Floating Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(208, 109, 18, 0.3);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(247, 218, 11, 0.2);
}

.particle:nth-child(1) {
    width: 80px;
    height: 80px;
    left: 10%;
    top: 20%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.particle:nth-child(2) {
    width: 60px;
    height: 60px;
    left: 80%;
    top: 80%;
    animation-delay: 2s;
    animation-duration: 10s;
}

.particle:nth-child(3) {
    width: 40px;
    height: 40px;
    left: 70%;
    top: 10%;
    animation-delay: 4s;
    animation-duration: 6s;
}

.particle:nth-child(4) {
    width: 100px;
    height: 100px;
    left: 20%;
    top: 70%;
    animation-delay: 1s;
    animation-duration: 12s;
}

.particle:nth-child(5) {
    width: 50px;
    height: 50px;
    left: 50%;
    top: 50%;
    animation-delay: 3s;
    animation-duration: 9s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.8;
    }
}

/* Login Container Styles */
.login-container {
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    background: rgba(43, 44, 48, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.8s ease-out;
    max-width: 450px;
    width: 90%;
    margin: 0 auto;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo Animation */
.logo-container {
    animation: logoGlow 2s ease-in-out infinite alternate;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin: 1rem 0 !important;
}

@keyframes logoGlow {
    from {
        filter: drop-shadow(0 0 10px rgba(247, 218, 11, 0.3));
    }
    to {
        filter: drop-shadow(0 0 20px rgba(247, 218, 11, 0.6));
    }
}

#login-logo {
    transition: transform 0.3s ease;
}

#login-logo:hover {
    transform: scale(1.05);
}

/* Form Styles */
.login-form {
    position: relative;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-control-animated {
    background: rgba(28, 28, 30, 0.8) !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    color: white !important;
    padding: 1rem 1.5rem !important;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.form-control-animated:focus {
    background: rgba(28, 28, 30, 0.9) !important;
    border-color: #F7DA0B !important;
    box-shadow: 0 0 0 0.2rem rgba(247, 218, 11, 0.25) !important;
    transform: translateY(-2px);
}

.form-control-animated::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
    transition: all 0.3s ease;
}

.form-control-animated:focus::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* Label Animation */
.form-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

/* Button Styles */
.btn-login {
    background: linear-gradient(135deg, #F7DA0B 0%, #E6C309 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    color: #121212 !important;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem 2rem !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-login::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: left 0.5s;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    background: linear-gradient(135deg, #E6C309 0%, #D06D12 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(247, 218, 11, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

/* Title Animation */
.login-title {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 1.5rem !important;
    text-shadow: 0 0 10px rgba(247, 218, 11, 0.3);
    animation: titlePulse 3s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Responsive Design */
@media (max-width: 576px) {
    .login-container {
        margin: 1rem;
        padding: 2rem 1.5rem !important;
    }
    
    .particle {
        display: none;
    }
    
    .logo-container {
        width: 100% !important;
        margin: 1rem 0 !important;
        justify-content: center !important;
    }
    
    #login-logo {
        height: 80px !important;
    }
}

/* Loading Animation for Form Submission */
.btn-login.loading {
    pointer-events: none;
    position: relative;
}

.btn-login.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #121212;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Glassmorphism Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Subtle hover effects for the entire container */
.login-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 55px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}
