Sex newbie

Hi.

So yesterday was my second time having sex. The first time I did it, I felt pain, a lot, but didn’t bleed or anything like that.

Yesterday was different, it hurt a little but it was okay after a few minutes. Like half an hour or maybe an hour after finishing, I felt weird and sort of wet, so I went to the bathroom and saw blood on my undies, it wasn’t a lot but I’m kind of worried. Why the first time didn’t happen? Why now? Am I okay? I don’t know whats normal or whats not in this situation.

Thanks a lot for your help.