lose (one's) spirit
To lose one's vigor, energy, hope, or resolve; to become resigned or complacent. The underdog team had a shot at winning the game early on, but they seem to have lost their spirit at this point. You've come so far with your law degree. Don't lose spirit now!