@import url("./fonts.css");

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow:auto;
}
body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: rgb(49, 55, 82);
  position: relative;
}

.modal-header{
  border: none !important; /* Elimina el borde del encabezado del modal */
}

.btn_close{
  width:50px;
  height:50px;
  position: absolute;
  top: 0;
  background-color: transparent;
  left: 86%;
}

.fondo {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: -1;
  overflow: hidden;
}

.modal-content{
  box-shadow: 8px 4px 10px rgba(0, 0, 0, 0.8);
}

.titulo_tickets {
  font-size: 6.8rem;
  color: white;
  position: relative;
  left: 24%;
  font-weight: 900;
}


form {
  z-index: 1;
  position: relative;
  position: relative;
  left: 25%;
  margin-bottom: 30px;
  font-weight: 900;
}

.input-container label {
  font-family: "Montserrat";
  font-size: 16px;
  font-weight: bold;
  color: #2a4f59;
  margin-right: 10px;
  white-space: nowrap;
  pointer-events: none;
}

.input-container {
  font-family: "Montserrat";
  position: relative;
  display: flex;
  align-items: center;
  background: #e4e4ea;
  border-radius: 8px;
  padding: 2px;
  width: 92%;
  border: 1px solid #03a8e9;
  margin-bottom: 15px;
  color: #2a4f59;
  padding-left: 20px;
  overflow: hidden; /* Asegura que no se desborde */
}

/* Estilos para inputs con autocompletado */
.input-container input:-webkit-autofill,
.input-container input:-webkit-autofill:hover, 
.input-container input:-webkit-autofill:focus,
.input-container input:-webkit-autofill:active {
  -webkit-text-fill-color:#1e383f  !important;
  -webkit-box-shadow: 0 0 0px 1000px transparent  inset !important;
  transition: background-color 5000s ease-in-out 0s !important;
  border: none !important;
  font-size: 16px !important;
  font-family: "Montserrat" !important;
}

/* Versión para Firefox */
@supports (-moz-appearance:none) {
  .input-container input:autofill {
    background-color: #e4e4ea !important;
    color: #1e383f  !important;
  }
}

.cerrar_modal{
  margin-top: -10px;
  width: 30%;
  background-color: #de2c8c;
  color: #e0e0e0;
  border: none;
  border-radius: 8px;
  position: relative;
  left: 35%;
}

.cerrar_modal_texto{
  font-size: 20px;
  font-weight: bold;
  color: white;
}

.input-container input {
  border: none;
  background: #e4e4ea;
  outline: none;
  font-size: 16px;
  flex: 1;
  padding: 5px;
  z-index: 10;
  font-family: "Montserrat";
  color: #1e383f;
  width:100%;
}

.toggle-password {
  cursor: pointer;
  font-size: 18px;
  color: gray;
  position: relative;
  z-index: 10;
  width: 25px;
  height: 25px;
  margin-right: 1%;
}

.btn_acep {
  width: 40%;
  background-color: #1BAAAA;
  color: #fff8f8;
  border: none;
  border-radius: 8px;
  font-size: 19px;
  cursor: pointer;
  position: relative;
  left: 25%;
  font-family: "Montserrat-SemiBold";
}

button:hover {
  background-color: #1c7e7e;
}

.link {
  font-family: "Montserrat";
  font-weight: 600;
  color: #1BAAAA ;
  font-size: 16px;
  position: relative;
  left: 24%;
  top: -15px;
}

.link:hover{
  color: #1c7e7e;
}

.robot {
  position: absolute;
  top: 50%;
  left: 25%;
  transform: translate(-50%, -50%);
  width: 30rem;
  height: auto;
}

.error_titulo {
  color: rgb(70, 51, 105);
  font-size: 40px;
  font-weight: bold;
  text-align: center;
}

#errorModal,
#successModal {
  background-color: rgb(87 67 163 / 87%);
}

.modal-content {
  padding: 20px;
  text-align: center;
}

.close {
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  font-weight: bold;
}

.close:hover {
  color: red; /* Cambiar color al pasar el mouse */
}


.mensaje{
  font-size: 30px;
  font-weight: bold;
  color: #331897da;
}

.mensaje_error{
    font-size: 30px;
  font-weight: bold;
  color: #331897da;
}

.success_icon{
  width: 14rem;
  position: relative;
  left: 23%;
}

.error_icon{
    width: 38%;
    position: relative;
    left: 29%;
}

.modal-content {
    position: relative;
    display: flex ;
    flex-direction: column;
    width: 30rem !important;
    color: var(--bs-modal-color);
    pointer-events: auto;
    background-color: var(--bs-modal-bg);
    background-clip: padding-box;
    border: var(--bs-modal-border-width) solid var(--bs-modal-border-color);
    border-radius: 2rem !important;
    outline: 0;
    HEIGHT: 22rem;
}

@media (max-width: 768px) {
  .error_icon {
    width: 60%;
    position: relative;
    left: 19%;
  }

  .modal-content {
  padding: 0px;
  text-align: center;
  }

  .mensaje{
  font-size: medium;
  font-weight: bold;
  color: #331897da;
  }

  .mensaje_error{
    font-size: x-large;
    font-weight: bold;
    color: #331897da;
  }

  .success_icon{
  width: 10rem;
  }
  img.fondo {
    position: fixed; 
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: right;
    left: 0;
    top: 0;
    z-index: -1;
    transform: scale(1.5);
    transform-origin: right;
  }
  
  body {
    overflow: hidden; /* Evita barras de desplazamiento no deseadas */
  }

  .titulo_tickets {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 10px;
    left: 0;
  }

  form {
    width: 90%;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .input-container {
    width: 90%;
    padding: 2px 0 2px 10px; /* Ajusta el padding */
    position: relative; /* Asegurar que los elementos internos sean relativos */
  }

  .toggle-password {
    position: absolute; /* Para que se mantenga dentro del input */
    right: 10px; /* Lo posiciona dentro del input a la derecha */
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: gray;
    cursor: pointer;
  }

  .btn_acep {
    width: 90%;
    font-size: 1rem;
    left: 0;
  }

  .robot {
    display: none;
  }

  .link {
    font-size: 14px;
    left: 0;
    text-align: center;
  }

  .modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 80%;
    color: var(--bs-modal-color);
    pointer-events: auto;
    background-color: var(--bs-modal-bg);
    background-clip: padding-box;
    border: var(--bs-modal-border-width) solid var(--bs-modal-border-color);
    border-radius: var(--bs-modal-border-radius);
    outline: 0;
  }

  .modal-content {
    left: 10%;
    top: 30%;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    width: 80% !important;
    max-width: 400px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    border-color: #643fa0da;
    border: 5px;
  }
}

@media (min-width: 1920px) {
    .input-container {
      left: 1vw;
      font-family: "Montserrat";
      position: relative;
      display: flex;
      align-items: center;
      background: #e0e0e0;
      border-radius: 20px; 
      padding: 20px;
      width: 90%; 
      height: 80px; 
      font-size: 20px; 
      border: 2px solid rgb(3, 168, 233); 
      margin-bottom: 20px; 
      color: #2a4f59;
    }
    
    /* También aumentar el tamaño del input dentro */
    
    .input-container input {
      font-size: 30px; /* Texto más grande dentro del input */
      padding: 8px; /* Más espacio interno */
    }

    .input-container label{
      font-size: 25px;
    }

    .btn_acep {
      font-size: 200%;
      padding: 5px;
  }

  .link{
    font-size: 1vw;
  }

  .toggle-password {
    cursor: pointer;
    font-size: 9px;
    color: gray;
    position: relative;
    z-index: 10;
    width: 40px;
    height: auto;
    margin-left: 10px;
  }
}
.input-container input::placeholder{
    color: #A0A0A0;
}
@media (max-width: 400px) {
  .error_titulo {
  font-size: 33px;
}
.mensaje {
  font-size: 33px;
}
}