Yikes Ellie;
That does not look good.
From what I see, your glass "might" be ok.
The
cast Iron below that looks warped pretty good.
Not sure how to deal with that. Maybe after it gets hot, find a way to push gently and see if it wants to go back to normal.
If it is permanently warped your options are to live with it and stuff
superwool in the gap each time you open the door.
Or purchase another door... used if you're very lucky.