/* HealthyClick User System - Auth Styles */

/* Google Login Button */
.hcus-google-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 24px;
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    color: #3c4043;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

.hcus-google-btn:hover {
    background: #f8f9fa;
    border-color: #d2d3d4;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    color: #3c4043;
    text-decoration: none;
}

.hcus-google-btn:active {
    background: #f1f3f4;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.hcus-google-btn svg {
    flex-shrink: 0;
}

/* Login Form Container */
.hcus-login-container {
    max-width: 400px;
    margin: 60px auto;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.hcus-login-header {
    text-align: center;
    margin-bottom: 30px;
}

.hcus-login-header h2 {
    font-size: 28px;
    color: #222;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.hcus-login-header p {
    color: #717171;
    font-size: 15px;
    margin: 0;
}

/* Form Fields */
.hcus-form-group {
    margin-bottom: 20px;
}

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

.hcus-form-group input[type="text"],
.hcus-form-group input[type="email"],
.hcus-form-group input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E3E3E3;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.hcus-form-group input:focus {
    outline: none;
    border-color: #02838D;
    box-shadow: 0 0 0 3px rgba(2, 131, 141, 0.1);
}

.hcus-form-group input::placeholder {
    color: #999;
}

/* Submit Button */
.hcus-submit-btn {
    width: 100%;
    padding: 14px;
    background: #02838D;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.hcus-submit-btn:hover {
    background: #026b75;
}

.hcus-submit-btn:active {
    transform: translateY(1px);
}

.hcus-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Divider */
.hcus-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: #717171;
    font-size: 14px;
}

.hcus-divider::before,
.hcus-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E3E3E3;
}

.hcus-divider span {
    padding: 0 16px;
}

/* Social Buttons Container */
.hcus-social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Remember Me */
.hcus-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.hcus-remember input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.hcus-remember label {
    margin: 0;
    font-size: 14px;
    color: #717171;
    cursor: pointer;
}

/* Links */
.hcus-form-links {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    font-size: 14px;
}

.hcus-form-links a {
    color: #02838D;
    text-decoration: none;
}

.hcus-form-links a:hover {
    text-decoration: underline;
}

/* Error Messages */
.hcus-error {
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #c00;
    font-size: 14px;
}

.hcus-error ul {
    margin: 0;
    padding-left: 20px;
}

/* Success Messages */
.hcus-success {
    background: #efe;
    border: 1px solid #cfc;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #060;
    font-size: 14px;
}

/* Loading State */
.hcus-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.hcus-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #02838D;
    border-top-color: transparent;
    border-radius: 50%;
    animation: hcus-spin 0.6s linear infinite;
}

@keyframes hcus-spin {
    to { transform: rotate(360deg); }
}

/* Footer */
.hcus-login-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #E3E3E3;
    color: #717171;
    font-size: 14px;
}

.hcus-login-footer a {
    color: #02838D;
    text-decoration: none;
    font-weight: 500;
}

.hcus-login-footer a:hover {
    text-decoration: underline;
}

/* RTL Support */
[dir="rtl"] .hcus-google-btn {
    flex-direction: row-reverse;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .hcus-login-container {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .hcus-login-header h2 {
        font-size: 24px;
    }
    
    .hcus-form-links {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

.hcus-password-toggle {
    position: relative !important;
}

.hcus-password-toggle input {
    padding-left: 50px !important;
    padding-right: 16px !important;
}

.hcus-password-toggle-btn {
    position: absolute !important;
    left: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    color: #717171 !important;
    border: none !important;
    padding: 8px !important;
    cursor: pointer !important;
    z-index: 100 !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.hcus-password-toggle-btn:hover {
    color: #02838D !important;
    background: rgba(2, 131, 141, 0.1) !important;
    border-radius: 4px !important;
}

.hcus-password-toggle-btn i {
    font-size: 20px !important;
    pointer-events: none !important;
}

/* ========================================
   Registration Form - 3 Steps
   ======================================== */

.hcus-register-container {
    max-width: 600px !important;
    margin: 60px auto !important;
    padding: 40px !important;
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
}

.hcus-register-header {
    text-align: center !important;
    margin-bottom: 30px !important;
}

.hcus-register-header h2 {
    font-size: 28px !important;
    color: #222 !important;
    margin: 0 0 10px 0 !important;
    font-weight: 600 !important;
}

.hcus-register-header p {
    color: #717171 !important;
    font-size: 15px !important;
    margin: 0 !important;
}

/* Progress Steps */
.hcus-steps {
    display: flex !important;
    justify-content: space-between !important;
    margin-bottom: 40px !important;
    position: relative !important;
}

.hcus-steps::before {
    content: '' !important;
    position: absolute !important;
    top: 20px !important;
    right: 15% !important;
    left: 15% !important;
    height: 2px !important;
    background: #E3E3E3 !important;
    z-index: 0 !important;
}

.hcus-step {
    flex: 1 !important;
    text-align: center !important;
    position: relative !important;
    z-index: 1 !important;
}

.hcus-step-number {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: #E3E3E3 !important;
    color: #717171 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    transition: all 0.3s ease !important;
}

.hcus-step.active .hcus-step-number {
    background: #02838D !important;
    color: white !important;
}

.hcus-step.completed .hcus-step-number {
    background: #28a745 !important;
    color: white !important;
}

.hcus-step-label {
    font-size: 13px !important;
    color: #717171 !important;
}

.hcus-step.active .hcus-step-label {
    color: #02838D !important;
    font-weight: 600 !important;
}

/* Form Row */
.hcus-form-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 15px !important;
}

/* Form Actions */
.hcus-form-actions {
    display: flex !important;
    gap: 15px !important;
    margin-top: 20px !important;
}

.hcus-btn-secondary {
    flex: 1 !important;
    padding: 14px !important;
    background: #f5f5f5 !important;
    color: #222 !important;
    border: 1px solid #E3E3E3 !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
}

.hcus-btn-secondary:hover {
    background: #e8e8e8 !important;
}

.hcus-form-actions .hcus-submit-btn {
    flex: 2 !important;
}

/* Step Content */
.hcus-step-content {
    display: none;
}

.hcus-step-content[data-step="1"] {
    display: block;
}

/* Allow JS to control visibility of all steps */
.hcus-step-content[style*="display: block"],
.hcus-step-content[style*="display: flex"] {
    display: block !important;
}

/* Step Intro */
.hcus-step-intro {
    text-align: center !important;
    color: #02838D !important;
    font-weight: 600 !important;
    margin-bottom: 20px !important;
    padding: 15px !important;
    background: #E5F4F6 !important;
    border-radius: 6px !important;
}

/* Skip Link */
.hcus-skip-link {
    text-align: center !important;
    margin-top: 15px !important;
}

.hcus-skip-link a {
    color: #717171 !important;
    font-size: 14px !important;
    text-decoration: none !important;
}

.hcus-skip-link a:hover {
    color: #02838D !important;
    text-decoration: underline !important;
}

/* File Input Styling */
.hcus-register-container input[type="file"] {
    padding: 10px !important;
    border: 2px dashed #E3E3E3 !important;
    background: #f9f9f9 !important;
    cursor: pointer !important;
}

.hcus-register-container input[type="file"]:hover {
    border-color: #02838D !important;
    background: #E5F4F6 !important;
}

/* Textarea */
.hcus-register-container textarea {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 1px solid #E3E3E3 !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    font-family: inherit !important;
    resize: vertical !important;
    transition: border-color 0.2s ease !important;
    box-sizing: border-box !important;
}

.hcus-register-container textarea:focus {
    outline: none !important;
    border-color: #02838D !important;
    box-shadow: 0 0 0 3px rgba(2, 131, 141, 0.1) !important;
}

/* Select */
.hcus-register-container select {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 1px solid #E3E3E3 !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    background: white !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

.hcus-register-container select:focus {
    outline: none !important;
    border-color: #02838D !important;
    box-shadow: 0 0 0 3px rgba(2, 131, 141, 0.1) !important;
}

/* Register Footer */
.hcus-register-footer {
    text-align: center !important;
    margin-top: 30px !important;
    padding-top: 30px !important;
    border-top: 1px solid #E3E3E3 !important;
    color: #717171 !important;
    font-size: 14px !important;
}

.hcus-register-footer a {
    color: #02838D !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}

.hcus-register-footer a:hover {
    text-decoration: underline !important;
}

/* Mobile */
@media (max-width: 768px) {
    .hcus-register-container {
        margin: 20px !important;
        padding: 30px 20px !important;
    }
    
    .hcus-form-row {
        grid-template-columns: 1fr !important;
    }
    
    .hcus-step-label {
        font-size: 11px !important;
    }
    
    .hcus-step-number {
        width: 35px !important;
        height: 35px !important;
    }
}
/* Password Help Icon & Tooltip */
.hcus-password-help {
    position: relative !important;
    display: inline-block !important;
    margin-right: 5px !important;
    cursor: help !important;
}

.hcus-password-help i {
    color: #02838D !important;
    font-size: 14px !important;
    transition: color 0.2s ease !important;
}

.hcus-password-help:hover i {
    color: #026b75 !important;
}

.hcus-password-tooltip {
    position: absolute !important;
    bottom: 100% !important;
    right: 0 !important;
    margin-bottom: 10px !important;
    background: white !important;
    border: 1px solid #E3E3E3 !important;
    border-radius: 8px !important;
    padding: 15px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    width: 280px !important;
    z-index: 1000 !important;
    display: none !important;
}

.hcus-password-help:hover .hcus-password-tooltip {
    display: block !important;
}

.hcus-password-tooltip::after {
    content: '' !important;
    position: absolute !important;
    top: 100% !important;
    right: 20px !important;
    border: 8px solid transparent !important;
    border-top-color: white !important;
}

.hcus-password-tooltip strong {
    display: block !important;
    margin-bottom: 10px !important;
    color: #222 !important;
    font-size: 14px !important;
}

.hcus-password-tooltip ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 10px 0 !important;
}

.hcus-password-tooltip ul li {
    padding: 5px 0 !important;
    color: #555 !important;
    font-size: 13px !important;
    position: relative !important;
    padding-right: 15px !important;
}

.hcus-password-tooltip ul li::before {
    content: '•' !important;
    position: absolute !important;
    right: 0 !important;
    color: #02838D !important;
}

.hcus-tooltip-tip {
    margin: 10px 0 0 0 !important;
    padding-top: 10px !important;
    border-top: 1px solid #E3E3E3 !important;
    color: #717171 !important;
    font-size: 12px !important;
    font-style: italic !important;
}

/* Password Strength Meter */
.hcus-password-strength {
    margin-top: 10px !important;
}

.hcus-password-strength-bar {
    height: 8px !important;
    background: #E3E3E3 !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    margin-bottom: 8px !important;
}

.hcus-password-strength-fill {
    height: 100% !important;
    width: 0% !important;
    transition: all 0.3s ease !important;
    border-radius: 4px !important;
}

.hcus-password-strength-text {
    font-size: 13px !important;
    font-weight: 600 !important;
    text-align: center !important;
    padding: 8px !important;
    border-radius: 4px !important;
    display: none !important;
}

/* Password strength levels - כמו התמונות */
.hcus-password-strength.weak .hcus-password-strength-fill {
    width: 33% !important;
    background: #dc3545 !important;
}

.hcus-password-strength.weak .hcus-password-strength-text {
    display: block !important;
    background: #fee !important;
    color: #dc3545 !important;
    border: 1px solid #fcc !important;
}

.hcus-password-strength.medium .hcus-password-strength-fill {
    width: 66% !important;
    background: #ffc107 !important;
}

.hcus-password-strength.medium .hcus-password-strength-text {
    display: block !important;
    background: #fff4e5 !important;
    color: #856404 !important;
    border: 1px solid #ffeaa7 !important;
}

.hcus-password-strength.strong .hcus-password-strength-fill {
    width: 100% !important;
    background: #28a745 !important;
}

.hcus-password-strength.strong .hcus-password-strength-text {
    display: block !important;
    background: #d4edda !important;
    color: #155724 !important;
    border: 1px solid #c3e6cb !important;
}
/* ========================================
   Multi-Select Component
   ======================================== */

.hcus-multi-select {
    position: relative !important;
}

.hcus-multi-select-input {
    min-height: 50px !important;
    border: 1px solid #E3E3E3 !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    background: white !important;
    cursor: text !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    align-items: center !important;
}

.hcus-multi-select-input:focus-within {
    border-color: #02838D !important;
    box-shadow: 0 0 0 3px rgba(2, 131, 141, 0.1) !important;
}

.hcus-selected-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}

.hcus-tag {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 10px !important;
    background: #02838D !important;
    color: white !important;
    border-radius: 4px !important;
    font-size: 14px !important;
}

.hcus-tag-remove {
    background: none !important;
    border: none !important;
    color: white !important;
    font-size: 18px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    padding: 0 !important;
    width: 18px !important;
    height: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: background 0.2s ease !important;
}

.hcus-tag-remove:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

#city-search,
#qualification-search {
    border: none !important;
    outline: none !important;
    flex: 1 !important;
    min-width: 150px !important;
    padding: 6px !important;
    font-size: 15px !important;
}

.hcus-multi-select-dropdown {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: 0 !important;
    margin-top: 4px !important;
    background: white !important;
    border: 1px solid #E3E3E3 !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    max-height: 300px !important;
    overflow-y: auto !important;
    z-index: 1000 !important;
}

.hcus-multi-select-options {
    padding: 8px !important;
}

.hcus-multi-select-option {
    padding: 10px 12px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.hcus-multi-select-option:hover {
    background: #f5f5f5 !important;
}

.hcus-multi-select-option input[type="checkbox"] {
    cursor: pointer !important;
    width: auto !important;
    margin: 0 !important;
}

.hcus-multi-select-option label {
    cursor: pointer !important;
    margin: 0 !important;
    flex: 1 !important;
    font-size: 15px !important;
}

/* Union Select */
.hcus-union-select {
    border: 1px solid #E3E3E3 !important;
    border-radius: 6px !important;
    padding: 15px !important;
    background: #f9f9f9 !important;
}

.hcus-selected-unions {
    margin-bottom: 15px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.hcus-union-options {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
    gap: 12px !important;
}

.hcus-union-option {
    background: white !important;
    border: 2px solid #E3E3E3 !important;
    border-radius: 8px !important;
    padding: 15px !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.hcus-union-option:hover {
    border-color: #02838D !important;
    box-shadow: 0 2px 8px rgba(2, 131, 141, 0.1) !important;
}

.hcus-union-option input:checked + label {
    color: #02838D !important;
    font-weight: 600 !important;
}

.hcus-union-option input[type="checkbox"] {
    display: none !important;
}

.hcus-union-option label {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    cursor: pointer !important;
    margin: 0 !important;
}

.hcus-union-logo {
    width: 40px !important;
    height: 40px !important;
    object-fit: contain !important;
}

.hcus-union-option input:checked + label::before {
    content: '✓' !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
    background: #02838D !important;
    color: white !important;
    border-radius: 50% !important;
    font-size: 12px !important;
    font-weight: bold !important;
    margin-left: auto !important;
}

/* Clear All Tags Button */
.hcus-multi-select-input {
    position: relative !important;
}

.hcus-clear-all {
    position: absolute !important;
    left: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: #e74c3c !important;
    color: white !important;
    border: none !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: none !important;
}

.hcus-multi-select-input.has-tags .hcus-clear-all {
    display: block !important;
}

.hcus-clear-all:hover {
    background: #c0392b !important;
}

/* Adjust input padding when clear button is visible */
.hcus-multi-select-input.has-tags {
    padding-left: 70px !important;
}

/* Dropdown Arrow Icon */
.hcus-multi-select-input::after {
    content: '' !important;
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 0 !important;
    height: 0 !important;
    border-left: 5px solid transparent !important;
    border-right: 5px solid transparent !important;
    border-top: 6px solid #454545 !important;
    pointer-events: none !important;
    transition: transform 0.2s ease !important;
}

.hcus-multi-select-input.dropdown-open::after {
    transform: translateY(-50%) rotate(180deg) !important;
}

/* Adjust padding for arrow */
.hcus-multi-select-input {
    padding-left: 35px !important;
}

/* Select2 RTL fixes */
.select2-container {
    direction: rtl;
    text-align: right;
}

.select2-selection__choice {
    float: right !important;
    margin-left: 5px !important;
    margin-right: 0 !important;
}

/* Match brand colors */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #02838D !important;
    border-color: #02838D !important;
    color: white !important;
}

.select2-container--default .select2-results__option--highlighted {
    background-color: #02838D !important;
}
