Critical percolation on the torus