A model of a three-dimensional optical structure in which the plane-parallel boundaries have intrinsic nonlinear properties is considered. The internal layer with a finite thickness is an optically transparent medium with defocusing Kerr nonlinearity; on the outside, it is in contact with dielectric linear half-spaces. The mathematical formulation of the model reduces to the nonlinear Schrodinger equation with a positive coefficient of cubic nonlinearity and with a nonlinear self-consistent potential. It is shown analytically that the system contains a nonlinear light wave propagating along the optical layer and localized in dielectric plates. The frequencies of light-field localization in this structure are obtained and the conditions for their existence are determined for different characteristics of the media and the interfaces between them. It is shown that the light field can be localized along the layers for different signs of the nonlinear response of the interfaces between layers of the three-layer structure in the case where one of them is characterized by a focusing nonlinearity; and the other, by a defocusing one.