/* Estilos para pantallas grandes (desktop) - Base - No se modifican */
.contenedorMain {
  display: flex;
  flex-direction: row;
  height: 100vh;
  width: 100%;
  margin: -8px;
  padding: 0;
}

.contenedor1 {
  display: flex;
  flex-direction: column;
  width: 110%;
  height: 100%;
  justify-content: center;
  align-items: center;
  border-top-right-radius: 50%;
  border-bottom-right-radius: 50%;
  background-image: url("../img/fondos/fondo2.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
}

.boInicio {
  z-index: 1;
  background-color: transparent;
  color: #005C98;
  width: 12%;
  height: 4%;
  border-radius: 10px;
  padding: 10px;
  margin-top: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.2vw;
  text-align: center;
  justify-content: center;
  align-items: center;
  display: flex;
  position: relative;
  margin-left: 80px;
  border: 1px solid #005C98;
  text-decoration: none;
}

.boInicio:hover {
  background-color: #005C98;
  color: #fff;
}

.contenedor1::after {
  content: "";
  background-color: rgba(255, 255, 255, 0.3);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-top-right-radius: 50%;
  border-bottom-right-radius: 50%;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.contenedor2 {
  display: flex;
  width: 90%;
  height: 100%;
  background-color: #fff;
  justify-content: center;
  align-items: center;
  color: white;
}

.titlemain {
  margin-bottom: 20px;
  z-index: 1;
  background-image: url("../img/logos/easy.png");
  height: 300px;
  width: 300px;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
}

.form {
  display: flex;
  flex-direction: column;
  width: 70%;
  height: 250px;
  max-width: 300px;
  padding: 40px;
  border-radius: 10px;
  background-color: #ecfeff;
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
}

input {
  margin-bottom: 20px;
  padding: 10px;
  border: none;
  border-bottom: 1px solid #ccc;
  outline: none;
}

button {
  padding: 10px;
  border: none;
  border-radius: 5px;
  background-color: #005C98;
  color: white;
  font-weight: bold;
  cursor: pointer;
  margin-top: 20px;
}

button:hover {
  background-color: #ccc;
  color: #005C98;
}

.title {
  font-size: 20px;
  color: #005C98;
  font-weight: bold;
  margin-bottom: 20px;
  justify-content: center;
  text-align: center;
  font-family: 'Arial';
}

.buInicio {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  color: #fff;
  z-index: 1;
}

/* Media Queries para pantallas más pequeñas */

/* Para Móviles (max-width: 480px) */
@media (max-width: 480px) {
  .contenedorMain {
    flex-direction: column;
    height: 100vh; /* Asegurar que el contenedor principal ocupe toda la pantalla */
  }

  .contenedor1 {
    display: none; /* Ocultar contenedor1 (imagen) en móviles */
  }

  .contenedor2 {
    width: 100%;
    height: 100vh; /* Asegurar que el contenedor2 ocupe toda la pantalla */
    display: flex;
    justify-content: center; /* Centrar horizontalmente */
    align-items: center; /* Centrar verticalmente */
    background-color: #ecfeff; /* Fondo del formulario */
    padding: 20px; /* Añadir un poco de padding para que no quede pegado a los bordes */
  }

  .form {
    width: 90%; /* Ancho del formulario */
    max-width: 100%; /* Evitar que el formulario sea más ancho que la pantalla */
    padding: 20px; /* Reducir el padding para móviles */
    border-radius: 10px;
    background-color: #fff; /* Fondo blanco para el formulario */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Sombra suave */
  }

  .title {
    font-size: 1.5em; /* Tamaño del título */
    margin-bottom: 20px; /* Espaciado inferior */
  }

  input, button {
    padding: 12px;
    font-size: 1em;
    width: 100%; /* Asegurar que los inputs y el botón ocupen todo el ancho */
  }

  .boInicio {
    display: none; /* Ocultar botón de Inicio en móviles */
  }
}

/* Para Tablets (min-width: 481px) and (max-width: 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .contenedorMain {
    flex-direction: column;
    height: auto;
  }

  .contenedor1, .contenedor2 {
    width: 100%;
    height: auto;
    border-radius: 0;
  }

  .contenedor1 {
    display: flex;
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 50%;
    padding-bottom: 50px;
  }

  .contenedor2 {
    margin-top: 30%;
  }

  .contenedor1::after {
    border-radius: 0;
    border-bottom-left-radius: 50%;
  }

  .boInicio {
    width: 25%;
    height: auto;
    font-size: 2vw;
    margin-left: 0;
    margin-top: 30px;
  }

  .titlemain {
    height: 200px;
    width: 200px;
  }

  .form {
    width: 90%;
    padding: 30px;
  }

  .title {
    font-size: 1.8em;
  }
}