All perfect praise be to Allah, the Lord of the worlds. I testify that there is none worthy of worship except Allah and that Muhammad, sallallahu ‘alayhi wa sallam, is His slave and Messenger.
Firstly, you should know that the minimum duration of menses (the period) is one day and night according to the view of the majority of the scholars. So if the total time of seeing blood amounted to one day and one night, it is considered menses; otherwise, it is considered non-menstrual bleeding according to the view of the majority of scholars, which is the view adopted at Islamweb. The Maalikis, on the other hand, held that the minimum duration of menses is one single discharge of blood. This is the opinion chosen by Shaykhul-Islam Ibn Taymiyyah and Shaykh Ibn ‘Uthaymeen .
In any case, it is incumbent on you, when you see blood at a time when it could be your menses, to stop praying, fasting, and everything else that the menstruating woman is enjoined to stop doing. Whenever you see either of the two signs of purity; namely, the white discharge or dryness, consider yourself ritually pure and hasten to perform Ghusl and pray.
If the bleeding starts again, stop praying, then when you see the sign of purity, perform Ghusl and pray, and so on until the bleeding stops completely.
The sign of purity is dryness, such that if you insert a piece of cotton or the like, it would come out clean, with no trace of blood or yellowish or brownish discharge. The other sign of purity is the white discharge, which is a white fluid that comes out at the end of menses indicating the cessation of blood. Whenever you see either of these two signs, perform Ghusl and pray, whether this happens after one day, three days, six days, or ten days. If you see a yellowish or brownish discharge after the cessation of bleeding, it is not considered your period.
This applies as long as the number of days during which you experience the bleeding does not exceed fifteen days, which is the maximum duration of menses, and it is understood from your question that this is indeed the case. You are considered ritually pure during the time of purity between the two bleedings, and the rulings that apply to women in a state of ritual purity apply to you during this time, such as the permissibility of praying and so on.
Allah knows best.