html,
body {
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: #f7faf8;
}

/* =========================================================
   FTS - LOGIN
   Identité visuelle algérienne / souveraine
   ========================================================= */

.fts-login-root {
  width: 100%;
  height: 100vh;
  min-height: 620px;
  display: flex !important;
  flex-direction: row !important;
  background: #ffffff;
}

/* =========================================================
   PANNEAU GAUCHE
   ========================================================= */

.fts-sidebar {
  position: relative;

  width: 50% !important;
  min-width: 0 !important;
  height: 100vh;

  display: flex !important;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(22, 128, 60, 0.08),
      transparent 35%
    ),
    linear-gradient(
      145deg,
      #ffffff 0%,
      #f5fbf7 48%,
      #e9f6ee 100%
    ) !important;

  border-right: 1px solid rgba(22, 128, 60, 0.12);
  box-shadow: none !important;
}

/* Ligne supérieure inspirée du drapeau algérien */
.fts-sidebar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;

  background: linear-gradient(
    to right,
    #16803c 0%,
    #16803c 50%,
    #d21034 50%,
    #d21034 100%
  );
}

/* décoration légère */
.fts-sidebar::after {
  content: "";
  position: absolute;

  width: 420px;
  height: 420px;

  right: -220px;
  bottom: -220px;

  border-radius: 50%;

  border: 1px solid rgba(22, 128, 60, 0.08);
  box-shadow:
    0 0 0 45px rgba(22, 128, 60, 0.025),
    0 0 0 90px rgba(22, 128, 60, 0.018);

  pointer-events: none;
}

/* =========================================================
   PRESENTATION
   ========================================================= */

.fts-presentation {
  position: relative;
  z-index: 2;

  width: min(620px, 86%);
  max-height: 94vh;

  box-sizing: border-box;

  padding: 30px 20px;

  text-align: center;

  color: #173b28;

  overflow: hidden;
}

/* Banner/logo */
.fts-logo {
  display: block;

  width: min(500px, 96%);
  max-height: 210px;

  height: auto;

  object-fit: contain;

  margin: 0 auto 20px;
}

/* Petit indicateur pays */
.fts-country {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 5px 13px;

  border-radius: 30px;

  background: rgba(22, 128, 60, 0.07);

  color: #16803c;

  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.8px;

  margin-bottom: 10px;
}

/* Titre */
.fts-presentation h1 {
  margin: 5px 0 12px;

  font-size: clamp(28px, 2.5vw, 40px);
  line-height: 1.12;

  font-weight: 800;

  color: #08783a;
}

/* Sous-titre */
.fts-tagline {
  max-width: 570px;

  margin: 0 auto 24px;

  font-size: 16px;
  line-height: 1.55;

  color: #53675b;
}

/* =========================================================
   CARTES
   ========================================================= */

.fts-features {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 11px;

  width: 100%;
  max-width: 570px;

  margin: 20px auto 0;

  text-align: left;
}

.fts-feature {
  display: flex;
  align-items: center;

  gap: 12px;

  min-height: 68px;

  padding: 12px 14px;

  box-sizing: border-box;

  border-radius: 12px;

  background: rgba(255, 255, 255, 0.88);

  border: 1px solid rgba(22, 128, 60, 0.10);

  box-shadow:
    0 4px 16px rgba(22, 128, 60, 0.055);

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.fts-feature:hover {
  transform: translateY(-2px);

  box-shadow:
    0 8px 22px rgba(22, 128, 60, 0.10);
}

.fts-feature > span {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 38px;
  height: 38px;

  flex: 0 0 38px;

  border-radius: 10px;

  background: #eef8f1;

  font-size: 19px;
}

.fts-feature strong {
  display: block;

  margin-bottom: 3px;

  color: #173b28;

  font-size: 13px;
  font-weight: 750;
}

.fts-feature small {
  display: block;

  color: #718078;

  font-size: 10.5px;

  line-height: 1.35;
}

/* =========================================================
   LIGNE ALGÉRIENNE
   ========================================================= */

.fts-algeria-line {
  width: 150px;
  height: 4px;

  margin: 24px auto 0;

  border-radius: 5px;

  background: linear-gradient(
    to right,
    #16803c 0%,
    #16803c 50%,
    #d21034 50%,
    #d21034 100%
  );
}

/* =========================================================
   PANNEAU CONNEXION
   ========================================================= */

.fts-paper {
  position: relative;

  width: 50% !important;
  height: 100vh;

  display: flex !important;

  align-items: center !important;
  justify-content: center !important;

  box-sizing: border-box;

  background: #ffffff !important;

  box-shadow:
    -10px 0 35px rgba(0, 0, 0, 0.045) !important;

  overflow: hidden;
}

/* petite décoration verte en haut à droite */
.fts-paper::before {
  content: "";

  position: absolute;

  top: 0;
  right: 0;

  width: 170px;
  height: 5px;

  background: #16803c;
}

/* petite décoration rouge */
.fts-paper::after {
  content: "";

  position: absolute;

  top: 0;
  right: 0;

  width: 55px;
  height: 5px;

  background: #d21034;
}

/* =========================================================
   FORMULAIRE
   ========================================================= */

.fts-form {
  position: relative;
  z-index: 2;

  width: 100% !important;

  max-width: 440px !important;

  box-sizing: border-box;

  padding: 35px !important;
}

/* =========================================================
   GRANDS ÉCRANS
   ========================================================= */

@media (min-width: 1600px) {

  .fts-sidebar {
    width: 52% !important;
  }

  .fts-paper {
    width: 48% !important;
  }

  .fts-presentation {
    width: min(680px, 88%);
  }

  .fts-logo {
    width: min(540px, 96%);
    max-height: 230px;
  }

  .fts-form {
    max-width: 460px !important;
  }
}

/* =========================================================
   ÉCRANS MOYENS
   ========================================================= */

@media (max-width: 1199px) {

  .fts-sidebar {
    width: 48% !important;
  }

  .fts-paper {
    width: 52% !important;
  }

  .fts-presentation {
    width: 92%;
    padding: 25px 15px;
  }

  .fts-logo {
    width: 90%;
    max-height: 175px;
  }

  .fts-presentation h1 {
    font-size: 30px;
  }

  .fts-tagline {
    font-size: 14px;
  }

  .fts-feature {
    min-height: 62px;
    padding: 10px;
  }
}

/* =========================================================
   PETITS ÉCRANS
   ========================================================= */

@media (max-width: 899px) {

  .fts-login-root {
    min-height: 100vh;
  }

  .fts-sidebar {
    display: none !important;
  }

  .fts-paper {
    width: 100% !important;
    height: 100vh;
    box-shadow: none !important;
  }

  .fts-form {
    max-width: 500px !important;
    padding: 30px !important;
  }
}

/* =========================================================
   ÉCRANS TRÈS PETITS
   ========================================================= */

@media (max-width: 480px) {

  .fts-form {
    padding: 20px !important;
  }
}

/* =========================================================
   IMPRESSION
   ========================================================= */

@media print {

  * {
    height: auto !important;
    overflow: visible !important;
  }
}

/* =========================================================
   FTS - ACCENT VISUEL ALGERIEN
   ========================================================= */

/* Bande verticale verte + rouge sur le bord gauche */
.fts-sidebar::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 7px;
  background: linear-gradient(
    to right,
    #16803c 0px,
    #16803c 4px,
    #d21034 4px,
    #d21034 7px
  );
  z-index: 10;
}

/* Accent rouge discret en haut de la présentation */
.fts-sidebar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 7px;
  right: 0;
  height: 4px;
  background: linear-gradient(
    to right,
    #16803c 0%,
    #16803c 72%,
    #d21034 72%,
    #d21034 100%
  );
  z-index: 10;
}

/* Légère touche rouge dans la présentation */
.fts-country {
  position: relative;
}

.fts-country::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  margin: 7px auto 0;
  background: linear-gradient(
    to right,
    #16803c 0%,
    #16803c 50%,
    #d21034 50%,
    #d21034 100%
  );
  border-radius: 2px;
}


/* =========================================================
   FMER - Fix hauteur MapLibre / Traccar
   Permet à la carte de remplir la hauteur disponible
   ========================================================= */

html,
body,
#root {
    height: 100% !important;
    min-height: 100% !important;
}

#root {
    height: 100vh !important;
    min-height: 100vh !important;
}

.muiltr-pzaggu-page {
    height: calc(100vh - 56px) !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

.muiltr-1rz0of5-root {
    height: 100% !important;
    min-height: 0 !important;
}

.muiltr-1h0hyz5-sidebar {
    height: 100% !important;
    min-height: 0 !important;
}

.muiltr-4kexdh-middle {
    height: auto !important;
    min-height: 0 !important;
    flex: 1 1 auto !important;
}

.muiltr-1eqrqad-contentMap {
    height: 100% !important;
    min-height: 0 !important;
}

.muiltr-1eqrqad-contentMap > div {
    height: 100% !important;
    min-height: 0 !important;
}

.maplibregl-map {
    width: 100% !important;
    height: 100% !important;
}
