html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden; /* evita scroll */
}
@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');

.login-frase {
  font-family: 'Pacifico', cursive;
  font-size: 15px;
  text-align: center;
  color: #454444;
  margin: 20px 0;
  line-height: 1.4;
  margin-bottom: 30px;
}
.content {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh; /* ocupa el 100% de la altura exacta de la pantalla */
  width: 100vw;  /* ocupa el 100% del ancho exacto */
  background: url('../img/LoginBack.png') no-repeat center center;
  background-size: cover;
}

.content::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4); /* oscurece la foto */
  z-index: 1;
}

.container-login {
  display: flex;
  flex-direction: column;
  width: 90%;              /* adaptable */
  max-width: 420px;        /* límite estándar */
  height: auto;            /* crece según contenido */
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  position: relative;
  z-index: 2;
  padding: 30px 20px;
}

.login-logo {
  display: block;
  margin: 0 auto; /* centrado con espacio abajo */
  max-width: 220px;  /* tamaño máximo de la imagen */
  height: auto;      /* mantiene proporción */
}


/* Parte izquierda (formulario) */
.left {
  flex: 1;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.container-title h1 {
  font-size: 28px;
  font-weight: 700;
  color: #333;
}

.container-title p {
  font-size: 14px;
  color: #777;
}

/* Inputs */
.container-input {
  margin-bottom: 20px;
  margin-right: 10px;
}

.input-texto-arriba {
  width: 100%; /* ocupa todo el ancho disponible */
  max-width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  outline: none;
  font-size: 14px;
  transition: all 0.3s;
  box-sizing: border-box; /* incluye padding en el ancho */
}

.input-texto-arriba:focus {
  border-color: #0C3C60;
  box-shadow: 0 0 5px rgba(231, 76, 60, 0.3);
}

/* Botón */
.container-input button {
  width: 100%;
  padding: 14px;
  background: #0C3C60;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.container-input button:hover {
  background: #08273f;
}

/* Mensajes de error */
.invalid-feedback {
  color: #e74c3c;
  font-size: 13px;
  margin-top: 5px;
  display: block;
}

.portada {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


@media (max-width: 480px) {
  .container-login {
    max-width: 320px; /* más angosto en celulares */
    padding: 15px 10px;
  }

  .login-logo {
    max-width: 160px;
  }

  .login-frase {
    font-size: 14px;
  }
  .container-title h1 {
    font-size: 22px;
  }
}

@media (min-width: 992px) {
  .container-login {
    max-width: 390px;   /* un poco más angosto */
    max-height: 600px;  /* evita que se vea muy alto */
    padding: 25px 18px; /* reduce espacios internos */
  }
}
