Feeling rejected and unwanted

My girl has been very obsessed with her father for a few months now. Its got to a point where she cries if he leaves, puts her down and even calls for him when she cries. If she hurts herself i go to comfort her and she literally will pull away and want her dad and wont stop until she goes to him.

I spend 90% of the day with her and he works from home so he will come in and out during the day and then spend time with her once work is finished. I try my best to show my daughter how much i love her and what not but she still prefers dad over me.

This weekend i went away with the girls leaving my daughter home for the first time ever since she was born. When i was leaving she was happy to say goodbye and didnt even seem sad about it. When i facetimed her during my get away she didnt seem fased that I was still away.

But if her dad even just goes down stairs to his office she bawls her eyes out And i have to distract her. I cant help but feel sad.

Tonight I literally cried and cried in bed while she refused me to comfort her back to sleep in the night and only wanted him to do it.

Why is this happening. I feel like im a failure. People around me notice that she isnt attached to me one bit and that she adores my husband more. Its obviously not a bad thing for her to be so smitten with her dad but Its been so long since she has just wanted me and its starting to hurt now.

Im not after a clingy i want mummy toddler but I would every now and then just want the same attention from her that my husband recieves.

Cant help but feel like Ive failed her in someway and she just wants nothing to do with me anymore 😭😭