Unveiling The Physical Conditions In Star-Forming Galaxies At The Peak Of Galaxy Assembly