body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
    /* Prevent scrollbars from background image */
}

.login-wrapper {
    display: flex;
    width: 100%;
    max-width: 1000px;
    /* Adjust as needed */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.bg-pic {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    /* Darken background image slightly */
}

.bg-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #fff;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
}

.bg-caption h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.bg-caption p {
    font-size: 1rem;
    opacity: 0.9;
}

.login-container {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.login-container .logo {
    margin-bottom: 30px;
}

.login-container .logo img {
    max-width: 200px;
    height: auto;
}

.login-container h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #333;
}

.login-container p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
    width: 100%;
    max-width: 350px;
    /* Limit form width */
}

.form-group label {
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
    display: block;
}

.form-control {
    border-radius: 8px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
    outline: none;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    width: 100%;
    max-width: 350px;
    /* Match form width */
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.g-recaptcha,
.cf-turnstile {
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
        max-width: 450px;
    }

    .bg-pic {
        height: 200px;
        /* Smaller height for background image on small screens */
    }

    .bg-caption {
        position: static;
        padding: 15px;
        text-align: center;
        background: none;
        border-radius: 0;
    }

    .bg-caption h2 {
        font-size: 1.8rem;
    }

    .bg-caption p {
        font-size: 0.9rem;
    }

    .login-container {
        padding: 30px 20px;
    }

    .login-container .logo {
        margin-bottom: 20px;
    }

    .login-container .logo img {
        max-width: 150px;
    }

    .login-container h2 {
        font-size: 1.5rem;
    }

    .login-container p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .bg-pic {
        display: none;
        /* Hide background image on mobile */
    }
}