*{
    font-family: "Open Sans";
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    

}



#oftalcheck {
display: flex;
align-items: center;
}


.checkbox-oftalmologo{

    display: flex;
    text-align: center;
    justify-content: center;
    margin-bottom: 1.5em;
    margin-left: -0.7em;
    margin-top: -0.5em;
    align-items: center;

}

#oftalmologo{
    width: 1.2em;
    height: 1.2em;
    padding: 1px;
    font-size: 16px;
    margin-left: 1em;
    background-color: yellow;
    cursor: pointer;

}

#clinica{
    width: 1.2em;
    height: 1.2em;
    padding: 1px;
    font-size: 16px;
    margin-left: 1em;
    background-color: yellow;
    cursor: pointer;

}

input {
    width: 25em; /* Los inputs ocuparán todo el ancho disponible */
    padding: 8px;
    font-size: 16px; /* Espacio interno para los inputs */ /* Para incluir el padding en el cálculo del ancho */ /* Espacio después de cada input */
    margin: 0.3em;
    border: none;
}

select {
  width: 30em; /* Los inputs ocuparán todo el ancho disponible */
  padding: 8px; /* Espacio interno para los inputs */ /* Para incluir el padding en el cálculo del ancho */ /* Espacio después de cada input */
  margin-bottom: 0.3em;
  margin-left: 0.3em;
}

.cont-register{
    display: flex;
    justify-content: center;

    
   
}

.form-register-user{
    background-color: rgba(215, 215, 215, 0.68);
    display: flex;
    justify-content: center;
    height: 39em;
    padding-top: 6em;
    padding-bottom: 3em;
    padding-left: 3em;
    padding-right: 3em;
    width: 35em;
    border-radius: 30px;
    margin-top: 2em;
   
}

h2{

    text-align: center;
    margin-bottom: 0.6em;
}


.select2-container .select2-selection--single {
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    width: 25em;
    margin-left: 0.3em;
    margin-bottom: 0.3em;
    margin-top: 0.3em;
    
    
}

.select2-selection {
  border: none !important;
  border-radius: 1px !important;
  box-shadow: none !important;
  outline: none !important;
}


.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #333;
    font-size: 1em;
  

}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    position: absolute !important;
    right: 0px !important; /* Ajusta este valor según sea necesario */
    top: 50% !important;
    transform: translateY(-50%);
    display: none;
}


.select2-container--default .select2-search--dropdown .select2-search__field {
    width: 100% !important; /* Ajusta según lo necesites */
    margin: 0 auto; /* Esto lo centrará horizontalmente */
    display: block;
}

.select2-container--default .select2-dropdown {
    min-width: 400px !important; /* Ajusta este valor según sea necesario */
    margin-left: 0.3em;
    margin-top: -0.2em;
}

.registrarse {
  
    
    text-align: center;
    
    

}

.registrarse button {
    background-color: #007bff; /* Azul brillante */
    color: white; /* Texto blanco */
    border: none; /* Sin borde */
    padding: 12px 20px; /* Espaciado */
    font-size: 16px; /* Tamaño del texto */
    font-weight: bold; /* Negrita */
    border-radius: 8px; /* Bordes redondeados */
    cursor: pointer; /* Cursor en forma de mano */
    transition: background-color 0.4s ease, transform 0.2s ease;
    margin-left: -0.3em;
}

.registrarse button:hover {
    background-color: #0056b3; /* Azul más oscuro al pasar el mouse */
    
}

.registrarse button:active {
    background-color: #003d80; /* Azul más oscuro al hacer clic */
   
}

input:focus, textarea:focus, select:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important; /* Elimina sombras en Bootstrap u otros frameworks */
}

#boton-atras {
    color: #393939;
    text-decoration: none;
    font-weight: bold;
    margin-left: 0.5em;
    transition: color 0.2s ease;
}

#boton-atras:hover {
    color: rgb(0, 168, 209);
    
}


.usernameErrorDiv {
    width: 25em;
    padding-left: 1em;
    padding-right: 1em;
    text-align: center;
    
    margin-left: 0.3em;
    
     
}


#usernameError {
   font-size: 14px;
   text-align: center;
   color: red;
   display: none;
   margin-right: 1em;
   
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    background-color: white !important; /* Color de fondo normal */
    color: black !important; /* Color del texto */
    -webkit-box-shadow: 0 0 0px 1000px white inset !important; /* Evita el cambio de color */
    transition: background-color 5000s ease-in-out 0s; /* Mantiene el color sin cambios */
}

.errorMessage-all {
    color: red;
    left: 0.5em;
    text-align: center;
    
   
}

.iniciar-sesion-cont {
    display: flex;
    align-items: center;
    margin-top: 0.9em;
    padding-left: 3em;
    padding-top: 1.5em;
    
   
}

.terms {
    margin-top: 1.7em;
    margin-bottom: 1em;
    text-align: center;
    font-size: 12px;
    color: #494949;
    
   
}

.space1 {
  width: 100%;
  height: 100%;
  margin: 0em;
  margin: 0em;

}

.space1::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height:  100%;
  background-image: url('/bg/bg-register.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.2; /* Ajusta la opacidad SOLO del fondo */
  z-index: -1; /* Mantiene la imagen detrás del contenido */
}

@media (max-width: 768px) {
    .form-register-user {
      width: 80%;
      padding: 2em;
      height: auto; /* Permite que se ajuste la altura según el contenido */
    }
    input, select {
      width: 100%;
      font-size: 16px;
      margin: 0.5em 0;
    }
    .checkbox-oftalmologo {
      flex-direction: column;
      gap: 0.5em;
      margin-bottom: 2em;
    }
    .iniciar-sesion-cont {
      padding-left: 1em;
      margin-top: 1em;
    }
    .usernameErrorDiv {
      width: 90%;
    }
    .terms {
      font-size: 12px;
    }
  }
  
  /* ===== Media Queries para teléfonos móviles ===== */
  @media (max-width: 480px) {
    .form-register-user {
      width: 90%;
      padding: 1.5em;
      height: 42em;
      padding-top: 4em;
      margin-top: 1em;
    }
    input, select {
      width: 99%;
      font-size: 14px;
      margin: 0.4em 0;
    }
    .checkbox-oftalmologo {
        display: flex;
      gap: 0.5em;
    }

    .checkbox-oftalmologo p{
      margin-left: 1em;
    }

    .select2-container--default .select2-dropdown {
        min-width: 295px !important; /* Ajusta este valor según sea necesario */
        margin-left: -0.1em;
    }

   
    .iniciar-sesion-cont {
        display: flex;
        justify-content: center;
        justify-items: center;
      text-align: center;
      margin-top: 1em;
      padding-bottom: 1em;
      margin-top: 2em;
    }
    .usernameErrorDiv {
      width: 100%;
    }
    .terms {
      font-size: 10px;
    }
    .select2-container .select2-selection--single {
        height: 40px !important;
        display: flex !important;
        align-items: center !important;
        width: 18.3em;
        margin-left: -0em;
        margin-bottom: 0.3em;
        margin-top: 0.3em;
    }

    .select2-container--default .select2-selection--single .select2-selection__rendered {
      font-size: 0.9em;
    
  
  }
  .space1 {
    width: 100%;
    height: 60em;
    
  }

  .terms {
    margin-top: 2.5em;
    margin-bottom: 1.5em;
    
  }

  .space1::before {
    content: "";
    position: absolute;
    opacity: 0.2; /* Ajusta la opacidad SOLO del fondo */
    width: 100%;
    height:  70em;
 
  }
  }













