.loginContainer {
    width: 100%;
    max-width: 500px;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
    padding: 10px 30px 0px 30px;
    border-radius: 10px;
    margin: 20px auto;
    background: #fff;
}

.loginHead {
    color: #048aae;
    font-size: 25px;
    font-weight: 700;
}

#loginForm .form-label {
    color: #048aae;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

#loginForm .form-control {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 10px;
    font-size: 14px;
}

#loginForm .form-control:focus {
    border-color: #048aae;
    box-shadow: 0 0 0 0.2rem rgba(4, 138, 174, 0.25);
}

.submitBtn {
    background-color: #048aae;
    border: none;
    outline: none;
    padding: 12px 30px;
    color: white;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    min-width: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submitBtn:hover:not(:disabled) {
    background-color: #03708c;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(4, 138, 174, 0.3);
}

.submitBtn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submitBtn .spinner-border {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

.submitBtn.spinner-loading .submit-text {
    opacity: 0.7;
}

.submitBtn .spinner-border {
    display: none;
}

.submitBtn.spinner-loading .spinner-border {
    display: inline-block;
}

.line {
    width: 100%;
    height: 1px;
    background-color: #dee2e6;
    margin: 20px 0;
}

.forgotSection {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 10px;
}

.forgotPara,
.regHere {
    color: #048aae;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgotPara:hover,
.regHere:hover {
    color: #03708c;
    text-decoration: underline;
}

.dontAcc {
    font-size: 16px;
    color: #6c757d;
}

.text-danger {
    font-size: 14px;
    margin-top: 5px;
}

#toggleIcon {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    border-left: none;
    cursor: pointer;
    padding: 0 12px;
}

#toggleIcon:hover {
    background-color: #e9ecef;
}

#toggleIcon i {
    color: #6c757d;
}

.g-recaptcha {
    margin: 20px 0;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .loginContainer {
        margin: 15px;
        max-width: 100%;
    }

    .filter-bar {
        padding: 0.75rem 0.5rem;
    }

    .filter-bar h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .loginContainer {
        padding: 3px 7px 0px 7px;
        margin: 10px;
        border-radius: 8px;
    }

    .submitBtn {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
    }

    .forgotSection {
        text-align: center;
    }

    #loginForm .form-label {
        font-size: 14px;
    }

    #loginForm .form-control {
        padding: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .g-recaptcha {
        transform: scale(0.9);
        transform-origin: left top;
        margin: 15px 0;
    }

    .filter-bar h1 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .loginContainer {
        margin: 5px;
        padding: 15px;
    }

    .g-recaptcha {
        transform: scale(0.8);
        transform-origin: left top;
    }

    .forgotSection p {
        font-size: 14px;
    }
}

.filter-bar {
    background-color: #43BDA7;
    padding: 1rem 0.5rem;
}

.filter-bar .form-select,
.filter-bar .btn-search {
    border-radius: 4px;
}

.btn-search {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 0.6rem 1.5rem;
}

.btn-search:hover {
    opacity: 0.9;
}

.tittle-color {
    color: #ffffff;
}

.navbar-top {
    background-color: #fff;
}

.navbar-brand {
    font-weight: 600;
    color: #43BDA7 !important;
}

.nav-link {
    color: #333 !important;
}

.nav-link:hover {
    color: #43BDA7 !important;
}

.btn-login {
    background-color: #43BDA7;
    color: #fff;
    border: none;
    padding: 0.45rem 1rem;
    border-radius: 4px;
}

.btn-login:hover {
    opacity: 0.9;
}

/* Footer */
.footer {
    background-color: #43BDA7;
    color: #fff;
    padding: 1.5rem;
}

.footer .social-icons a {
    margin: 0 0.5rem;
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
}

.footer .social-icons a:hover {
    opacity: 0.8;
}

.phone,
.location,
.emailImg {
    height: 20px;
    width: 20px;
}

.alert {
    padding: 10px;
    margin: 10px 0;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

/* Additional improvements */
.input-group .btn {
    border-color: #ced4da;
}

.input-group .btn:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

/* Focus states for accessibility */
.form-control:focus,
.submitBtn:focus {
    outline: 2px solid #048aae;
    outline-offset: 2px;
}

/* Loading animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner-border {
    animation: spin 1s linear infinite;
}

/* Error message styling */
.text-danger {
    margin-top: 5px;
    font-size: 14px;
    font-weight: 500;
}

/* Success message styling */
.text-success {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    font-weight: 500;
}

/* Improved button states */
.submitBtn:active {
    transform: translateY(0);
}

.submitBtn:focus-visible {
    outline: 2px solid #048aae;
    outline-offset: 2px;
}

/* Better spacing for mobile */
@media (max-width: 576px) {
    .mb-3 {
        margin-bottom: 1rem !important;
    }

    .my-4 {
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
    }
}
