/* Variables */
:root {
    --first-color: #ff6347;
    /* Example color, replace with your actual color */
}

/* General Styles */
.login-body {
    min-height: 100vh;
    background: linear-gradient(45deg, #0a0a0a, #1a1a1a);
    overflow: hidden;
}

/* Background Animation */
.background {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 0;
}

.background span {
    position: absolute;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 8s linear infinite;
}

.background span:nth-child(1) {
    width: 20vmin;
    height: 20vmin;
    left: 25%;
    animation-delay: 0s;
}

.background span:nth-child(2) {
    width: 15vmin;
    height: 15vmin;
    left: 10%;
    animation-delay: 2s;
}

.background span:nth-child(3) {
    width: 25vmin;
    height: 25vmin;
    left: 85%;
    animation-delay: 4s;
}

.background span:nth-child(4) {
    width: 10vmin;
    height: 10vmin;
    left: 50%;
    animation-delay: 6s;
}

.background span:nth-child(5) {
    width: 18vmin;
    height: 18vmin;
    left: 65%;
    animation-delay: 8s;
}

.background span:nth-child(6) {
    width: 12vmin;
    height: 12vmin;
    left: 35%;
    animation-delay: 1s;
}

.background span:nth-child(7) {
    width: 22vmin;
    height: 22vmin;
    left: 75%;
    animation-delay: 3s;
}

.background span:nth-child(8) {
    width: 16vmin;
    height: 16vmin;
    left: 15%;
    animation-delay: 5s;
}

.background span:nth-child(9) {
    width: 14vmin;
    height: 14vmin;
    left: 90%;
    animation-delay: 7s;
}

/* Login Container Styles */
body.login-body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* background: #0d1117; */
    overflow: hidden;
}

.login__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    /* background-color: #161b22; */
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    max-width: 600px;
    width: 100%;
    z-index: 2;
}

.login__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.login__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo__img {
    height: 40px;
}

.logo__text {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.login__image {
    max-width: 100%;
    height: 250px;
    margin-top: 2rem;
}

.login__button {
    width: 300px;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #24292f;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    z-index: 2;
}

.login__button:hover {
    background-color: #333;
}

.button__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    z-index: -1;
}

.login__footer {
    text-align: center;
    color: #ccc;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.footer__links {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.footer__links a {
    color: #58a6ff;
    text-decoration: none;
}

.footer__links a:hover {
    text-decoration: underline;
}

/* Responsive behavior */
@media screen and (max-width: 576px) {
    .login__container {
        padding: 2rem;
        height: 100%;
        width: 100%;
        max-width: 95%;
        max-height: 95%;
        display: flex;
        align-items: center;
        justify-content: center;

    }

    .logo__text {
        font-size: 1.2rem;
    }

    .login__button {
        flex-direction: row;
        gap: 5px;
        width: 200px;
    }


}

GitHub Animation .github-animation {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
}

.github-mark {
    position: absolute;
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s ease-in-out infinite;
}

.github-orbit {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: orbit 4s linear infinite;
}

.satellite {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--first-color);
    border-radius: 50%;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px var(--first-color);
}

/* Login Button */
.login__button {
    display: flex;
    width: 300px;
    text-align: center;
    margin-top: 80px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: 12px;
    /* color: #ffffff; */
    font-size: 1.1rem;
    font-weight: 600;
    overflow: hidden;
    transition: all 0.3s ease;
}

.login__button i {
    font-size: 2rem;
    text-align: center;
}


.login__button:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.login__button:hover .button__overlay {
    left: 100%;
}

/* Footer */
.login__footer {
    text-align: center;
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer__links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.footer__links a {
    color: #e51837 ;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__links a:hover {
    color: #ffffff;
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(-50vh) translateX(0) scale(1);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) translateX(30px) scale(1.2);
        opacity: 0;
    }
}

@keyframes cardFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }
}

@keyframes orbit {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}