Flux-lattice melting in layered superconductors.