body, html {
    height: 100%;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f0f2f5; /* A more subtle background */
}

.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 20px;
}

.login-box {
    display: flex;
    width: 100%;
    max-width: 960px;
    min-height: 600px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Important for keeping the child element's border-radius */
}

.login-left {
    flex: 1;
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

.login-branding .logo {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    border: 2px solid white;
    display: inline-block;
    padding: 10px 20px;
    border-radius: 10px;
}

.login-branding h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.login-branding p {
    font-size: 1.2rem;
    max-width: 300px;
    margin: 0 auto;
}

.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
}

.login-form-container {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-form-container h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #333;
}

.login-form-container .sub-title {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 2.5rem;
}

.form-control {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    height: auto;
    font-size: 1rem;
    border: 1px solid #ddd;
    background-color: #f8f9fa;
    transition: all 0.2s ease-in-out;
}

.form-control:focus {
    border-color: #84fab0;
    box-shadow: 0 0 0 4px rgba(132, 250, 176, 0.25);
    background-color: #fff;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.btn-primary {
    background: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.85rem 1rem;
    width: 100%;
    color: white;
    transition: all 0.3s ease;
    background-size: 200% auto;
}

.btn-primary:hover {
    background-position: right center; /* change the direction of the change here */
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.custom-control-label {
    color: #495057;
}

.login-form .field-loginform-rememberme {
    text-align: left;
}

.invalid-feedback {
    text-align: left;
    font-size: 0.875rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .login-box {
        flex-direction: column;
        min-height: auto;
    }

    .login-left {
        padding: 40px 20px;
    }

    .login-right {
        padding: 40px 20px;
    }

    .login-branding h2 {
        font-size: 2rem;
    }

    .login-form-container h1 {
        font-size: 1.8rem;
    }
}