* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.main-container {
  background: #000046;  /* fallback for old browsers */
background: -webkit-linear-gradient(to right, #1CB5E0, #000046);  /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to right, #1CB5E0, #000046); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

height: 100vh;;
}

.logo{
  position: absolute;
  left: 5%; /* Ajusta este valor según lo que necesites */
  top: 50%;
  transform: translateY(-50%);
  
    max-width: 600px; /* Ajusta el tamaño según sea necesario */
    max-height: 200px; /* Ajusta el tamaño según sea necesario */
}
.right {
  position: absolute;
  width: 360px;
  left: 60%;
  height: 580px;
  top: calc(50% - 580px / 2);
  background: rgba(0, 0, 0, 0.9);
  border-radius: 25px;
  text-align: center;
}

.title {
  font-family: Sansation;
  font-style: normal;
  font-weight: bold;
  font-size: 25px;
  line-height: 145px;
  align-items: center;
  font-family: "Open Sans", sans-serif;
  color: whitesmoke;
}

.title .fa-brands {
  font-size: 15px;
  margin: 0 10px;
}

.title .fa-brands:nth-child(2) {
  transform: rotateY(180deg);
}

.fa-compact-disc {
  font-size: 70px;
  margin-top: -30px;
  color: rgba(242, 246, 250, 0.7);
}

form {
  margin-top: 50px;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  border: none;
  outline: none;
  background: none;
  font-size: 14px;
  color: azure;
  padding: 20px 10px 20px 5px;
  border: 2px solid beige;
  width: 280px;
  height: 45px;
  margin: 5px 15px;
  border-radius: 25px;
  box-sizing: border-box;
  text-align: center;
  overflow: hidden;
  font-family: "Nunito Sans", sans-serif;
}

.contra {
  margin-bottom: 50px;
}

.errorMensajeForm{
  margin-bottom: 20px;
}

::placeholder {
  color: seashell;
  font-size: 18px;
}

label .fa-envelope {
  font-size: 20px;
  position: absolute;
  padding: 24px 32px;
  margin-top: -5px;
  margin-left: 5px;
  color: rgba(242, 246, 250, 0.7);
}

label .fa-lock {
  font-size: 20px;
  position: absolute;
  padding: 24px 32px;
  margin-left: 7px;
  margin-top: -6px;
  color: rgba(242, 246, 250, 0.7);
}

.keepme {
  color: #d4efff;
  font-family: "Nunito Sans", sans-serif;
}

label .fa-regular {
  font-size: 15px;
  position: absolute;
  padding: 25px 0px;
  margin-left: -60px;
  margin-top: -6px;
  color: rgba(210, 230, 250, 0.7);
}

label i.fa-eye {
  color: #88183a;
}

input[type="checkbox"] {
  vertical-align: middle;
  margin: 30px 3px;
  font-weight: bold;
  height: 18px;
  width: 18px;
}

button {
  width: 260px;
  height: 45px;
  left: 1273px;
  top: 780px;
  margin: 0px 20px 20px;
  font-weight: bold;
  font-size: 20px;
  line-height: 28px;
  cursor: pointer;
  color: black;
  border: none;
  background: rgba(255, 255, 255, 0.89);
  border-radius: 25px;
}

.link {
  text-align: center;
  display: block;
  margin: 0 18px;
  color: #e6f6ff;
  font-family: "Nunito Sans", sans-serif;
  font-size: 15px;
}

.link a {
  color: #e6f6ff;
  font-weight: bold;
}

footer {
  flex-shrink: 0;
  background-color: black;
  color: rgb(240, 239, 239);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  border-top: 1px solid #5695cf;
  width: 100%;
  height: 20px;
  text-align: center;
  padding-bottom: 7px;
}

small {
  font-family: "Nunito Sans", sans-serif;
  font-weight: bold;
  font-size: 12px;
}

small > a {
  color: #fff;
  font-size: 11px;
}

/* Para JS */
.error {
  border: solid 2px rgb(253, 29, 29);
}

.mensajeError {
  color: rgb(255, 47, 47);
  font-size: smaller;
  font-weight: bold;
  font-family: 'Times New Roman', Times, serif;
}

.normal {
  font-size: normal;
  font-weight: normal;
}


@media only screen and (max-width: 950px) {
  .main-container {
    background: linear-gradient(138.56deg, #5695cf 23.44%, #88183a 89.5%);
    
    padding: 20px; /* Padding para evitar que el contenido se pegue a los bordes */
    overflow: auto; 
  }
  
  .right {
    left: calc(68% - 500px / 2);
  }

  .logo {
    position: relative; /* Cambiar a relativo para que no esté posicionado absolutamente */
    left: 50%; /* Centramos el logo horizontalmente */
    transform: translateX(-50%); /* Alineamos el logo al centro */
    top: 50px; /* Ajustar la distancia desde la parte superior según sea necesario */
    max-width: 80%; /* Ajustar el tamaño según sea necesario */
    max-height: 150px; /* Ajustar la altura máxima según sea necesario */
  }

  .right {
    position: relative; /* Cambiar a relativo para que esté en flujo normal del documento */
    left: 0; /* Reseteamos la posición */
    width: 90%; /* Hacer que el ancho sea del 100% */
    min-width: 360px; /* Limitar el ancho máximo */
    margin: 0 auto; /* Centrar el formulario en la pantalla */
    margin-top: 20px; /* Añadir un margen superior para separar el formulario del logo */
    background: rgba(0, 0, 0, 0.9);
    border-radius: 25px;
    text-align: center;
    flex-grow: 1;
    padding: 20px; /* Añadir padding para que no esté pegado a los bordes */
  }

  form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px; /* Ajustar el margen superior del formulario */
  }


}

