Tehran: Millions of Iranians voted in high-stake elections on Friday.
The contest is seen by some analysts as a make-or-break moment that could shape the future for the next generation, in a country where nearly 60 per cent of the 80 million population is under 30.
Participation appeared enthusiastic and relaxed in the first polls since a nuclear deal last year led to a lifting of sanctions and deeper diplomatic engagement abroad.
Authorities extended voting two times, citing a rush of people wanting to cast their ballot.
An hour before the expiry of voting, there were still long queues outside polling stations in the capital, and state television showed throngs of voters in Ahvaz and Shiraz. It was unclear how the turnout might shape the outcome.
"Whoever likes Iran and its dignity, greatness and glory should vote. Iran has enemies. They are eyeing us greedily," Supreme Leader Ayatollah Ali Khamenei said after casting his ballot.
"Turnout in the elections should be so high to disappoint our enemies... People should be observant and vote with open eyes and should vote wisely."
At stake is control of the 290-seat parliament and the 88-member Assembly of Experts, the body that has the power to appoint and dismiss the supreme leader.
During its next eight-year term it could name the successor to Khamenei, who is 76 and has been in power since 1989.
Control of parliament will influence the ability of President Hassan Rouhani, constrained so far, to deliver on his promises of greater freedoms and economic reforms - as well as his own chances of re-election next year.
The Guardian Council, appointed half by Khamenei and half by the judiciary, disqualified thousands of candidates for the legislature and vetoed 80 per cent of those seeking election to the Assembly of Experts.
They included Hassan Khomeini, the moderate grandson of Ayatollah Ruhollah Khomeini, the leader of Iran's 1979 revolution and Khamenei's predecessor.
As the day went on, Iranians waited patiently in long lines outside polling stations to cast ballots, with whole families coming together with their young children.
Responses from voters at polling stations in Tehran suggested the electorate is polarised.
Sayed Ehsan, 30, a physician, said that under the conservatives Iran would avoid dependence on America.
"I don't agree with having close relations with the West or making changes... as the left side (reformists) want. They will take the country to civil war. They want to change the power structure, this change will have a heavy cost for the country."
Mohammed Reza, a 23-year-old electric engineer, said he was voting for the reformists because he wanted change. "I don't need money, I don't need a job, what I need is freedom. I need an Iran that is open to the world," he said.
Askar Jaafarzad, 29, a pro-reformist, said he had graduated as a vet but could not find work. He works as a flight attendant and when off duty drives a cab to pay his house loan. "Every young person in this country will vote for the reformists because they want jobs and a more decent life," he said.
Supporters of Rouhani, who championed the nuclear deal and is likely to seek a second presidential term, are pitted against hardlines deeply opposed to detente with the West.
Rouhani said the government would spare no effort to protect people's votes and ensure healthy and legitimate elections.
The opposition website Kaleme said without elaborating that turnout was higher than in previous elections.
While reformists saw a high turnout as an opportunity for change, conservatives said it showed widespread popular support for the political system -- and perhaps by extension the status quo.
"Each vote of the people is like a shot being fired toward global arrogance," said Mohammad Reza Naghdi, the head of the Basij militia, according to Fars News. "A shot that shows the strength and greatness of the Iranian people without a doubt."
The Interior Ministry said on Wednesday that all Iranians would be able to vote in the elections.
But opposition cleric Mehdi Karroubi cast, who had made known his wish to vote for the first time since being put under house arrest in 2011, was not able to cast his ballot by the end of regular voting hours, his son told Reuters.
"As of yet, my father Mehdi Karroubi, has not had the opportunity to cast his vote despite his decision to vote," Mohammad Taghi Karroubi told Reuters.
Karroubi and fellow reformist Mirhossein Mousavi, both in their 70s, ran for election in June 2009. They became figureheads for many Iranians, who protested against a contest they believed was rigged to bring back president Mahmoud Ahmadinejad, the official winner.
Influential former president Ayatollah Akbar Hashemi Rafsanjani said Iranians knew this was a day of destiny.
Asked what would happen if reformists did not win, he told Reuters: "It will be a major loss for the Iranian nation."
Rafsanjani called on election authorities to protect people's votes, saying "you should show our people that their votes will be preserved and are in safe hands".
Foreign Minister Mohammad Javad Zarif, who led nuclear talks with world powers, told Reuters while voting at the Jamaran mosque in northern Tehran that Iranians would continue to support policies that brought about the nuclear deal.
"The message to the international community from this election is the Iranians are solidly behind their government," he said. "They will continue to support the policies that have been adopted leading to the conclusion and successful implementation of the nuclear deal and this will continue."
Hundreds of onlookers cheered Khomeini when he arrived to vote at Jamaran, witnesses said. A similar reception greeted reformist former president Mohammad Khatami.
Supporters of the reformist and moderate candidates barred by the Guardian Council have called on voters to back Rouhani's allies.
Vote counting will start late Friday evening and some small constituencies could declare on Saturday morning, an electoral official said. Full results are expected early next week.
But it could take longer to get a clear picture of who has come out on top, as the numerous small parties and independent candidates form alliances and declare their allegiance.