Simulating neutral hydrogen across cosmic time: the 21-cm forest in late reionization models and the global 21-cm signal at cosmic dawn