An unmarried female who gives birth to a child is the sole residential parent and legal custodian of the child until a court of competent jurisdiction issues an order designating another person as the residential parent and legal custodian. A court designating the residential parent and legal custodian of a child described in this section shall treat the mother and father as standing upon an equality when making the designation.