Astrophysical and astrochemical insights into the origin of life