The pion at finite temperature and density