FC Barcelona has reached agreement with Dynamo Zagreb and 17-year-old Croatian attacking midfielder Alen Halilovic on the transfer of the player to Camp Nou for five seasons, the Spanish-league powerhouse confirmed Thursday on its Web site.

The initial amount of the deal is 2.2 million euros (roughly $3 million), "which will increase as the player achieves the objectives of consolidating a position in the first team," the statement said, without indicating how much the transfer may eventually cost.

Halilovic, one of European soccer's most highly touted teenagers, announced a month ago on Instagram that he was heading for Barcelona but the Catalan club said then the deal had not been finalized.

The left-footed midfielder said after the official announcement that he was "delighted and it's hard to find the words to describe how I feel."

"Thank you very much to Dynamo, who will always be my first love and the club where my dreams started coming true ... Of course, Barcelona is something special, I have loved the club since I was a kid and it will be an honor to be able to play for Barça," he was quoted as saying on the Spanish club's Web site.

The statement noted that Halilovic has played 19 games - eight as a starter - and scored three goals in Croatian-league action this season for first-place Dynamo, which has an 11-point lead over Rijeka.

He also became the youngest player to compete for Croatia's national team when he made his debut in a June 2013 friendly against Portugal.

The Croat, who turns 18 in June, will initially be assigned to Barça's B squad. EFE