/* =====================================================
   DoubleAuthentification.fr - White-label InfoNex (FINAL)
===================================================== */

:root {
  --blue-main: #2FA4E7;
  --blue-dark: #0B3C5D;
  --black-main: #111111;
}

/* Background */
body {
  background: linear-gradient(135deg, #ffffff 0%, #F0F6FB 100%) !important;
  color: var(--black-main);
}

/* Header */
.navbar,
.navbar-default {
  background: linear-gradient(90deg, var(--blue-dark), var(--blue-main)) !important;
  border: none !important;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}

/* Remove privacyIDEA brand and show InfoNex logo */
.navbar-brand img,
.navbar-brand svg,
.navbar-brand span,
.navbar-brand .brand-text,
.navbar-brand .navbar-brand-logo {
  display: none !important;
}

.navbar-brand {
  background: url("/static/customize/images/logo.png") no-repeat left center !important;
  background-size: contain !important;
  width: 260px;
  height: 55px;
  margin: 10px 0 0 10px;
  padding: 0 !important;
}

/* Client message (ONLY ONCE - body is unique) */

body::before {
  content: content: "Portail Client InfoNex FR\A\APour plus d'informations ou toute demande d'assistance, merci de nous contacter :\Acontact@infonex.fr ou support@infonex.fr\A\AVous pouvez egalement consulter notre site web :\Awww.infonex.fr";
  white-space: pre-line;
  display: block;
  max-width: 720px;
  margin: 25px auto 18px auto;
  padding: 18px 22px;
  text-align: center;
  font-size: 16px;
  line-height: 1.6;
  color: #0b2b3a;
  background: #f4f9fc;
  border: 1px solid #d6e6f2;
  border-radius: 12px;
}


/* Buttons / inputs */
.btn-primary {
  background: var(--blue-main) !important;
  border-color: var(--blue-dark) !important;
  color: #fff !important;
  font-weight: 600;
  border-radius: 8px;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--blue-dark) !important;
  border-color: var(--blue-dark) !important;
}

.form-control {
  border-radius: 6px;
  border: 1px solid #d0d7de;
}

/* Hide "Veuillez vous inscrire" title */
h1, h2 {
  display: none !important;
}

/* Hide "Se connecter avec clé d'accès" (secondary button) */
.btn-default,
a.btn-default,
button.btn-default {
  display: none !important;
}

/* Hide footer/forum/privacyIDEA mentions */
footer,
.footer,
#footer,
.page-footer,
.navbar-fixed-bottom,
a[href*="privacyidea"],
a[href*="privacyidea.org"],
a[href*="github.com/privacyidea"],
.about,
.forum-link,
.help-link {
  display: none !important;
  visibility: hidden !important;
}



/* Hide "Se connecter avec clé d'accès" (bouton secondaire du login) */
.slide a.btn,
.slide button.btn {
  /* rien - juste pour cadrer le scope */
}

/* On cache le bouton secondaire (souvent btn-default / btn-secondary) */
.slide .btn-default,
.slide a.btn-default,
.slide button.btn-default,
.slide .btn-secondary,
.slide a.btn-secondary,
.slide button.btn-secondary {
  display: none !important;
}

/* Hide the secondary login button (the one under the primary button) */
button.btn-primary + button,
a.btn-primary + a,
a.btn-primary + button,
button.btn-primary + a {
  display: none !important;
}


/* Hide welcome/about modal that mentions privacyIDEA */
.modal,
.modal-backdrop,
#pi_welcome,
#welcome,
#welcomeModal,
#aboutModal {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Ensure page is usable */
body.modal-open {
  overflow: auto !important;
  padding-right: 0 !important;
}
