If "I forgot my password" is visibly a button then it's more effective than a link in that context.
I remember when Microsoft removed many buttons from their UI and replaced them with vaguely colored text (links) and it became a lot harder to figure out what to click on.