The sleeping problems you are experiencing( late night insomnia, early morning insomnia) are resulting from disturbed Circadian Rhythm.
Circadian Rhythms are our body’s natural cycles that control appetite, energy, mood, sleep and libido. Because the circadian rhythm controls the sleep/wake cycle, circadian rhythm disorder often results in insomnia.
Almost all of us, at some time during a year fall out of balance and suffer from sleep, mood or anxiety disorders.
Poor sleep hygiene, excessive intake of red bull and coffee can be cause of Circadian Rhythm Disorder.
Circadian Rhythms control the timing, quantity and quality of the hormones and neurotransmitters the body produces and eventually secretes. Hormones and neurotransmitters are the elements that determine how we feel, our sleep patterns, our appetite, our sex drive and other sleep and mood-related issues.
I think your sleep problem matches with Advanced Circadian Rhythm Disorder.
Try to get more info about it and find solutions for making yours circadian rhythm work properly.
Best wishes
Marija