Afghan chefs work in a restaurant kitchen in Kabul. ─ AFP
More than 2.5 million of the 8m schoolchildren are girls, according to the United Nations. More than a quarter of the seats in parliament are reserved for women and in 2016 they made up nearly a fifth of the workforce.
Explore: Afghan women fear peace plans will reverse rights
But despite the progress ─ and millions spent by Western aid programmes since 2001 ─ Afghanistan ranks last in the Georgetown Institute for Women, Peace and Security index which measures well-being and self-reliance.
The fears of educated women in the capital are shared by those in rural areas, where the literacy rate can be less than two percent and rights are often even more constrained by conservative tradition.
Hasina, a 32-year-old mother of one in the disputed southern province of Helmand, says she dreads going backwards. "We are worried and afraid for our lives," she says.
"If the Taliban come back and ban schools for my children, or don't allow me to go out without my husband, this is not acceptable for me," says Nazia Rezaee, a 35-year-old in the central city of Ghazni.
Afghan women 'have changed'
Several feminist activists told AFP they believe the country has changed and Afghan women will not allow their rights to be taken away without a fight.
"Afghan women are stronger, more informed, more educated than ever, and no one, including men, will agree to return to what Afghanistan was in 1998," says Fawzia Koofi,who heads the parliamentary Committee on Women and Human Rights.
Read more: 'The difference between black and blue'
Activist Attia Mehraban feels the same. "I dream of peace, like millions of other Afghans, but I dream more vividly of my freedom and rights as a 21st Century human being," she told AFP.
"The price of peace cannot be limitless."
Her message to the Taliban, she said, is "Afghan women have changed... If you think you can come back with the same ideology ... you are wrong, you will be facing a formidable force of well-educated Afghan women who are conscious of their rights and who will not give in to oppression."
Hosai Andar, a businesswoman in her 40s, said she could "not imagine the world would abandon us once again".
"I am an optimist," she told AFP. "They will stay with us."