/* Estilos generales para el formulario */
body, html {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 20px;
  box-sizing: border-box;
}

body{
  background: url('../images/fondo/fondo.jpg') no-repeat center;
  background-size: cover;
  height: 100vh;
}
/* Fondo oscuro para el formulario */
.form-container {
  background: rgba(0, 0, 0, 0.7);
  padding: 30px;
  border-radius: 10px;
  width: 100%;
  max-width: 900px;
  display: block;
  text-align: center;
  margin-top: 50px;
  margin-bottom: 50px;
  box-sizing: border-box;
  overflow: hidden;
}

/* Título del formulario */
.form-container h2 {
  margin-bottom: 20px;
  color: white;
  font-size: 22px;
  width: 100%;
}

/* Secciones del formulario */
.form-sections {
  display: flex;
  justify-content: space-between;
  gap: 20px; /* Espacio entre las secciones */
  width: 100%;
  flex-wrap: wrap; /* Permite que los elementos se ajusten si no caben en una sola fila */
}

.section-left,
.section-right {
  width: 48%; /* Ambos ocupan el 48% del ancho del formulario */
  padding: 0 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* Estilo de los campos */
.input-group {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

/* Estilo de las etiquetas */
.input-group label {
  display: block;
  margin-bottom: 10px;
  color: white;
  font-size: 14px;
}

/* Estilo de los inputs */
.input-group input {
  width: 100%;
  padding: 14px 50px; /* Aumento el tamaño de los inputs */
  margin: 0;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.8);
  color: #333;
  box-sizing: border-box;
  font-size: 14px;
}

/* Estilo para el botón */
.frutiger-button {
  cursor: pointer;
  position: relative;
  padding: 2px;
  border-radius: 6px;
  border: 0;
  text-shadow: 1px 1px #000a;
  background: linear-gradient(#006caa, #00c3ff);
  box-shadow: 0px 4px 6px 0px #0008;
  transition: 0.3s all;
  width: 100%; /* Hace que el botón ocupe todo el ancho disponible */
}

.frutiger-button:hover {
  box-shadow: 0px 6px 12px 0px #0009;
}

.frutiger-button:active {
  box-shadow: 0px 0px 0px 0px #0000;
}

.inner {
  position: relative;
  inset: 0px;
  padding: 1em;
  border-radius: 4px;
  background: radial-gradient(circle at 50% 100%, #30f8f8 10%, #30f8f800 55%),
    linear-gradient(#00526a, #009dcd);
  overflow: hidden;
  transition: inherit;
}

.inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(-65deg, #0000 40%, #fff7 50%, #0000 70%);
  background-size: 200% 100%;
  background-repeat: no-repeat;
  animation: thing 3s ease infinite;
}

@keyframes thing {
  0% {
    background-position: 130%;
    opacity: 1;
  }

  to {
    background-position: -166%;
    opacity: 0;
  }
}

.top-white {
  position: absolute;
  border-radius: inherit;
  inset: 0 -8em;
  background: radial-gradient(
    circle at 50% -270%,
    #fff 45%,
    #fff6 60%,
    #fff0 60%
  );
  transition: inherit;
}

.inner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transition: inherit;
  box-shadow: inset 0px 2px 8px -2px #0000;
}

.frutiger-button:active .inner::after {
  box-shadow: inset 0px 2px 8px -2px #000a;
}

/* Estilo para el texto dentro del botón */
.text {
  position: relative;
  z-index: 1;
  color: black; /* Cambié el color a negro */
  font-weight: 650;
  transition: inherit;
  font-size: 17px;
}


/* Responsividad */
@media (max-width: 1024px) {
  /* Aseguramos que se ajusten mejor las secciones en tabletas */
  .form-sections {
    flex-direction: column; /* Disposición vertical para pantallas pequeñas */
  }

  .section-left, .section-right {
    width: 100%; /* Ambas secciones ocupan el 100% del ancho */
  }

  .input-group input {
    padding: 12px;
    font-size: 16px; /* Aumentar el tamaño de fuente en pantallas pequeñas */
  }

  .form-container h2 {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  /* Optimización para pantallas pequeñas */
  .form-container {
    padding: 20px;
    width: 100%;
    margin-top: 10px;
  }

  .form-sections {
    flex-direction: column; /* Disposición vertical para pantallas más pequeñas */
  }

  .section-left, .section-right {
    width: 100%; /* Ambas secciones ocupan el 100% del ancho */
  }

  .input-group input {
    padding: 12px;
    font-size: 16px;
  }

  .form-container h2 {
    font-size: 18px;
  }
}

@media (max-width: 500px) {
  /* Ajuste para pantallas muy pequeñas */
  .input-group input {
    padding: 12px 15px;
    font-size: 14px; /* Ajustar el tamaño de fuente para pantallas muy pequeñas */
  }

  .form-container h2 {
    font-size: 16px;
  }

  .section-left, .section-right {
    width: 100%;
  }

  .frutiger-button {
    font-size: 16px;
  }
}
