/**
 * Password Strength Indicator
 * Simplified inline version for registration forms
 */

/* Password Field Container */
.password-field-wrapper {
    position: relative;
}

.password-toggle-button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s;
    font-size: 16px;
}

.password-toggle-button:hover {
    color: #374151;
}

.password-toggle-button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Strength Indicator */
.password-strength-indicator {
    margin-top: 12px;
    display: none;
}

.password-strength-indicator.active {
    display: block;
}

.password-strength-bars {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.password-strength-bar {
    flex: 1;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.password-strength-bar.active {
    background: #10b981;
}

.password-strength-bar.active.weak {
    background: #ef4444;
}

.password-strength-bar.active.medium {
    background: #f59e0b;
}

.password-strength-bar.active.strong {
    background: #10b981;
}

.password-strength-bar.active.very-strong {
    background: #059669;
}

.password-strength-text {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.password-strength-text.weak {
    color: #ef4444;
}

.password-strength-text.medium {
    color: #f59e0b;
}

.password-strength-text.strong {
    color: #10b981;
}

.password-strength-text.very-strong {
    color: #059669;
}

/* Requirements Checklist */
.password-requirements {
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px;
}

.password-requirements-title {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

.password-requirement {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 13px;
    color: #6b7280;
    transition: all 0.2s;
}

.password-requirement.met {
    color: #10b981;
}

.password-requirement-icon {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.password-requirement.met .password-requirement-icon {
    border-color: #10b981;
    background: #10b981;
}

.password-requirement-icon::after {
    content: '';
    display: none;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.password-requirement.met .password-requirement-icon::after {
    display: block;
}

/* Password Match Indicator */
.password-match-indicator {
    margin-top: 8px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    display: none;
}

.password-match-indicator.show {
    display: block;
}

.password-match-indicator.match {
    background: #d1fae5;
    color: #065f46;
    border-left: 3px solid #10b981;
}

.password-match-indicator.mismatch {
    background: #fee2e2;
    color: #991b1b;
    border-left: 3px solid #ef4444;
}

.password-match-indicator i {
    margin-right: 6px;
}

/* Character Counter */
.character-counter {
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
    text-align: right;
}

.character-counter.warning {
    color: #f59e0b;
}

.character-counter.success {
    color: #10b981;
}

/* Animations */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.3s ease;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.pulse {
    animation: pulse 0.5s ease;
}

