/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}
body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: #e9ecef; /* fondo gris claro detrás de la card */
}
.login-wrapper {
  width: 100%;
  max-width: 900px;
  padding: 20px;
}
.login-card {
  display: flex;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  background: #fff;
}
/* Panel izquierdo */
.login-left {
  flex: 1;
  background: #fff;
  padding: 40px;
  display: flex;
  justify-content: center;  
  align-items: center;
}
/* Bloque que contiene logo + título + formulario */
.form-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 350px;
}
/* 🔹 Agrupamos logo y título en un bloque compacto */
.header-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 15px; /* espacio antes de los inputs */
}
/* Logo */
.logo {
  width: 160px;
  margin-bottom: -5px; /* 🔹 CAMBIADO: margen negativo para superponer ligeramente */
  filter: brightness(0) invert(0);
}
/* Título */
.titulo {
  font-size: 24px;
  font-weight: bold;
  color: #2c3e50;
  margin: 0 0 20px 0; /* 🔹 Asegurándonos que no tenga margin-top */
  text-align: center;
}
form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px; /* espacio uniforme entre inputs */
}
/* Inputs con íconos */
.input-group {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.input-group input {
  width: 100%;
  padding: 10px 40px 10px 35px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #f8f9fa;
  font-size: 14px;
}
.input-group input:focus {
  border-color: #6b1e1e;
  outline: none;
}
.input-group .icon {
  position: absolute;
  left: 10px;
  font-size: 16px;
  color: #555;
}
/* Link */
.olvide {
  font-size: 12px;
  color: #333;
  margin: 5px auto 10px;
  text-decoration: none;
}
.olvide:hover {
  text-decoration: underline;
}
/* Botón */
.btn-login {
  background: #6b1e1e;
  color: #fff;
  font-size: 16px;
  padding: 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}
.btn-login:hover {
  background: #521414;
}
/* Panel derecho */
.login-right {
  flex: 1;
  background: #6b1e1e;
  display: flex;
  justify-content: center;
  align-items: center;
}
.login-right img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

/* Botón dentro del modal: mismo estilo que login */
#recuperarModal .btn-login {
  background: #6b1e1e;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px;
  transition: 0.3s;
}
#recuperarModal .btn-login:hover {
  background: #521414;
}
/* Backdrop del modal igual al fondo del login */
.modal-backdrop.show {
  background-color: #f8f9fa !important;
  opacity: 1 !important;
}

/* ================= SweetAlert2 ================= */
.swal2-confirm {
  background-color: #1f6fff !important; /* Azul */
  color: #fff !important;
  border-radius: 6px !important;
  padding: 8px 20px !important;
  font-weight: bold;
  border: none !important;
}
.swal2-confirm:hover {
  background-color: #155bcc !important; /* Azul más oscuro en hover */
}

/* ================= Ajuste Mostrar contraseña ================= */
.form-check-label {
  font-size: 12px; /* mismo tamaño que el link "¿Olvidó su contraseña?" */
  color: #333;
}
.form-check-input {
  transform: scale(0.9); /* reduce tamaño del checkbox */
  margin-top: 2px;
}
