.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: calc(100vh - 40px);
}

.side_a {
  color: #fff;
  background: linear-gradient(135deg, #152338 0%, #2c394c 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 50%;
  padding: 40px;
  position: relative;
}

.side_a .content_a {
  margin: 0;
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 480px;
}

.side_a h2 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  color: #cbeef3;
  text-transform: uppercase;
}

.side_a h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 18px;
  line-height: 1.3;
}

.side_a p {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 30px;
}

/* Features modernas */
.features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 25px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  text-align: left;
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(5px);
}

.feature-item .icon {
  width: 24px;
  height: 24px;
  background: #cbeef3;
  color: #152338;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.feature-item span {
  font-size: 0.9rem;
  font-weight: 500;
}

.side_a .lettering_top {
  margin-bottom: 10px;
  letter-spacing: 10px;
}

.lettering_top h2 {
  text-decoration: underline;
}

.side_a .title {
  margin: 0 0 6px 0;
}

.side_a .text {
  justify-content: center;
}

.side_b {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ffffff;
}

.side_b .content_b {
  display: flex;
  justify-content: center;
  align-items: center;
}

.card {
  width: 420px;
  background: white;
  border: none;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
}

.card .card_top {
  background: linear-gradient(135deg, #152338 0%, #2c394c 100%);
  border-radius: 0;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.card_top::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 0;
  right: 0;
  height: 30px;
  background: white;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.card_top .logo {
  width: 150px;
  height: 150px;
  /* background: white; */
  border-radius: 50%;
  /* padding: 12px; */
  /* box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15); */
  z-index: 1;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.card_content {
  margin: 30px auto;
  width: 80%;
}

div.form {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

form h4 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: #152338;
  font-weight: 700;
  text-align: center;
}

form label {
  display: block;
  margin: 0 0 6px;
  color: #152338;
  font-weight: 600;
  font-size: 0.85rem;
}

form input {
  display: block;
  font-size: 0.9rem;
  margin: 0 0 16px;
  padding: 12px 14px;
  width: 100%;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

form input:focus {
  outline: none;
  border-color: #152338;
  background: white;
  box-shadow: 0 0 0 3px rgba(21, 35, 56, 0.08);
}

.enviar {
  width: 100%;
  padding: 13px 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #152338 0%, #2c394c 100%);
  box-shadow: 0 4px 12px rgba(21, 35, 56, 0.25);
  margin-top: 8px;
}

.enviar:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(21, 35, 56, 0.35);
}

.enviar:focus {
  outline: none !important;
  background: linear-gradient(135deg, #152338 0%, #2c394c 100%) !important;
  box-shadow: 0 4px 12px rgba(21, 35, 56, 0.25),
    0 0 0 3px rgba(203, 238, 243, 0.3) !important;
  color: white !important;
}

.enviar:active {
  transform: translateY(1px) !important;
  background: linear-gradient(135deg, #0f1a2e 0%, #1f2a3a 100%) !important;
  box-shadow: 0 2px 8px rgba(21, 35, 56, 0.25) !important;
  color: white !important;
}

.login_links {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.login_links a {
  text-decoration: none;
  font-size: 0.85rem;
  color: #152338;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
  font-weight: 500;
}

.login_links a:hover {
  color: #2c394c;
}

.login_links a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #152338, #cbeef3);
  transition: width 0.3s ease;
}

.login_links a:hover::after {
  width: 100%;
}

.error-message {
  background: rgba(220, 53, 69, 0.1);
  border-left: 4px solid #dc3545;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 8px;
  color: #dc3545;
  font-size: 14px;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .login_container {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }

  .side_a,
  .side_b {
    width: 100%;
    min-height: 50vh;
  }

  .side_a h1 {
    font-size: 1.5rem;
  }

  .side_a h2 {
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .card {
    width: 90%;
    margin: 20px;
  }

  .card_content {
    width: 85%;
  }

  form input {
    width: 100%;
  }

  .features {
    gap: 10px;
  }

  .feature-item {
    padding: 10px 14px;
  }

  .side_a h1 {
    font-size: 1.4rem;
  }

  .side_a h2 {
    font-size: 0.8rem;
  }

  .side_a p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .side_a h1 {
    font-size: 1.2rem;
  }

  .side_a h2 {
    font-size: 0.75rem;
  }

  .side_a p {
    font-size: 0.85rem;
  }

  .features .feature-item:last-child {
    display: none;
  }

  .card {
    width: 95%;
    margin: 10px;
    border-radius: 12px;
  }

  .card_top {
    height: 80px;
  }

  .card_top .logo {
    width: 70px;
    height: 70px;
  }
}

/* Estilos generales del footer */
footer {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #152338;
  background: linear-gradient(135deg, #e8e9eb 0%, #d0d3d7 100%);
  height: 40px;
  width: 100%;
  box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.08);
  position: absolute;
  bottom: 0;
}

footer p {
  font-size: 0.75rem;
  text-align: center;
  margin: 0;
  font-weight: 500;
}

/* MEDIA QUERIES */
/* Estilos para dispositivos móviles */
@media (max-width: 960px) {
  /* Ajustes para la disposición general */
  .container {
    display: flex;
    flex-direction: column; /* Colocamos los lados uno debajo del otro */
    min-height: 100vh; /* Asegura que el contenedor ocupe al menos toda la altura de la pantalla */
    padding-bottom: 20px; /* Espacio adicional para el footer */
    overflow-y: auto; /* Permite desplazamiento vertical en toda la página */
  }

  /* Lado A (azul) */
  .side_a {
    width: 100%; /* Lado A ocupa el 100% del ancho */
    height: auto; /* Definir una altura de navbar pequeña */
    background-color: #152338; /* Azul */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
  }

  .side_a .content_a {
    text-align: center;
  }

  .side_a h2 {
    font-size: 20px; /* Ajustamos el tamaño del texto */
    margin: 0;
  }

  .side_a .content_a p,
  .side_a .content_a h1 {
    display: none; /* Ocultamos el texto largo en móvil */
  }

  /* Lado B (contenido principal) */
  .side_b {
    width: 100%; /* Lado B ocupa el 100% */
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Cambié align-items para evitar el centrado */
    padding: 10px;
    flex: 1; /* Hace que la sección B ocupe el espacio restante */
  }

  .content_b {
    width: 100%; /* Lado B ocupa el 100% */
    margin-bottom: 80px; /* Añadimos espacio inferior para evitar que las tarjetas lleguen al footer */
  }

  .card {
    width: 90%; /* Ajustamos el ancho de la tarjeta */
    margin: 20px 0; /* Ajustamos el margen entre tarjetas */
    border-radius: 20px; /* Redondeamos las esquinas */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.5s ease, transform 0.5s ease;
  }

  .card:hover {
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3), 0 8px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
  }

  .card .card_top {
    height: 120px; /* Ajustamos la altura del logo en la tarjeta */
    border-radius: 20px 20px 0 0 !important; /* Redondeamos las esquinas superiores */
  }

  /* Hacemos el logo más responsivo */
  .logo {
    width: 100%; /* Asegura que el contenedor ocupe todo el ancho disponible */
    height: auto; /* Mantiene la altura proporcional */
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .logo img {
    width: 100%; /* Ajustamos el tamaño del logo al 60% del contenedor */
    height: auto; /* Mantiene la proporción */
    object-fit: contain; /* Asegura que la imagen no se deforme */
  }

  /* Formulario y botones */
  form input {
    width: 100%; /* Hacemos los inputs del formulario más anchos */
    padding: 12px 15px; /* Aumentamos el padding de los inputs */
  }

  .enviar {
    width: 100%; /* El botón ocupará el 100% del ancho */
    padding: 15px 0; /* Aumentamos el padding del botón */
    font-size: 1.1rem; /* Aumentamos el tamaño de la fuente del botón */
  }

  /* Enlaces de login */
  .login_links {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .login_links a {
    font-size: 0.9rem; /* Reducimos el tamaño de fuente */
  }

  /* Footer responsivo */
  footer {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #152338;
    background-color: #dadabd;
    height: 60px; /* Aumento la altura del footer para más espacio */
    width: 100%;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    margin-top: auto; /* Esto hace que el footer siempre esté pegado al fondo */
    padding: 0 10px;
  }

  footer p {
    font-size: 14px; /* Aumento el tamaño de fuente para mayor visibilidad */
    text-align: center;
  }
}

/* Ajustes para pantallas más pequeñas */
@media (max-width: 480px) {
  .side_a h2 {
    font-size: 18px; /* Ajustamos el tamaño del título para pantallas muy pequeñas */
  }

  footer p {
    font-size: 12px; /* Reducción del tamaño del texto en el footer */
  }
}
