/* ==========================================
   PASSWORD FIELD IMPROVEMENTS
   ========================================== */

/* Wrapper para input + botón toggle */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 45px; /* Espacio para el botón */
}

/* Botón toggle mostrar/ocultar */
.btn-toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s;
    font-size: 1rem;
}

.btn-toggle-password:hover {
    color: var(--primary-green);
}

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

/* Requisitos compactos en una línea */
.password-requirements-compact {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    font-size: 0.75rem;
    flex-wrap: wrap;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    transition: all 0.2s;
}

.requirement-item i {
    font-size: 0.5rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

/* Requisito cumplido */
.requirement-item.valid {
    color: var(--primary-green);
}

.requirement-item.valid i {
    color: var(--primary-green);
}

/* Mensaje de éxito en confirmación */
.form-success {
    display: block;
    font-size: 0.8rem;
    color: var(--primary-green);
    margin-top: 5px;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 400px) {
    .password-requirements-compact {
        font-size: 0.7rem;
        gap: 8px;
    }
    
    .btn-toggle-password {
        padding: 6px;
        font-size: 0.9rem;
    }
}
