/* ==============================
   ESTILOS GENERALES
================================= */
.login-body {
  background: linear-gradient(rgba(157, 111, 83, 0.8), rgba(20, 118, 188, 0.8)), url("../img/background.250da9dd7b90.jpg") no-repeat center center / cover;
  background-size: cover;
  background-position: center;
  min-height: 90vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 80px;
  flex-direction: column;
}

.main-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  /* Esto hace que el contenedor ocupe el espacio restante */
  padding-bottom: 80px;
  /* Asegura espacio para el footer */
}

/* ==============================
   TARJETA DE LOGIN
================================= */
.login-card {
  position: relative;
  background-color: transparent !important;
  border: none !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  width: 100%;
  margin: 20px;
  max-width: 320px;
  border-radius: 20px;
  overflow: visible !important;

}

.login-card .card-body {
  padding-bottom: 60px !important;
  /* Espacio extra abajo para el botón flotante */
}


.card-inner-wrapper {
  width: 100%;
  height: 100%;
}

.login-header {
  background-color: #221f21;
  text-align: center;
  border: none;
  border-bottom: 30px solid #ffffff;
  padding: 10px 0 10px 0;
  display: flex;
  justify-content: center;
  align-items: center;

  /* --- AÑADIMOS ESTAS LÍNEAS --- */
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.login-header img,
.login-header p,
.login-header div {
  /* Aplica esto a los elementos internos relevantes */
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
  /* Ajusta la altura de línea si es el texto */
  display: block;
  /* Para imágenes, a veces ayuda a eliminar el espacio inferior */
}

.login-header img {
  vertical-align: middle !important;
  /* Ayuda a alinear si es inline-block */
  display: block !important;
  /* Alternativa para eliminar espacio inferior */
}

.login-header .text-muted {
  /* O la clase que uses para "Monitoring Network" */
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  line-height: 1 !important;
  /* Puede que necesites ajustar esto */
}

/* ==============================
   LOGO
================================= */
.logo-container {
  display: inline-block;
  margin: 0 auto;
  text-align: center;
}

.logo {
  width: 180px;
  /* <-- Esta línea encogerá la imagen. Ajusta el número si es necesario. */
  height: auto;
  align-items: center;
  display: block;
  margin: 0 auto;
}

.logo-text {
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 18px;
  /* <-- Esta línea encogerá el texto. */
  margin-top: 3px;
  letter-spacing: 0.5px;
}

/* ==============================
   CUERPO DE LA TARJETA
================================= */
.login-card .login-card-body {
  background-color: #6c4b32;
  padding: 10px 25px 10px;

  /* --- AÑADIMOS ESTAS LÍNEAS --- */
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

/* ==============================
   FORMULARIO
================================= */
.login-card .form-group .form-label {
  display: block;
  color: #ffffff;
  font-weight: bold;
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 8px;
}

.login-card .form-group input {
  background-color: #c5b9b2;
  border: none;
  border-radius: 50px;
  color: #654836;
  font-weight: bold;
  text-align: center;
  padding: 3px 20px;
  height: auto;
  width: 75%;
  box-sizing: border-box;
  display: block;
  margin-left: auto;
  margin-right: auto;
}


/* Inputs unificados */
.login-card .login-input,
.login-card .form-control {
  background-color: #c5b9b2;
  border: none;
  border-radius: 50px;
  color: #654836;
  font-weight: bold;
  text-align: center;
  padding: 10px 20px;
  font-size: 16px;
  height: auto;
  width: 100%;
  box-sizing: border-box;
}

.login-card .login-input:focus,
.login-card .form-control:focus {
  box-shadow: none;
  outline: none;
}

.login-card .login-input::placeholder,
.login-card .form-control::placeholder {
  color: #654836;
  font-weight: bold;
  opacity: 1;
}

/* ==============================
   BOTÓN DE INICIO DE SESIÓN
================================= */
.login_btn {
  background-color: #fdfeff;
  color: #654836;
  font-weight: bold;
  border-radius: 50px;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  padding: 10px 30px;
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
}

.login_btn:hover {
  background-color: #ffffff;
  color: #654836;
  transform: translate(-50%, 45%) scale(1.05);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
}

/* ==============================
   ENLACES (registro / reset pass)
================================= */
.login-card .mt-3 {
  text-align: center;
  margin-top: 15px !important;
}

.login-card .mt-3 p,
.login-card .mt-3 span,
.login-card .mt-3 a {
  font-size: 0.9rem;
  color: #f0f0f0;
  text-decoration: none;
}

.login-card .mt-3 a {
  font-weight: bold;
  text-decoration: underline;
}

.login-card .mt-3 a:hover {
  color: #ffffff;
}

/* ==============================
   SELECTOR DE IDIOMA
================================= */
.language-selector-container {
  /* Ya no es necesario el posicionamiento absoluto */
  margin-top: 25px;
  /* Espacio entre el card y el selector */
  position: relative;
  z-index: 10;
}

.language-selector {
  display: flex;
  gap: 15px;
}

.language-selector button {
  background: transparent;
  color: #fdfeff;
  border: none;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s ease;
  padding: 0;
}

.language-selector button:hover,
.language-selector button.selected {
  opacity: 1;
  transform: scale(1.1);
}

/* ==============================
   FOOTER
================================= */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #1476bc;
  color: white;
  text-align: center;
  padding: 10px 0;
  font-size: 0.9rem;
  z-index: 20;
}

/* ==============================
   MENSAJES DE ERROR
================================= */
.error-msg {
  display: inline-block;
  color: #fff;
  text-shadow:
    -1px -1px 0 #dc3545,
    1px -1px 0 #dc3545,
    -1px 1px 0 #dc3545,
    1px 1px 0 #dc3545;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 4px 8px;
  border-radius: 6px;
  margin-top: 4px;
}

html:lang(es) .password-title-bar {
  font-size: 0.9rem;
  /* Ajusta este valor si es necesario */
}

/* ==============================
   ESTILOS PARA PANTALLAS PEQUEÑAS
================================= */
@media (max-width: 420px) {

  .language-selector {
    flex-direction: column;
    /* Apila los botones verticalmente */
    gap: 10px;
    /* Reduce el espacio entre ellos */
  }

}