/* Login Page Advanced Animations */

/* Enhanced Background Gradient Animation */
.animated-bg {
    background: linear-gradient(
        -45deg,
        #ff6b35,
        #f7931e,
        #ffb347,
        #ff8c42,
        #ffa366,
        #ff9f40,
        #ffad33,
        #ff7f00
    );
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 100% 50%;
    }
    50% {
        background-position: 100% 100%;
    }
    75% {
        background-position: 0% 100%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Advanced Floating Particles */
.particle {
    position: absolute;
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
    opacity: 0.1;
    backdrop-filter: blur(2px);
}

.particle:nth-child(1) {
    width: 120px;
    height: 120px;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.4),
        rgba(255, 255, 255, 0.1)
    );
    top: 10%;
    left: 20%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.particle:nth-child(2) {
    width: 80px;
    height: 80px;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.3),
        rgba(255, 255, 255, 0.05)
    );
    top: 70%;
    left: 80%;
    animation-delay: 3s;
    animation-duration: 10s;
}

.particle:nth-child(3) {
    width: 60px;
    height: 60px;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.35),
        rgba(255, 255, 255, 0.1)
    );
    top: 40%;
    left: 10%;
    animation-delay: 6s;
    animation-duration: 14s;
}

.particle:nth-child(4) {
    width: 100px;
    height: 100px;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.25),
        rgba(255, 255, 255, 0.05)
    );
    top: 20%;
    left: 70%;
    animation-delay: 2s;
    animation-duration: 11s;
}

.particle:nth-child(5) {
    width: 90px;
    height: 90px;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.3),
        rgba(255, 255, 255, 0.08)
    );
    top: 80%;
    left: 30%;
    animation-delay: 4s;
    animation-duration: 13s;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.1;
    }
    25% {
        transform: translateY(-40px) rotate(90deg) scale(1.1);
        opacity: 0.2;
    }
    50% {
        transform: translateY(-20px) rotate(180deg) scale(0.9);
        opacity: 0.15;
    }
    75% {
        transform: translateY(40px) rotate(270deg) scale(1.05);
        opacity: 0.25;
    }
}

/* Enhanced Geometric Shapes */
.geometric-shape {
    position: absolute;
    opacity: 0.08;
    animation: rotate3d 25s linear infinite;
    backdrop-filter: blur(1px);
}

.triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(255, 255, 255, 0.4);
    top: 15%;
    right: 15%;
    animation-delay: 0s;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.square {
    width: 100px;
    height: 100px;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.3),
        rgba(255, 255, 255, 0.1)
    );
    top: 60%;
    left: 5%;
    animation-delay: 8s;
    border-radius: 20px;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
}

.diamond {
    width: 80px;
    height: 80px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.35),
        rgba(255, 255, 255, 0.1)
    );
    transform: rotate(45deg);
    top: 30%;
    right: 25%;
    animation-delay: 15s;
    border-radius: 15px;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.25));
}

@keyframes rotate3d {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 0.08;
    }
    25% {
        transform: rotate(90deg) scale(1.1);
        opacity: 0.12;
    }
    50% {
        transform: rotate(180deg) scale(0.9);
        opacity: 0.06;
    }
    75% {
        transform: rotate(270deg) scale(1.05);
        opacity: 0.1;
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: 0.08;
    }
}

/* Advanced Login Box Animation */
.login-box {
    animation: slideUpFade 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 50px rgba(255, 107, 53, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.login-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.05)
    );
    border-radius: inherit;
    z-index: -1;
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(80px) scale(0.95);
        filter: blur(10px);
    }
    50% {
        opacity: 0.7;
        transform: translateY(-10px) scale(1.02);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
}

/* Enhanced Wave Animation */
.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' opacity='.25' fill='%23FFFFFF'%3E%3C/path%3E%3Cpath d='M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z' opacity='.5' fill='%23FFFFFF'%3E%3C/path%3E%3Cpath d='M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z' fill='%23FFFFFF'%3E%3C/path%3E%3C/svg%3E")
        repeat-x;
    animation: waveMove 20s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes waveMove {
    0%,
    100% {
        transform: translateX(0) translateY(0);
        opacity: 0.6;
    }
    25% {
        transform: translateX(-25px) translateY(-5px);
        opacity: 0.8;
    }
    50% {
        transform: translateX(-50px) translateY(0);
        opacity: 0.4;
    }
    75% {
        transform: translateX(-25px) translateY(5px);
        opacity: 0.7;
    }
}

/* Enhanced Input Field Animation */
.input-field {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid rgba(255, 107, 53, 0.2);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: relative;
}

.input-field:focus {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 107, 53, 0.3),
        0 0 0 4px rgba(255, 107, 53, 0.1);
    border-color: #ff6b35;
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(0px);
}

.input-field:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.2);
    border-color: rgba(255, 107, 53, 0.4);
}

/* Enhanced Button Animation */
.login-button {
    background: linear-gradient(135deg, #ff6b35, #f7931e, #ff8c42);
    background-size: 200% 200%;
    animation: gradientButton 3s ease infinite;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

@keyframes gradientButton {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.login-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.4),
        0 0 20px rgba(255, 107, 53, 0.3);
}

.login-button:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
}

.login-button:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.6s;
}

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

/* Enhanced Logo Animation */
.logo-container {
    animation: logoFloat 4s ease-in-out infinite;
    filter: drop-shadow(0 5px 15px rgba(255, 107, 53, 0.2));
}

@keyframes logoFloat {
    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
        filter: drop-shadow(0 5px 15px rgba(255, 107, 53, 0.2));
    }
    50% {
        transform: translateY(-15px) rotate(2deg);
        filter: drop-shadow(0 10px 25px rgba(255, 107, 53, 0.3));
    }
}

/* Enhanced Pulse Animation */
.pulse-slow {
    animation: pulseAdvanced 6s ease-in-out infinite;
}

@keyframes pulseAdvanced {
    0%,
    100% {
        opacity: 0.1;
        transform: scale(1) rotate(0deg);
    }
    25% {
        opacity: 0.3;
        transform: scale(1.1) rotate(90deg);
    }
    50% {
        opacity: 0.2;
        transform: scale(0.9) rotate(180deg);
    }
    75% {
        opacity: 0.4;
        transform: scale(1.05) rotate(270deg);
    }
}

/* Additional Decoration Elements */
.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent);
    animation: decorationFloat 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes decorationFloat {
    0%,
    100% {
        transform: translateY(0px) scale(1);
        opacity: 0.1;
    }
    50% {
        transform: translateY(-30px) scale(1.2);
        opacity: 0.3;
    }
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .particle {
        width: 60px !important;
        height: 60px !important;
    }

    .geometric-shape {
        opacity: 0.05;
    }

    .triangle {
        border-left-width: 30px;
        border-right-width: 30px;
        border-bottom-width: 52px;
    }

    .square {
        width: 60px;
        height: 60px;
    }

    .diamond {
        width: 50px;
        height: 50px;
    }

    .star {
        width: 1px !important;
        height: 1px !important;
    }

    .energy-pulse {
        width: 40px !important;
        height: 40px !important;
    }

    .decoration-circle {
        width: 80px !important;
        height: 80px !important;
    }
}

/* Twinkling Stars */
.star {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: twinkle 2s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes twinkle {
    0% {
        opacity: 0.3;
        transform: scale(0.8);
        box-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
    }
    100% {
        opacity: 1;
        transform: scale(1.2);
        box-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
    }
}

/* Energy Pulses */
.energy-pulse {
    position: absolute;
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-radius: 50%;
    animation: energyPulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes energyPulse {
    0% {
        transform: scale(1);
        opacity: 1;
        border-color: rgba(255, 107, 53, 0.6);
    }
    50% {
        transform: scale(2);
        opacity: 0.5;
        border-color: rgba(255, 107, 53, 0.3);
    }
    100% {
        transform: scale(3);
        opacity: 0;
        border-color: rgba(255, 107, 53, 0.1);
    }
}
