/* Password Requirements Styling */
.password-validation-enabled {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Disabled Button Styling */
.custom-btn.btn-orng:disabled,
.custom-btn.btn-orng.disabled {
    background: #d6d6d6 !important;
    color: #999 !important;
    cursor: not-allowed !important;
    opacity: 0.6;
    pointer-events: none;
    transition: all 0.3s ease;
}

.custom-btn.btn-orng:disabled:hover,
.custom-btn.btn-orng.disabled:hover {
    background: #d6d6d6 !important;
    color: #999 !important;
    transform: none;
    box-shadow: none;
}

/* Password Strength Meter */
.password-strength-meter {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    animation: slideDown 0.3s ease-out;
}

.password-strength-meter .text-muted {
    font-size: 12px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.progress {
    height: 4px;
    background-color: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
}

.strength-bar {
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 2px;
}

.strength-text {
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Requirements Dropdown */
.password-strength-meter .dropdown {
    position: relative;
}

.requirements-toggle {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
    font-size: 14px;
    padding: 2px;
    line-height: 1;
}

.requirements-toggle:hover {
    color: #f39200 !important;
}

.requirements-toggle:focus {
    box-shadow: none !important;
    outline: none !important;
}

.requirements-dropdown {
    min-width: 320px;
    max-width: 380px;
    padding: 0;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    font-size: 0.875rem;
    z-index: 1050;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.25rem;
}

.requirements-dropdown .dropdown-header {
    font-weight: 600;
    color: #495057;
    font-size: 0.875rem;
    padding: 0.75rem 1rem 0.5rem 1rem;
    margin-bottom: 0;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    border-radius: 0.5rem 0.5rem 0 0;
}

.requirements-dropdown .dropdown-divider {
    margin: 0;
    border-color: #e9ecef;
}

.requirement-item {
    padding: 0;
    transition: all 0.2s ease;
    list-style: none;
}

.requirement-item:not(:last-child) {
    border-bottom: 1px solid #f8f9fa;
}

.requirement-item .dropdown-item-text {
    padding: 0.75rem 1rem;
    margin: 0;
    font-size: 0.813rem;
    line-height: 1.4;
    color: #6c757d;
    white-space: normal;
    word-wrap: break-word;
    cursor: default;
    border-radius: 0;
    transition: all 0.2s ease;
    background: white;
    border: none;
}

.requirement-item:hover .dropdown-item-text {
    background-color: #f8f9fa;
}

.requirement-item.requirement-valid .dropdown-item-text {
    background-color: rgba(25, 135, 84, 0.08);
    border-left: 3px solid #198754;
    color: #198754;
    font-weight: 500;
}

.requirement-item.requirement-valid:hover .dropdown-item-text {
    background-color: rgba(25, 135, 84, 0.12);
}

.requirement-icon {
    flex-shrink: 0;
    width: 14px;
    text-align: center;
    font-size: 8px;
}

.requirement-text {
    flex: 1;
    transition: color 0.2s ease;
}

/* Ensure dropdown appears above other elements */
.password-strength-meter {
    position: relative;
    z-index: 1;
}

/* Override Bootstrap dropdown positioning for requirements dropdown */
.password-strength-meter .dropdown-menu.show {
    position: absolute !important;
    transform: none !important;
    right: 0 !important;
    left: auto !important;
    top: 100% !important;
    margin-top: 0.25rem !important;
}

/* Ensure the dropdown button doesn't interfere with form submission */
.requirements-toggle[type="button"] {
    background: none !important;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .requirements-dropdown {
        min-width: 280px;
        max-width: 300px;
        left: 0 !important;
        right: auto !important;
    }
}

/* Password Match Indicator */
.password-match-indicator {
    margin-top: 0.5rem;
}

.match-status {
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.match-text {
    font-size: 12px;
    font-weight: 500;
}

.match-icon {
    font-size: 12px;
}

/* Form validation styling enhancements */
.form-control.is-valid {
    border-color: #198754;
    box-shadow: 0 0 0 0.1rem rgba(25, 135, 84, 0.25);
}

.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.1rem rgba(220, 53, 69, 0.25);
}

/* Focus states */
.form-control:focus {
    border-color: #f39200;
    box-shadow: 0 0 0 0.1rem rgba(243, 146, 0, 0.25);
}

.form-control.is-valid:focus {
    border-color: #198754;
    box-shadow: 0 0 0 0.1rem rgba(25, 135, 84, 0.25);
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.1rem rgba(220, 53, 69, 0.25);
}

/* Color scheme consistency with brand */
.text-success {
    color: #198754 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.text-warning {
    color: #fd7e14 !important;
}

.text-info {
    color: #0dcaf0 !important;
}

.bg-success {
    background-color: #198754 !important;
}

.bg-danger {
    background-color: #dc3545 !important;
}

.bg-warning {
    background-color: #fd7e14 !important;
}

.bg-info {
    background-color: #0dcaf0 !important;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .password-strength-meter {
        padding: 0.5rem;
        font-size: 0.825rem;
    }
    
    .strength-text {
        font-size: 12px;
    }
    
    .match-text {
        font-size: 12px;
    }
}
