The president is elected on the basis of universal suffrage, through a secret ballot, for a five-year term. If no candidate in the elections secures more than 50% of "all" votes cast (including blank and spoilt ballots), a runoff election is held. The Constitution of Croatia sets a limit of a maximum of two terms in office. The president-elect is required to take an oath of office before the judges of the Constitutional Court. Franjo Tuđman won the first Croatian presidential elections in 1992 and in 1997. During his time in office, the constitution adopted in 1990 provided for a semi-presidential system, which was in the coming years further strengthened by laws specifically aimed at providing Tuđman with sweeping powers (e.g. naming and dismissing numerous government officials, confirming county prefects), as his HDZ party held a supermajority in parliament throughout the 1990s. After his death in 1999, the constitution was amended and many presidential powers were transferred to parliament, to the prime minister and to his government. Stjepan Mesić won two consecutive terms, in 2000 and in 2005, and served as president until 2010. Ivo Josipović won the presidential election held from 2009 to 2010 and left office in 2015, after losing his reelection bid for a second term. Kolinda Grabar-Kitarović won the election held in December 2014 and January 2015, but was defeated in her bid for a second term. Namely, on 5 January 2020 the centre-left former prime minister, Zoran Milanović, won the 2019–20 Croatian presidential election in the second round and took office on 19 February 2020.