Manchester City blew a 2-1 lead with five minutes remaining to leave themselves an almighty battle in next week's Champions League play-off second leg at Real Madrid.