
body {
    background-color: #071A2B;
    font-family: 'Poppins', sans-serif;
    color: #2c3e50;
}

.container {
    max-width: 900px;
    margin: 50px auto;
}

.brand {
    padding: 20px;
    background: #3498db;
    color: #fff;
    min-height: 540px;
    position: relative;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}

.brand .heading {
    text-align: center;
}

.brand .heading h2 {
    font-size: 50px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0;
    color: #fff;
}

.brand .heading p {
    font-size: 18px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 10px;
    color: #ecf0f1;
}

.login-container {
    padding: 30px;
    background-color: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    min-height: 540px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.login-container .login-form {
    width: 100%;
    max-width: 300px; /* Limit the width of the form for a centered look */
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-control {
    border: none;
    border-bottom: 2px solid #bdc3c7;
    border-radius: 0;
    box-shadow: none;
    padding: 8px 0;
    font-size: 14px;
    color: #2c3e50;
}

.form-control:focus {
    border-bottom: 2px solid #3498db;
    box-shadow: none;
}

.form-label {
    position: absolute;
    left: 0;
    top: 8px;
    font-size: 14px;
    transition: all 0.3s;
    color: #bdc3c7;
    pointer-events: none;
}

.form-control:focus + .form-label,
.form-control:not(:placeholder-shown) + .form-label {
    top: -18px;
    font-size: 12px;
    color: #3498db;
}

.form-control.is-invalid {
    border-bottom: 2px solid #e74c3c;
}

.btn-login {
    background-color: #3498db;
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-login:hover {
    background-color: #2f89c5;
    color: white;
}

.btn-login:focus {
    box-shadow: 0 0 5px rgba(46, 204, 113, 0.5);
}

/* Logo Styling */
.logo {
    max-width: 250px;
    margin-bottom: 20px;
}

/* Forgot Password Styling */
.forgot-password {
    display: block;
    margin-top: 10px;
    text-align: right;
    color: #3498db;
    font-size: 12px;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Language Chooser Styling */
.language-chooser {
    position: absolute;
    top: 20px;
    right: 20px;
}

.language-chooser .dropdown-menu {
    min-width: 100px;
    background-color: #fff;
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.language-chooser .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px;
    font-size: 14px;
}

.language-chooser .dropdown-item i {
    font-size: 16px;
}

.language-chooser .dropdown-item:hover {
    background-color: #3498db;
    color: #fff;
}


/* Styling for the form group to align with the login form */
.forgot-password-modal .form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.forgot-password-modal .form-control {
    border: none;
    border-bottom: 2px solid #bdc3c7;
    border-radius: 0;
    box-shadow: none;
    padding: 8px 0;
    font-size: 14px;
    color: #2c3e50;
}

.forgot-password-modal .form-control:focus {
    border-bottom: 2px solid #3498db;
    box-shadow: none;
}

.forgot-password-modal .form-label {
    position: absolute;
    left: 0;
    top: 8px;
    font-size: 14px;
    transition: all 0.3s;
    color: #bdc3c7;
    pointer-events: none;
}

.forgot-password-modal .form-control:focus + .form-label,
.forgot-password-modal .form-control:not(:placeholder-shown) + .form-label {
    top: -18px;
    font-size: 12px;
    color: #3498db;
}

/* Removing extra spacing between input and buttons */
.forgot-password-modal .modal-body {
    padding-bottom: 0;
}

.forgot-password-modal .modal-footer {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

/* Align buttons in the modal */
.forgot-password-modal .modal-footer .btn {
    margin-bottom: 0;
}

/* Common button styles */
.btn {
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 30px;
    transition: all 0.3s;
    width: 100%; /* Make buttons full width to match login button */
}

/* Send button styles (same as login button) */
.btn-primary {
    background-color: #3498db;
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background-color: #2f89c5;
    color: white;
}

.btn-primary:focus {
    box-shadow: 0 0 5px rgba(46, 204, 113, 0.5);
}

/* Cancel button styles (gray color) */
.btn-secondary {
    background-color: #bdc3c7;
    color: #fff;
    border: none;
}

.btn-secondary:hover {
    background-color: #aab0b3;
    color: white;
}

.btn-secondary:focus {
    box-shadow: 0 0 5px rgba(128, 128, 128, 0.5);
}

/* Mobile Version */
@media (max-width: 768px) {
    .container {
        margin: 20px auto;
        padding: 10px;
    }

    .language-chooser {
        top: 10px;
        right: 10px;
        z-index: 10; /* Ensure it stays above other elements */
    }

    .brand {
        min-height: auto;
        padding: 20px;
        margin-top: 60px; /* Add margin to ensure visibility of the language chooser */
    }

    .brand .heading h2 {
        font-size: 36px;
    }

    .brand .heading p {
        font-size: 14px;
    }

    .login-container {
        margin-top: 20px;
    }

    .login-container .login-form {
        max-width: 100%;
    }

    .btn-login {
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }

    .forgot-password {
        text-align: center;
    }
}

/* Darken color function in PHP */
