body {
    font-family: "Poppins", sans-serif;
    overflow: hidden;
}

.login_bg {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login_bg .background-img {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: center;
    z-index: -2;
}

.login_bg::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.logoImg {
    width: 20vw;
    max-width: 350px;
    min-width: 150px;
    height: auto;
    z-index: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 1s ease;
}

.logoImg.top-left {
    top: 20px;
    left: 20px;
    transform: none;
    width: 6vw;
    max-width: 100px;
    min-width: 80px;
    height: auto;
}

.splashText {
    position: absolute;
    left: 50px;
    bottom: 50px;
    font-size: 2rem;
    font-family: 'Stalinist One', sans-serif;
    color: #ffffff;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transform: translateY(-50px);
}

.splashText2 {
    position: absolute;
    left: 50px;
    bottom: 20px;
    font-size: 30px;
    font-family: 'Stalinist One', sans-serif;
    color: #ffffff;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.login-form {
    display: none;
    position: absolute;
    right: -100%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    border-radius: 10px;
    width: 550px;
    height: auto; /* Increased height to accommodate Google Sign-In button */
    color: white;
    transition: right 1s ease;
}

.login-form.visible {
    right: 50px;
}

.login-form label {
    color: white;
    font-weight: 500;
    font-size: 16px;
}

.login-form .form-control {
    height: 64px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid #B1B1B1;
    box-shadow: 0px 4px 4px 0px rgba(255, 255, 255, 0.25);
}

.login-form .btn {
    height: 54px;
    font-weight: 600;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-form .btn#googleSignInBtn {
    background-color: #fff;
    color: #000;
    font-weight: 600;
    border: 1px solid #B1B1B1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-form .btn#googleSignInBtn:hover {
    background-color: #f8f9fa;
}

.login-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

input[type="checkbox"] {
    width: 1em;
    height: 1rem;
}

/* For screens below 1000px */
@media (max-width: 1000px) {
    body {
        overflow: auto;
    }

    .login_bg {
        height: auto;
        min-height: 100vh;
        padding: 20px;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .logoImg {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 0 auto;
        width: 30vw;
        max-width: 200px;
        min-width: 100px;
    }

    .logoImg.top-left {
        position: fixed;
        top: 10px;
        left: 10px;
        margin: 0;
        width: 12vw;
        max-width: 80px;
        min-width: 60px;
        z-index: 2;
    }

    .splashText {
        display: none;
        position: relative;
        left: auto;
        bottom: auto;
        width: 100%;
        text-align: center;
        margin: 10px 0;
        transform: none;
        order: 2;
    }

    .splashText2 {
        display: block;
        position: relative;
        left: auto;
        bottom: auto;
        width: 100%;
        text-align: center;
        margin: 10px 0;
        transform: none;
        order: 3;
    }

    .login-form {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin: 0 auto;
        width: 85vw;
        max-width: 450px;
        min-width: 280px;
        height: auto;
        order: 1;
        display: block;
        padding: 1.5rem;
    }

    .login-form.visible {
        right: auto;
    }
}

@media (max-width: 768px) {
    .login-form {
        padding: 1.5rem;
        width: 90vw;
        max-width: 400px;
        min-width: 260px;
    }

    .splashText,
    .splashText2 {
        font-size: 1.5rem;
    }

    .login-form .form-control {
        height: 50px;
    }

    .login-form .btn {
        height: 48px;
    }

    .logoImg {
        width: 35vw;
        max-width: 180px;
        min-width: 90px;
    }

    .logoImg.top-left {
        width: 15vw;
        max-width: 70px;
        min-width: 50px;
    }
}

@media (max-width: 576px) {
    .login-form {
        padding: 1rem;
        width: 95vw;
        max-width: 350px;
        min-width: 240px;
    }

    .splashText,
    .splashText2 {
        font-size: 1.2rem;
    }

    .logoImg {
        width: 40vw;
        max-width: 150px;
        min-width: 80px;
    }

    .logoImg.top-left {
        width: 20vw;
        max-width: 60px;
        min-width: 40px;
    }

    .login-form .form-control {
        height: 45px;
    }

    .login-form .btn {
        height: 40px;
    }
}

@media (max-width: 320px) {
    .login_bg {
        padding: 10px;
        gap: 20px;
    }

    .logoImg {
        width: 45vw;
        max-width: 120px;
        min-width: 70px;
    }

    .logoImg.top-left {
        position: absolute;
        width: 5vw;
        max-width: 50px;
        min-width: 35px;
        top: 3px;
        left: 3px;
        z-index: 2;
    }

    .login-form {
        padding: 0.8rem;
        width: 98vw;
        max-width: 300px;
        min-width: 220px;
    }

    .splashText,
    .splashText2 {
        font-size: 1rem;
        margin: 5px 0;
    }

    .login-form .form-control {
        height: 40px;
    }

    .login-form .btn {
        height: 36px;
    }
}