Rights group slams Guantanamo-like Afghanistan law