When the latter dissolved in 1992 , Montenegro federated with Serbia , first as the Federal Republic of Yugoslavia and , after 2003 , in a looser union of Serbia and Montenegro .