/* =============================
   GLOBAL
============================= */

:root {
  --tenant-primary: #0d6efd; /* fallback (sera remplacé via dmx-bind sur body) */
}

/* Fond général */
body {
  background-color: var(--color-bg-secondary, #f5f6f8);
}

/* =============================
   LOGO + H1 (logo + host)
============================= */

.tenant-h1 {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.tenant-logo {
  height: 70px !important;
  width: auto;
  display: inline-block;
}

.tenant-host {
  font-size: 12px;
  line-height: 1.2;
  color: #7a7a7a;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* =============================
   TITRE H2 (form-title)
============================= */

.form-title {
  margin: 0 0 14px 0;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 600;
  color: #111;
  letter-spacing: -0.3px;
  position: relative;
  padding-bottom: 12px;
}

.form-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 72px;
  border-radius: 999px;
  background: var(--tenant-primary);
  opacity: 0.95;
}

/* =============================
   FORM / INPUTS
============================= */

.form-control {
  border: 0;
  border-bottom: 1px solid #bdbdbd;
  border-radius: 0;
  padding-left: 0;
  padding-right: 0;
  box-shadow: none !important;
  background: transparent;
}

.form-control:focus {
  border-bottom-color: var(--tenant-primary);
  box-shadow: none !important;
}

/* =============================
   PASSWORD FIELD (Générer + œil)
============================= */

.password-field {
  position: relative;
}

.password-field .form-control {
  padding-right: 110px;
}

.pw-actions {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.pw-generate {
  border: 0;
  background: transparent;
  color: var(--tenant-primary);
  font-weight: 700;
  font-size: 13px;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}

.pw-generate:hover {
  text-decoration: underline;
}

.pw-eye {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6f6f6f;
  cursor: pointer;
}

.pw-eye svg {
  width: 22px;
  height: 22px;
}

/* =============================
   SWITCH (primary tenant)
============================= */

.form-check-input:checked {
  background-color: var(--tenant-primary) !important;
  border-color: var(--tenant-primary) !important;
}

/* glow simple (sans calcul rgb) */
.form-check-input:focus {
  border-color: var(--tenant-primary) !important;
  box-shadow: 0 0 0 0.2rem rgba(0,0,0,0.08) !important;
}

.form-switch .form-check-input {
  cursor: pointer;
}

/* =============================
   BOUTONS
============================= */

.btn-primary {
  background-color: var(--tenant-primary) !important;
  border-color: var(--tenant-primary) !important;
}

.btn-primary:hover,
.btn-primary:focus {
  filter: brightness(0.95);
}

/* =============================
   PRE + DEBUG
============================= */

pre {
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 320px;
  overflow: auto;
}

/* =============================
   BADGE VERSION
============================= */

.version-badge {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 9999;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 12px;
  line-height: 1;
}
