Thermal signatures of three decades of solar storms at Earth reveal new clues for space weather forecasting