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

.login-bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: url('/public/img/yellow_bg.webp');
    background-size: 100%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    animation: motionBackground 300s infinite;

    contain: layout style;
}

.login-window {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.0);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}



.login-container {
    width: 19vw;
    height: fit-content;
    padding-top: 20px;
    position: relative;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    backdrop-filter: blur(100px);
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);

    min-width: 485px;
    min-height: 510px;
}

.login-container-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

@keyframes folowBorder {
    0% {
        left: 0;
        top: 0;
    }
    25% {
        top: 100%;
        left: 0;
    }
    50% {
        left: 100%;
        top: 100%;
    }
    75% {
        top: 0;
        left: 100%;
    }
    100% {
        left: 0;
        top: 0;
    }
}

@keyframes folowBorder2 {
    0% {
        right: 0;
        top: 0;
    }
    25% {
        top: 100%;
        right: 0;
    }
    50% {
        right: 100%;
        top: 100%;
    }
    75% {
        top: 0;
        right: 100%;
    }
    100% {
        right: 0;
        top: 0;
    }
}



.login-container-movinglight {
    width: 0px;
    height: 60px;
    position: absolute;
    left: 0;
    top: 60px;
    box-shadow: 0 0 200px 50px rgb(255, 196, 0);

    animation: folowBorder 60s  infinite;
}


.login-container-movinglight-2 {
    width: 0px;
    height: 60px;
    position: absolute;
    right: 0;
    top: 0px;
    box-shadow: 0 0 200px 50px rgb(255, 170, 0);

    animation: folowBorder2 60s  infinite;
}

.login-video {
    width: 100%;
    position: absolute;
    top: -300px;
}

.login-logo {
    width: 100%;
    object-fit: contain;
    height: 100px;
}


.login-title {
    font-size: 2em;
    font-weight: 700;
    color: white;
    margin: 0;
}









.login-input-container {
    width: 80%;
    height: 50px;
    margin-top: 30px;
    background-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 3px;

    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;

    overflow: hidden;

    transition-duration: 600ms;
}

.login-input-container:hover {
    background-color: rgba(255, 255, 255, 0.29);
}

.login-input-container:focus-within {
    background-color: rgba(255, 255, 255, 0.32);
}

.login-input-container span {
    margin-left: 5px;
    height: 100%;
    line-height: 50px;
}

.login-input-container input {
    flex-grow: 1;
    margin-left: 5px;
    height: 100%;
    border: none;
    outline: none;
    background-color: transparent;
    color: white;
}

.login-social-container {
    width: 80%;
    height: fit-content;
    min-height: 50px;
    margin-top: 0px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;

    margin-bottom: 30px;
}

.login-subtitle {
    margin: 0;
    margin-top: 70px;
    margin-bottom: 3px;
    font-size: 1.2em;
}

.login-social-button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-left: 30px;
    margin-right: 30px;
    transition-duration: 300ms;
}

.login-social-button:hover {
    box-shadow: 0 0 100px 10px #ff9100;
    transform: scale(1.2);
}

.login-social-button-logo {
    width: 100%;
    height: 100%;
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;
    filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(231deg) brightness(106%) contrast(106%);
}

.login-button {
    width: 50%;
    height: 50px;
    color: white;
    background-color: rgba(255, 255, 255, 0.3);
    border: 0;
    border-radius: 5px;
    margin-top: 50px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition-duration: 600ms;

    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.login-button:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.login-loading {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid white;
    border-top: 2px solid transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.login-container-footer {
    margin-top: auto;
    bottom: 0;
    min-height: 30px;
    line-height: 30px;
    height: fit-content;
    flex-wrap: wrap;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-bottom: 5px;
}

.login-container-footer a {
    color: white;
    text-decoration: none;
    font-size: 0.8em;
    margin-left: 15px;
    margin-right: 15px;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

.login-container-footer a:hover {
    text-decoration: underline;
}

.login-password-question-link {
    color: white;
    text-decoration: none;
    font-size: 0.8em;
    margin-top: 10px;
}

.login-password-question-link:hover {
    text-decoration: underline;
}




/* If we have reduced motion active, then disable animations */ 
@media (prefers-reduced-motion: reduce) {
    .login-bg {
        animation: none;
    }

    .login-container-movinglight {
        display: none;
    }

    .login-container-movinglight-2 {
        display: none;
    }
}