Geometry ofN=1 supergravity