﻿.page-login {
    position: relative;
    overflow: hidden;
}

.animation-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 300%;
    height: 100%;
    background: linear-gradient(to right, #87ceeb, #87ceeb); /* Sky blue */
    background-size: cover;
    animation: backgroundMove 60s linear infinite;
    z-index: 0;
}

/* Clouds */
.cloud {
    position: absolute;
    top: 10%;
    width: 150px;
    height: 80px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 60px 0 white, 120px 0 white;
    opacity: 0.8;
    animation: cloudMove 100s linear infinite;
}

    .cloud:nth-child(2) {
        top: 15%;
        width: 100px;
        animation-duration: 80s;
    }

    .cloud:nth-child(3) {
        top: 20%;
        width: 200px;
        animation-duration: 120s;
    }

/* Lahore City Skyline */
.city-skyline {
    position: absolute;
    bottom: 20%;
    width: 300%;
    height: 40%;
    background: url('lahore-skyline.png') repeat-x;
    background-size: contain;
    animation: skylineMove 60s linear infinite;
}

/* Bike */
.bike {
    position: absolute;
    bottom: 10%;
    left: -10%;
    width: 200px;
    animation: bikeMove 20s linear infinite, bikeBounce 2s ease-in-out infinite;
}

    .bike img {
        width: 100%;
    }

/* Box label behind bike */
.box-label {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    background: #ff4d4d;
    color: white;
    padding: 2px 5px;
    font-size: 12px;
    border-radius: 5px;
}

/* Billboard */
.billboard {
    position: absolute;
    right: 10%;
    bottom: 30%;
    width: 200px;
    height: 120px;
    background: white;
    border: 2px solid black;
    border-radius: 10px;
    padding: 10px;
    animation: billboardAppear 5s ease-in-out infinite alternate;
}

.billboard-text {
    font-size: 12px;
    color: #333;
    text-align: center;
}

/* Animations */
@keyframes backgroundMove {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes skylineMove {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes bikeMove {
    0% {
        left: -20%;
    }

    100% {
        left: 120%;
    }
}

@keyframes bikeBounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes cloudMove {
    0% {
        transform: translateX(-200%);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes billboardAppear {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* Ensure Login Form is Above Animation */
.container {
    position: relative;
    z-index: 1;
}
