/* public_html/css/login_styles.css */
body {
    background: linear-gradient(135deg, var(--primary-navy, #1B4965) 0%, var(--primary-ls-red, #E71D36) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 1rem;
}

.login-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    max-width: 400px;
    width: 100%;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.logo-section {
    text-align: center;
    margin-bottom: 1.5rem;
}

.logo-section img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid var(--primary-navy, #1B4965);
    padding: 8px;
    background: white;
    margin-bottom: 0.75rem;
}

.logo-section h2 {
    color: var(--primary-navy, #1B4965);
    font-weight: 700;
    font-size: 1.5rem;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 1rem; /* For LTR */
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 3;
}
body.rtl .input-icon {
    left: auto;
    right: 1rem;
}

.form-control {
    padding-left: 2.75rem; /* For LTR */
}
body.rtl .form-control {
    padding-left: 1rem;
    padding-right: 2.75rem;
}

.btn-login {
    background: linear-gradient(135deg, var(--primary-navy, #1B4965) 0%, var(--primary-ls-red, #E71D36) 100%);
    border: none;
    color: white;
    font-weight: 600;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.btn-login:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}
.btn-login:disabled {
    opacity: 0.7;
}

.language-selector {
    position: absolute;
    top: 15px;
    right: 15px; /* For LTR */
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 0.3rem 0.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
body.rtl .language-selector {
    right: auto;
    left: 15px;
}

.language-selector select {
    border: none;
    background: transparent;
    color: var(--primary-navy, #1B4965);
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.2rem;
}
.language-selector select:focus {
    outline: none;
    box-shadow: none;
}

.login-footer a {
    color: var(--primary-navy, #1B4965);
    font-weight: 500;
}
.login-footer a:hover {
    color: var(--primary-ls-red, #E71D36);
}



.form-floating { /* Add this if you are using Bootstrap's form-floating */
    position: relative;
}

.input-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d; /* Or your preferred icon color */
    z-index: 3; /* Ensure icon is above the input background */
    font-size: 1rem; /* Adjust as needed */
    pointer-events: none; /* So it doesn't interfere with input click */
}

/* LTR Styles */
body.ltr .input-icon {
    left: 1rem; /* Adjust padding-left of input accordingly */
}

body.ltr .form-control { /* Assuming .form-control is your input class */
    padding-left: 2.75rem !important; /* Make space for the icon (1rem icon + 0.75rem spacing + 1rem normal padding) */
    padding-right: 1rem !important;
}
/* If using form-floating, labels also need adjustment */
body.ltr .form-floating > label {
    padding-left: 2.75rem !important;
}


/* RTL Styles */
body.rtl .input-icon {
    right: 1rem; /* Adjust padding-right of input accordingly */
    left: auto;
}

body.rtl .form-control { /* Assuming .form-control is your input class */
    padding-right: 2.75rem !important; /* Make space for the icon */
    padding-left: 1rem !important;
}
/* If using form-floating, labels also need adjustment */
body.rtl .form-floating > label {
    padding-right: 2.75rem !important;
    left: 0; /* Reset default Bootstrap LTR label positioning */
    right: auto; /* Ensure it aligns right correctly */
    transform-origin: top right; /* For floating label animation in RTL */
}
/* Ensure the floating label itself also respects RTL */
body.rtl .form-floating > .form-control:focus ~ label,
body.rtl .form-floating > .form-control:not(:placeholder-shown) ~ label,
body.rtl .form-floating > .form-control-plaintext ~ label,
body.rtl .form-select ~ label {
    /* Bootstrap's default transform might need overriding or specific RTL transform */
    transform: scale(.85) translateY(-.5rem) translateX(-0.0rem); /* Adjust translateX for RTL */
}

/* Custom Searchable Dropdown */
.custom-searchable-dropdown {
    position: relative;
}

.dropdown-toggle-trigger {
    background-color: #fff !important;
}

/* Dropdown Container */
.dropdown-list-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin-top: 5px;
    max-height: 250px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    animation: dropdownFadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top center;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: scaleY(0.95);
    }
    to {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* Search Wrapper */
.dropdown-search-wrapper {
    background-color: #f8f9fa;
}

.dropdown-search-input {
    font-size: 0.875rem;
    padding: 0.375rem 0.5rem;
    border-radius: 6px;
}

.dropdown-search-input:focus {
    box-shadow: none;
    border-color: #ced4da;
}

/* Options List */
.dropdown-options-list {
    overflow-y: auto;
    max-height: 190px;
    padding: 5px 0;
}

.dropdown-option-item {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    font-size: 0.95rem;
    color: #495057;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    user-select: none;
}

/* Handle RTL for list padding */
body.rtl .dropdown-option-item {
    padding: 8px 15px;
}

.dropdown-option-item:hover, .dropdown-option-item.highlighted {
    background-color: rgba(27, 73, 101, 0.08); /* Primary navy with opacity */
    color: var(--primary-navy, #1B4965);
}

.dropdown-option-item.selected {
    background: linear-gradient(135deg, var(--primary-navy, #1B4965) 0%, var(--primary-ls-red, #E71D36) 100%);
    color: #fff;
    font-weight: 500;
}

.dropdown-no-results {
    padding: 15px;
    text-align: center;
    color: #6c757d;
    font-size: 0.875rem;
}