Background: Unbound single-particle states become important in determining the properties of a hot nucleus as its temperature increases. We present relativistic mean field (RMF) for hot nuclei considering not only the self-consistent temperature and density dependence of the self-consistent relativistic mean fields but also the vapor phase that takes into account the unbound nucleon states. Purpose: The temperature dependence of the pairing gaps, nuclear deformation, radii, binding energies, entropy, and caloric curves of spherical and deformed nuclei are obtained in self-consistent RMF calculations up to the limit of existence of the nucleus. Method: We perform Dirac-Hartree-Bogoliubov (DHB) calculations for hot nuclei using a zero-range approximation to the relativistic pairing interaction to calculate proton-proton and neutron-neutron pairing energies and gaps. A vapor subtraction procedure is used to account for unbound states and to remove long range Coulomb repulsion between the hot nucleus and the gas as well as the contribution of the external nucleon gas. Results: We show that p-p and n-n pairing gaps in the 1 S 0 channel vanish for low critical temperatures in the range T c p ≈ 0.6-1.1 MeV for spherical nuclei such as 90 Zr, 124 Sn, and 140 Ce and for both deformed nuclei 150 Sm and 168 Er. We found that superconducting phase transition occurs at T c p = 1.03 pp (0) for 90 Zr, T c p = 1.16 pp (0) for 140 Ce, T c p = 0.92 pp (0) for 150 Sm, and T c p = 0.97 pp (0) for 168 Er. The superfluidity phase transition occurs at T c p = 0.72 nn (0) for 124 Sn, T c p = 1.22 nn (0) for 150 Sm, and T c p = 1.13 nn (0) for 168 Er. Thus, the nuclear superfluidity phase-at least for this channel-can only survive at very low nuclear temperatures and this phase transition (when the neutron gap vanishes) always occurs before the superconducting one, where the proton gap is zero. For deformed nuclei the nuclear deformation disappear at temperatures of about T c s = 2.0-4.0 MeV, well above the critical temperatures for pairing, T c p . If we associate the melting of hot nuclei into the surrounding vapor with the liquid-gas phase transition our results indicate that it occurs at temperatures around T = 8.0-10.0 MeV, somewhat higher than observed in many experimental results. Conclusions: The change of the pairing fields with the temperature is important and must be taken into account in order to define the superfluidity and superconducting phase transitions. We obtain a Hamiltonian form of the pairing field calibrated by an overall constant c pair to compensate for deficiencies of the interaction parameters and of the numerical calculation. When the pairing is not zero, the states close to the Fermi energy make the principal contribution to the anomalous density that appears in the pairing field. By including temperature through the use of the Matsubara formalism, the normal and anomalous densities are multiplied by a Fermi occupation factor. This leads to a reduction in the anomalous density and in the pairing as the temper...