Scotland face an uphill task in their Women's World Cup play-off after losing the first leg at home to Sweden.