Barcelona have signed the Croatia midfielder Alen Halilovic from Dinamo Zagreb.

Barcelona said the 17-year-old Halilovic has agreed a five-year contract. The Spanish champions are to pay Dinamo €2.2m (£1.8m) as an initial payment, "which will increase as the player meets certain goals".

Halilovic said: "Barcelona is something special, a club I have loved since I was a child and I am honoured by the opportunity." He became Croatia's youngest player in June 2013 and is the youngest goalscorer in the Croatian first division.