html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Prevent both horizontal and vertical scrolling */
    font-family: Arial, sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f4f4f9;
}

.container {
    display: flex;
    width: 100%;
    height: 100%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    flex-direction: row; /* Set the default flex direction to row */
}

.left {
    background-color: #1231a1;
    color: #fff;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 40%;
    box-sizing: border-box; /* Ensure padding and border are included in the width */
}

.left .logo img {
    width: 110px;
    height: auto;
}

.left h1 {
    margin: 20px 0;
    font-size: 32px;
}

.left p {
    margin: 0;
    font-size: 16px;
}

.right {
    background-color: #fff;
    padding: 20px;
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box; /* Ensure padding and border are included in the width */
    overflow: hidden;
}

.signin-box {
    max-width: 300px;
    margin: 0 auto;
    text-align: left;
    font-family: 'Lato', sans-serif;
    font-weight: 100px;
}

.signin-box h2 {
    margin-bottom: 10px;
    font-size: 32px;
    font-weight: normal;
}

.signin-box p {
    margin-bottom: 20px;
    color: #777;
    font-size: 14px;
}

.signin-box form {
    display: flex;
    flex-direction: column;
}

.signin-box label {
    text-align: left;
    margin-bottom: 5px;
    font-weight: normal;
    font-size: 14px;
}

.signin-box input {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.forget {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forget a {
    color: #777;
    font-size: 12px;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    color: #777;
}

.remember-forgot label {
    font-size: 12px;
}

.remember-forgot input {
    width: 13px;
    height: 13px;
}

.signin-box button {
    border: none;
    border-radius: 4px;
    background-color: #162447;
    color: #fff;
    cursor: pointer;
    margin-bottom: 10px;
    height: 40px;
}

.signin-box .or {
    text-align: center;
    margin: 20px 0;
    font-size: 14px;
    color: #777;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 400px;
    margin: 20px 0;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ccc;
}

.divider:not(:empty)::before {
    margin-right: .25em;
}

.divider:not(:empty)::after {
    margin-left: .25em;
}

.divider span {
    padding: 0 10px;
    color: #aaa;
}

/* Media queries for mobile devices */
@media (max-width: 768px) {
    .container {
        flex-direction: column; /* Change flex direction to column on smaller screens */
        overflow: hidden; /* Prevent horizontal scrolling */
    }
    
    .left {
        width: 100%;
        padding: 20px;
        text-align: center;
        box-sizing: border-box; /* Ensure padding and border are included in the width */
        height: 40%; /* Adjust height to fit content without scrolling */
    }

    .left .logo img {
        width: 80px; /* Reduce logo size */
    }

    .left h1 {
        font-size: 24px;
    }

    .left p {
        font-size: 14px;
    }

    .right {
        width: 100%;
        padding: 20px;
        box-sizing: border-box; /* Ensure padding and border are included in the width */
        height: 60%; /* Adjust height to fit content without scrolling */
        overflow-y: hidden; /* Prevent vertical scrolling */
    }

    .signin-box {
        width: 100%;
        padding: 10px;
        box-sizing: border-box; /* Ensure padding and border are included in the width */
    }

    .signin-box h2 {
        font-size: 24px;
    }

    .signin-box p {
        font-size: 12px;
    }

    .forget {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .forget a {
        text-align: right;
        margin-top: 0;
        padding-left: 0;
    }

    .remember-forgot {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}
