
@keyframes moveSpotlight {
    0%, 100% {
        transform: translate(-100px, -100px);
    }

    25% {
        transform: translate(100px, -50px);
    }

    50% {
        transform: translate(50px, 100px);
    }

    75% {
        transform: translate(-50px, 50px);
    }
}

/* Background Animation */
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}


@keyframes float-particle {
    0% {
        transform: translateY(100dvh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    overflow-y: scroll; /* Always show vertical scrollbar */
    scrollbar-width: thin;
    scrollbar-color: #001F3F #003366 !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(-45deg, #23a6d5, #0056b3, #00408a, #001F3F, #003366);
    width: 100%;
    height: 100vh;
    animation: gradient 15s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    direction: rtl;
    text-align: right;
    padding: 20px;
    overflow-x: hidden;
}

/* Section and Container */
section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    background: url(/images/transparentrectangle1.png) center center;
    background-size: cover;
    position: relative;
    padding: 20px;
}

/* Login Container with Glass Morphism - FIXED CENTERING */
.login-container {
    position: relative;
    width: 90%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 25px;
    flex-direction: column;
    z-index: 10;
    /* Removed float animation */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    /* Ensure proper centering */
    margin: 0 auto;
}

/* Button Styling */
.boldy {
    display: flex;
    margin: 20px auto; /* Auto-centering horizontally */
    font-family: Arial;
    text-align: center !important;
    justify-content: center !important;
    align-items: center;
    color: #fff;
    font-size: 1.25em;
    font-weight: 700;
    background-color: turquoise;
    height: 50px;
    width: 75% !important;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.5);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 8px 20px white;
    text-shadow: 0 1px 2px rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

    .boldy::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: 0.5s;
    }

    .boldy:hover {
        color: whitesmoke;
        background-color: transparent;
        border-color: turquoise;
        transform: translateY(-5px);
        box-shadow: 0 12px 25px turquoise;
    }

        .boldy:hover::before {
            left: 100%;
        }

    .boldy:active {
        transform: translateY(-2px);
    }

/* Animated Background Elements */
.login-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    z-index: -1;
}

/* Header Styling */
.login-container h2 {
    color: white;
    font-family:Arial;
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    padding-bottom: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

    .login-container h2::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 25%;
        width: 50%;
        height: 3px;
        background: linear-gradient(90deg, transparent, #fff, transparent);
        border-radius: 3px;
    }

/* Password Container */
.password-container {
    position: relative;
}

/* Additional Decorative Elements */
.decoration {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    z-index: 1;
}

.decoration-1 {
    top: 10%;
    right: 10%;
}

.decoration-2 {
    bottom: 10%;
    left: 10%;
}

.moving-spotlight {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(64, 224, 208, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: moveSpotlight 8s infinite ease-in-out;
}

/* Floating Particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float-particle 15s infinite linear;
}


/* Text styles */
h2.mb-3 {
    margin-bottom: 15px !important;
    font-size: 1.4rem !important;
    color: white;
}

h2.mb-7 {
    margin-bottom: 30px !important;
    font-size: 1.2rem !important;
    color: rgba(255, 255, 255, 0.9);
}

/* Media Queries */
@media screen and (max-width: 768px) {
    section {
        padding: 15px;
    }

    .login-container {
        padding: 30px 25px;
        width: 95%;
    }

        .login-container h2 {
            font-size: 1.5rem;
            margin-bottom: 15px;
        }

    h2.mb-3 {
        font-size: 1.2rem !important;
    }

    h2.mb-7 {
        font-size: 1rem !important;
    }

    .boldy {
        font-size: 1.1em;
        height: 45px;
    }
}

@media screen and (max-width: 480px) {
    .login-container {
        padding: 25px 20px;
    }

        .login-container h2 {
            font-size: 1.3rem;
        }

    .boldy {
        font-size: 1em;
        height: 40px;
    }

    .decoration {
        width: 100px;
        height: 100px;
    }
}
