Woke up this morning with some spotting, terrified I've lost my baby

I woke up this morning and went to the bathroom as normal, when I noticed pink tinged mucus on the toilet paper. 20 minutes later I wiped again, and now it's a darker brown. So scared now, my heart is breaking because I know this isn't a good sign.