I have not read the book, but from what I understand, its based on a society with Sharia Law.
Atwood took inspiration(if you could “call” it that) from the growing influence of the Christian Right in the 70’s and 80’s as well as from the Iranian Revolution in 1979. She was coming at it from a all extremist religions beat up on women” angle.