/* Password Input Toggle Styles */
.password-field-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-field-container input {
    padding-right: 50px !important;
    flex: 1;
}

.password-toggle-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(0, 255, 255, 0.7);
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    transition: all 0.3s ease;
    z-index: 10;
    outline: none;
}

.password-toggle-btn:hover {
    color: #00ffff;
    transform: translateY(-50%) scale(1.1);
}

.password-toggle-btn:focus {
    outline: none;
    color: #00ffff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

/* Password matching indicator styles */
.password-match-indicator {
    font-size: 12px;
    margin-top: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: none;
}

.password-match-indicator.match {
    color: #2ed573;
}

.password-match-indicator.no-match {
    color: #ff6b6b;
}

/* Variations for different themes */
.password-toggle-btn.admin-theme {
    color: rgba(0, 255, 255, 0.7);
}

.password-toggle-btn.admin-theme:hover,
.password-toggle-btn.admin-theme:focus {
    color: #00ffff;
}

.password-toggle-btn.client-theme {
    color: rgba(46, 213, 115, 0.7);
}

.password-toggle-btn.client-theme:hover,
.password-toggle-btn.client-theme:focus {
    color: #2ed573;
}

.password-toggle-btn.center-theme {
    color: rgba(255, 107, 107, 0.7);
}

.password-toggle-btn.center-theme:hover,
.password-toggle-btn.center-theme:focus {
    color: #ff6b6b;
}

/* For forms with different input styles */
.form-control.password-with-toggle,
.cyber-form-input.password-with-toggle,
.form-input.password-with-toggle {
    padding-right: 50px !important;
}

/* Dark theme support */
.dark-theme .password-toggle-btn {
    color: rgba(255, 255, 255, 0.6);
}

.dark-theme .password-toggle-btn:hover,
.dark-theme .password-toggle-btn:focus {
    color: rgba(255, 255, 255, 0.9);
}

/* Animation for icon change */
.password-toggle-btn i {
    transition: all 0.2s ease;
}

.password-toggle-btn:hover i {
    transform: scale(1.1);
}