/**
 * Password Matching and Strength Indicator Styles
 */

/* Password match/mismatch states */
.password-match {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
}

.password-mismatch {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Password match feedback */
.password-match-feedback {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    display: none;
}

.password-match-feedback.success,
.password-match-feedback.error {
    display: block;
}

.password-match-feedback.success {
    color: #28a745;
}

.password-match-feedback.error {
    color: #dc3545;
}

.password-match-feedback i {
    margin-right: 0.25rem;
}

/* Password strength indicator */
.password-strength-bar {
    margin-top: 0.75rem;
    display: none;
}

.password-strength-meter {
    height: 6px;
    background-color: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.password-strength-fill {
    height: 100%;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 3px;
}

.password-strength-text {
    font-size: 0.875rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

/* Form control transitions */
.form-control {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Password toggle button (if needed) */
.password-toggle-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    font-size: 1rem;
    transition: color 0.2s;
}

.password-toggle-btn:hover {
    color: #495057;
}

.password-toggle-btn:focus {
    outline: none;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .password-match-feedback,
    .password-strength-text {
        font-size: 0.8125rem;
    }

    .password-strength-meter {
        height: 5px;
    }
}
