The Swedish actress has been in movies that have remained touchstones of American cinema, like Casablanca and Gaslight, and popularized an ideal for women as free, sexually liberated and worldly.