Coordinates, indices and decay conventions
The normal axis Z points from the first glass into the air. X lies along the surface in the plane of incidence, and nothing varies along Y. The angle is measured from the normal, not from the surface. Both glasses have an assumed fixed index of 1.515, and air has index one. The time dependence is an exponential with negative frequency. Below the critical angle the wave in air propagates instead of decaying exponentially.