/* ==========================================================================
   CSS ESPECÍFICO PARA LA PÁGINA DE RESTABLECER CONTRASEÑA
   ========================================================================== */

/* ---- VARIABLES GLOBALES (PALETA DE COLORES Y VALORES) ---- */
:root {

  /* Colores de Texto y Elementos */
  --color-light: #ffffff;
  --color-error: #dc3545;

  /* Colores de Formulario */
  --color-input-bg: #c5b9b2;

  /* Valores Reutilizables */
  --pill-border-radius: 50px;
}

/* ---- RESET Y ESTILOS GENERALES ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

.password-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: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.password-content-wrapper {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* ==========================================================================
   ESTRUCTURA DE LA TARJETA (CARD)
   ========================================================================== */

.password-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;
  overflow: visible !important;
}

.card-inner-wrapper {
  border-radius: 20px;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.login-header {
  background-color: #221f21;
  text-align: center;
  border: none;
  padding: 10px 0 10px 0;
  /* quitamos padding extra */

  display: flex;
  /* Activa el modo Flexbox */
  justify-content: center;
  /* Centra el contenido horizontalmente */
  align-items: center;
}

.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. Cámbiala de 29px a 18px. */
  margin-top: 3px;
  letter-spacing: 0.5px;
}

/* ==============================
   CUERPO DE LA TARJETA
================================= */
.password-card .card-body {
  background-color: #6c4b32;
  padding: 30px 25px 50px;
}

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

.password-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;
}

.password-title-bar {
  background-color: #ffffff;
  color: #221f21;
  padding: 2px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.password-title-bar i {
  font-size: 20px;
  color: #846d5f;
  margin-right: 15px;
}

.card-body {
  background-color: #6c4b32;
  padding: 30px 35px;
  padding-bottom: 50px;
}


/* ==========================================================================
   FORMULARIO
   ========================================================================== */

.form-group {
  margin-bottom: 20px;
  text-align: center;
}

.form-label {
  display: block;
  color: var(--color-light);
  font-weight: bold;
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 8px;
}


.card-body .form-control {
  background-color: #c5b9b2;
  border: none;
  border-radius: 50px;
  color: #654836;
  font-weight: bold;
  text-align: center;
  padding: 10px 10px;
  width: 100%;
}

.card-body .form-control:focus {
  box-shadow: none;
  outline: none;
}

#id_password1_helptext ul li {
  color: white !important;
}

.reset_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%);
  white-space: nowrap;
}

.error-msg {
  display: inline-block;
  color: var(--color-light);
  text-shadow:
    -1px -1px 0 var(--color-error),
    1px -1px 0 var(--color-error),
    -1px 1px 0 var(--color-error),
    1px 1px 0 var(--color-error);
  font-weight: 500;
  font-size: 0.9rem;
  margin-top: 6px;
}

/* Estilos para mensajes de validación de contraseña */
.invalid-feedback,
.help-block {
  color: var(--color-light) !important;
  font-weight: 500;
  font-size: 0.9rem;
}

.mesage_container {
  color: #fdfeff;
  padding: 15px 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: justify;
  font-weight: bold;
  line-height: 1.5;
}

.mesage_container p {
  margin: 5px 0;
  /* Añade un pequeño espacio vertical entre los párrafos */
}


/* ==========================================================================
   BOTONES
   ========================================================================== */

.register-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%);
}

.register-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);
}


/* ==========================================================================
   ESTILOS PERSONALIZADOS PARA EL MODAL DE PRIVACIDAD (VERSIÓN FINAL)
   ========================================================================== */

/* Contenedor principal del modal */
#privacyModal .modal-dialog .modal-content {
  border-radius: 16px !important;
  /* Bordes mucho más redondeados */
  border: none !important;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25) !important;
}

/* Cabecera del modal */
#privacyModal .modal-header {
  background-image: url("../img/EncabezadoPrinc.5d88fc2552c2.png");
  background-size: contain;
  background-repeat: no-repeat;
  border-bottom: none !important;
  background-position: 10px 10px;
  border-radius: 15px 15px 0 0 !important;
  /* Redondea solo las esquinas superiores */

  display: flex;
  /* Habilita Flexbox */
  justify-content: center;
  /* Alinea los elementos al final (a la derecha) del contenedor */
  align-items: center;
}

#privacyModal .modal-logo img {
  width: 25px;
  /* Define el ancho del logo */
  height: auto;
  /* Mantiene la proporción para que no se deforme */
  margin-left: 15px;
  margin-top: 5px;
}

#privacyModal .img_legal {
  width: 25px;
  /* Ajusta este valor al tamaño que necesites */
  height: auto;
  /* Esto mantiene la proporción para que no se deforme */
  margin-right: 15px;
}

#privacyModal .modal-title {
  color: #fff !important;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 25px !important;
  margin-top: 5px;
}

/* Cuerpo del modal */
#privacyModal .modal-body {
  padding: 1.5rem !important;
}

.modal-title .js-bold-last-word strong {
  font-weight: bold !important;
}

.modal-title .fw-bold {
  font-weight: bold;
}

/* Pie de página del modal */
#privacyModal .modal-footer {
  background-color: #f8f9fa !important;
  border-top: 1px solid #e9ecef !important;
  padding: 1rem 1.5rem !important;
  border-radius: 0 0 16px 16px !important;
}

/* Estilo general para los botones del modal */
#privacyModal .modal-footer .btn {
  background-color: transparent !important;
  border: 1px solid #ccc !important;
  color: #555 !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  padding: 8px 20px !important;
}

#privacyModal .modal-footer .btn:hover {
  background-color: #f0f0f0 !important;
}

/* Botón primario (Aceptar) */
#privacyModal .modal-footer .btn-primary {
  border-color: #007bff !important;
  color: #007bff !important;
}

#privacyModal .modal-footer .btn-primary:hover {
  background-color: #007bff !important;
  color: #fff !important;
}

/* Iconos dentro de los botones */
#privacyModal .modal-footer .btn i {
  margin-right: 8px;
}

/* Botón secundario (Rechazar) */
#privacyModal .modal-footer .btn-secondary {
  background-color: #e9ecef !important;
  color: #495057 !important;
}

#privacyModal .modal-footer .btn-secondary:hover {
  background-color: #d6dade !important;
}