/* hace que todos los tamaños se calculen correctamente */
* {
  box-sizing: border-box;
}

/* Fondo general */
body {
  background: radial-gradient(circle, #000000, #101070);
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Roboto, sans-serif;
}

/* Caja principal del formulario */
.back {
  background-color: #F5F2F2;
  width: 25vw;             
  height: 80vh;
  border-radius: 5%;
  box-shadow: 12px 12px 2px 1px rgba(150, 147, 147, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  animation: bounce 1.5s;
}

/* Contenedor principal de los campos */
.input-content {
  width: 90%;   
  margin: 0 auto;
}

/* Espaciado entre grupos */
.input-content2 {
  margin-top: 4vh;
}

/* Reset visual para inputs en iOS y Android */
input,textarea,select {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  outline: none;
  box-shadow: none;
  background: none;
}

/* Campos de entrada personalizados */
.input {
  display: block;
  border-radius: 10px;
  width: 100%; 
  height: 8vh;
  border: 2px solid #00204d;
  font-size: 2.3vh;
  padding: 5px 10px;
  color: #000;
  background-color: #fff;
  transition: all 0.2s ease-in-out;
}

.input:focus {
  border-color: #001B42;
  box-shadow: 0 0 5px rgba(0, 27, 66, 0.3);
}

/* Etiquetas de texto */
.textos {
  font-weight: 700;
  font-size: 2.5vh;
}

/* Botón de enviar */
.boton_ingreso {
  border: 2px solid white;
  background-color: #001B42;
  color: white;
  width: 100%;
  height: 8vh;
  font-size: 2.7vh;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.boton_ingreso:hover {
  background-color: #00316d;
}

/* Título del formulario */
.parrafo1 {
  font-size: 5.5vh;
  font-weight: bold;
  color: #00204d;
  margin-top: 3.5vh;
  text-align: center;
}

/* Texto informativo */
.parrafo2 {
  text-align: center;
  font-weight: bold;
}

/* Enlace de registro */
.parrafo3 {
  text-align: center;
  font-weight: bold;
  font-size: 2.5vh;
}

.parrafo3 a {
  color: #001B42;
  text-decoration: none;
}

.parrafo3 a:hover {
  text-decoration: underline;
}

/* Animación de rebote */
@keyframes bounce {
  0%   { transform: translateY(100%); }
  30%  { transform: translateY(-20%); }
  60%  { transform: translateY(10%); }
  100% { transform: translateY(0%); }
}

/*  Versión móvil */
@media (max-width: 768px) {
  .back {
    width: 85%;
    height: 75%;
    border-radius: 6%;
  }

  .parrafo1 {
    margin-top: 5%;
    font-size: 220%;
  }

  .input {
    border-radius: 20px;
    height: 60px;
  }

  .boton_ingreso {
    height: 60px;
  }
}

/*  Ajustes específicos solo para Safari (iPhone/iPad) */
@supports (-webkit-touch-callout: none) {
  .input {
    border-width: 1.6px; 
  }
}