Authorities say a 17-year-old university student lost both her legs at the knee when she fell under a moving freight train while trying to hop aboard in Longmont.