@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap');

html, body {
    width: 100%;
    /*min-height: 100vh;*/
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: Poppins, Lexend, Helvetica, sans-serif;
    background: linear-gradient(163deg, #5aa4ff, #ffd86869);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    transition: background 0.3s, color 0.3s;
    overflow: auto;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    min-height: 90vh;
    overflow: hidden;
}

    body.dark-theme {
        background: #333;
        color: #f0f2f5;
    }

/*------------ Login container ------------*/

.container.dark-theme {
    background: #333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.box-area {
    width: 930px;
}

.theme-toggle,
.menu-toggle {
    cursor: pointer;
    font-size: 1.5rem;
}

    .theme-toggle span,
    .menu-toggle span {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 50%;
        background: #007bff;
        color: white;
        transition: background 0.3s;
    }

        .theme-toggle span:hover,
        .menu-toggle span:hover {
            background: #0056b3;
        }

/*------------ Left Box ------------*/



/*------------ Right box ------------*/
.right-box {
    padding: 40px 30px 40px 40px;
}


.forgot-password {
    text-align: right;
    justify-content: space-between;
    margin-bottom: 20px;
}

    .forgot-password a {
        text-decoration: none;
        color: #007bff;
        font-size: 14px;
    }

        .forgot-password a:hover {
            text-decoration: underline;
            color: #0d6efd;
            background-color: transparent;
        }

#btnLogin {
    background-color: transparent;
    color: black;
    padding: 10px 20px;
    border: 1px solid black;
    border-radius: 5px;
    cursor: pointer;
}

    #btnLogin:hover {
        border: 1px solid white;
        color: white;
        background-color: #2563eb;
    }

.login-footer {
    text-align: center;
    padding: 10px;
    background: rgb(255 255 255 / 0%);
    border-radius: 20px;
    color: #000000;
    font-size: 0.9rem;
    box-shadow: 0 8px 32px rgb(161 161 161);
    margin-top: 0px;
}

/*------------ Loading Gif ------------*/
.hidden {
    display: none;
}

#loading {
    position: fixed;
    margin-left: 235px;
    margin-top: 110px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999; /* Ensure the loading GIF is on top of other elements */
}

    #loading img {
        width: 50px; /* Adjust size as needed */
    }

/*------------ Custom Placeholder ------------*/

::placeholder {
    font-size: 16px;
}

.rounded-4 {
    border-radius: 20px;
}

.rounded-5 {
    border-radius: 30px;
}


/*------------ For small screens------------*/
@media screen and (max-width: 768px) {

    .box-area {
        margin: 0 10px;
        width: 100%;
    }

    .left-box {
        /* Add style for image to fit/stretch into the div and responsive */
        margin: 0 auto;
        text-align: center;
    }


    .right-box {
        padding: 20px;
    }
}

/* Styles for mobile devices (up to 768px) */
@media only screen and (min-width: 426px) and (max-width: 768px) {

    .box-area {
        margin: 0 10px;
        width: 100%;
    }

    .left-box {
        padding: 5px;
    }

        .left-box img {
            height: auto;
        }

    #loading {
        margin-left: 162px;
        margin-top: 145px;
    }
}

@media only screen and (max-width: 426px) {

    #loading {
        visibility: hidden;
    }

}
