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

@media (min-width: 768px) {
    .loginContainer {
        width: 100%;
    }
}

.salutationselect {
    border-radius: 0.25rem;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.requieSign {
    color: red;
}

.leftSignCont {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 20px;
}

@media (min-width: 768px) {
    .leftSignCont {
        width: 90%;
        padding: 0;
    }
}

.joinPara {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .joinPara {
        font-size: 35px;
    }
}

.regHead {
    color: #048aae;
    font-size: 20px;
    font-weight: 700;
}

@media (min-width: 768px) {
    .regHead {
        font-size: 25px;
    }
}

#registerForm .form-label {
    color: black;
    font-size: 16px;
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    #registerForm .form-label {
        font-size: 18px;
    }
}

.passCont {
    align-items: center;
}

#toggleIcon {
    border: 1px solid silver;
    z-index: 10;
    color: #048aae;
}

.line {
    width: 100%;
    height: 1px;
    border: 1px solid silver;
    margin: 15px 0px;
}

.subBtn {
    background-color: #048aae;
    border: none;
    outline: none;
    padding: 10px;
    color: white;
    border-radius: 6px;
    width: 40%;
}

.submit-btn{
    background-color: #048aae;
    border: none;
    outline: none;
    padding: 12px 20px;
    border-radius: 6px;
    width: 100%;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #036a8a;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

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

.alreadyAcc {
    text-align: center;
    font-weight: 500;
}

.loginLink {
    color: #048aae;
    font-size: 18px;
    cursor: pointer;
}

/* Filter Bar */
.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 */
.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;
}
.form-label{
    color: #3B3E43 !important;
}

/* Email loading spinner */
.email-loading {
    position: relative;
}

.email-spinner {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #048aae;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* Form validation styles */
.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

.valid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #28a745;
}

/* Mobile responsiveness */
@media (max-width: 767px) {
    .container {
        padding: 0 15px;
    }

    .row {
        margin: 0;
    }

    .col-md-6 {
        padding: 0 0 20px 0;
    }

    .loginContainer {
        margin: 10px 0;
        padding: 15px;
    }

    .joinPara {
        font-size: 24px;
        text-align: center;
    }

    .leftSignCont {
        text-align: center;
        margin-bottom: 20px;
    }

    .leftSignCont img {
        max-width: 100%;
        height: auto;
    }

    .form-control, .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .input-group {
        flex-wrap: nowrap;
    }

    .salutationselect {
        min-width: 80px;
    }
}

@media (max-width: 576px) {
    .joinPara {
        font-size: 20px;
    }

    .regHead {
        font-size: 18px;
    }

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

    .submit-btn {
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* Tablet responsiveness */
@media (min-width: 768px) and (max-width: 1024px) {
    .loginContainer {
        width: 100%;
    }

    .joinPara {
        font-size: 30px;
    }
}

/* Large screens */
@media (min-width: 1200px) {
    .loginContainer {
        width: 100%;
    }
}

/* Custom Dropdown Styles for Registration */
.singlecustom-select-container {
    position: relative;
    z-index: 1;
    width: 100%;
    margin-bottom: 0;
}

.singlecustom-select-container.disabled {
    z-index: 0;
    border: 1px solid #ced4da;
    border-radius: 6px;
}

.singlecustom-select-container.active {
    z-index: 9999;
}

.singlecustom-select-trigger {
    background: white;
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.singlecustom-select-trigger:hover {
    border-color: #20b9a3;
}

.singlecustom-select-trigger:after {
    content: '';
    font-size: 0.7rem;
    color: #6c757d;
    margin-left: auto;
    transition: transform 0.2s ease;
    pointer-events: none;
}

.singlecustom-select-container.active .singlecustom-select-trigger:after {
    transform: rotate(180deg);
}

.singlecustom-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ced4da;
    border-radius: 6px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    display: none;
    margin-top: 2px;
    max-height: 300px;
    overflow: hidden;
}

.singlecustom-select-container.disabled .singlecustom-select-dropdown {
    display: none !important;
    z-index: -1;
}

.singlecustom-select-dropdown.active {
    display: block;
}

.singlecustom-select-options {
    max-height: 250px;
    overflow-y: auto;
    padding: 0;
    margin: 0;
    list-style: none;
    /* Custom scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: #20b9a3 #f1f1f1;
}

/* Custom scrollbar for webkit browsers */
.singlecustom-select-options::-webkit-scrollbar {
    width: 6px;
}

.singlecustom-select-options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.singlecustom-select-options::-webkit-scrollbar-thumb {
    background: #20b9a3;
    border-radius: 3px;
}

.singlecustom-select-options::-webkit-scrollbar-thumb:hover {
    background: #1a9b8a;
}

.singlecustom-select-option {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.singlecustom-select-option:last-child {
    border-bottom: none;
}

.singlecustom-select-option:hover {
    background-color: #f8f9fa;
    color: #20b9a3;
}

.singlecustom-select-option.selected {
    background: #e8f5f3;
    color: #20b9a3;
    font-weight: 600;
}

.singlecustom-select-search {
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
    background: white;
    position: sticky;
    top: 0;
    z-index: 1;
}

.singlecustom-select-search input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.singlecustom-select-search input:focus {
    outline: none;
    border-color: #20b9a3;
    box-shadow: 0 0 0 2px rgba(32, 185, 163, 0.1);
}

.single-selected-item {
    display: flex;
    align-items: center;
    width: 100%;
}

.single-select-text {
    flex: 1;
    text-align: left;
}

.placeholder {
    color: #6c757d;
    display: inline-block;
    min-height: 1em;
    vertical-align: middle;
    cursor: wait;
    background: transparent;
    opacity: initial;
}

/* Validation styles for custom dropdowns */
.singlecustom-select-container.has-error .singlecustom-select-trigger {
    border-color: #dc3545;
    background-color: #fff8f8;
}

.singlecustom-select-container.is-valid .singlecustom-select-trigger {
    border-color: #28a745;
    background-color: #f8fff8;
}

/* Disabled state for custom dropdowns */
.singlecustom-select-container.disabled .singlecustom-select-trigger {
    background-color: #f8f9fa;
    border-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.6;
}

.singlecustom-select-container.disabled .singlecustom-select-trigger:hover {
    border-color: #e9ecef;
    background-color: #f8f9fa;
}

.singlecustom-select-container.disabled .singlecustom-select-trigger:after {
    color: #adb5bd;
}

/* Additional spacing to prevent overlapping */
.row {
    margin-bottom: 15px;
}

.col-md-6 {
    margin-bottom: 20px;
}

/* Ensure proper z-index stacking */
.singlecustom-select-container {
    position: relative;
}

.singlecustom-select-container.active {
    z-index: 9999 !important;
}

/* Prevent dropdown from overlapping other elements */
.singlecustom-select-dropdown {
    position: absolute;
    z-index: 10000 !important;
    max-height: 250px;
    overflow-y: auto;
}

/* Mobile responsiveness for custom dropdowns */
@media (max-width: 767px) {
    .singlecustom-select-trigger {
        padding: 6px 10px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .singlecustom-select-option {
        padding: 12px 15px;
        font-size: 16px;
    }

    .singlecustom-select-search input {
        font-size: 16px;
        padding: 10px 12px;
    }

    .singlecustom-select-dropdown {
        max-height: 200px;
    }
}
