Was I pregnant or had a miscarriage?

Tiaonia

Yesterday I took a pregnancy test and I saw two lines but in the center It was a little faint but you could see it. I had light/spotting including cramping all day long, diarrhea, and constipation. Then when I go to sleep and wake up in the middle of the night to go to the bathroom. As I start, urinating I’m seeing literally red blood. Was I pregnant or still could be if I’m having red blood? I’m really trying to conceive 🚼.