/* isoGo login — Sandvik Eindhoven. 1 × --u = 1 px de la maquette 1024×576. */
.igs {
  --u: min(calc(100vw / 1024), calc(100vh / 576));
  --igs-navy: #081a32;
  --igs-green: #058571;
  --igs-orange: #e3882a;
  --igs-ink: #0e1523;
  --igs-panel: #f9f9fd;
  --igs-line: #d3d5d9;
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: hidden;
  background: #0f2744;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--igs-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.igs *,
.igs *::before,
.igs *::after { box-sizing: border-box; }

.igs svg { display: block; }

.igs__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.igs__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(15, 39, 68, 0) 81%,
    rgba(15, 39, 68, 0.37) 86.8%,
    rgba(15, 39, 68, 0.8) 92%,
    rgba(15, 39, 68, 0.9) 95%,
    rgba(15, 39, 68, 0.96) 100%);
}

/* ---------- Colonne gauche ---------- */
.igs__hero {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc(696 * var(--u));
  z-index: 2;
  font-family: "Poppins", "Inter", system-ui, sans-serif;
  pointer-events: none;
}

.igs__brand {
  position: absolute;
  left: calc(30 * var(--u));
  top: calc(34 * var(--u));
  display: flex;
  align-items: center;
}

.igs__brand-mark {
  width: calc(32 * var(--u));
  height: calc(32 * var(--u));
  flex-shrink: 0;
}

.igs__brand-name {
  margin-left: calc(11 * var(--u));
  font-size: calc(25.5 * var(--u));
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #0b0f15;
}

.igs__powered {
  position: absolute;
  left: calc(30 * var(--u));
  top: calc(79.3 * var(--u));
  margin: 0;
  font-size: calc(12.9 * var(--u));
  line-height: 1;
  font-weight: 400;
  color: #1b2d45;
  white-space: nowrap;
}

.igs__powered strong { font-weight: 600; color: #06182f; }

.igs__headline {
  position: absolute;
  left: calc(30 * var(--u));
  top: calc(138 * var(--u));
  margin: 0;
  font-family: inherit;
  font-size: calc(39.1 * var(--u));
  line-height: calc(49 * var(--u));
  font-weight: 700;
  letter-spacing: -0.012em;
  color: var(--igs-navy);
  white-space: nowrap;
}

.igs__headline span { color: var(--igs-green); }

.igs__accent {
  position: absolute;
  left: calc(31 * var(--u));
  top: calc(247.5 * var(--u));
  width: calc(42 * var(--u));
  height: calc(3 * var(--u));
  border-radius: calc(2 * var(--u));
  background: var(--igs-orange);
}

.igs__lede {
  position: absolute;
  left: calc(30 * var(--u));
  top: calc(262.1 * var(--u));
  margin: 0;
  font-size: calc(15.4 * var(--u));
  line-height: calc(21 * var(--u));
  font-weight: 400;
  color: #1d2331;
  white-space: nowrap;
}

.igs__pillars {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(35.5 * var(--u));
  height: calc(34 * var(--u));
  margin: 0;
  padding: 0;
  list-style: none;
}

.igs__pillar {
  position: absolute;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
}

.igs__pillar--1 { left: calc(30 * var(--u)); }
.igs__pillar--2 { left: calc(222 * var(--u)); }
.igs__pillar--3 { left: calc(476.5 * var(--u)); }

.igs__pillar-ico {
  width: calc(34 * var(--u));
  height: calc(34 * var(--u));
  border-radius: 50%;
  border: calc(1.6 * var(--u)) solid #36a68f;
  background: rgba(9, 30, 52, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.igs__pillar-ico svg {
  width: calc(18 * var(--u));
  height: calc(18 * var(--u));
  fill: none;
  stroke: #fff;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.igs__pillar-txt {
  margin-left: calc(15 * var(--u));
  font-size: calc(12.8 * var(--u));
  line-height: 1;
  font-weight: 600;
  color: #f2f8ff;
  white-space: nowrap;
}

.igs__pillar--2 .igs__pillar-txt { margin-left: calc(17 * var(--u)); }
.igs__pillar--3 .igs__pillar-txt { margin-left: calc(17.5 * var(--u)); }

.igs__pillar-sep {
  position: absolute;
  top: calc(-2 * var(--u));
  width: 1px;
  height: calc(38 * var(--u));
  background: rgba(255, 255, 255, 0.28);
}

.igs__pillar-sep--1 { left: calc(197 * var(--u)); }
.igs__pillar-sep--2 { left: calc(451 * var(--u)); }

/* ---------- Panneau droit ---------- */
.igs__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: calc(100vw - 696 * var(--u));
  min-width: calc(328 * var(--u));
  z-index: 3;
  background: var(--igs-panel);
  border-radius: calc(14 * var(--u)) 0 0 calc(14 * var(--u));
  box-shadow: 0 0 calc(24 * var(--u)) rgba(10, 25, 45, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.igs__box {
  position: relative;
  width: calc(328 * var(--u));
  height: calc(576 * var(--u));
  flex-shrink: 0;
}

.igs__lang {
  position: absolute;
  left: calc(184 * var(--u));
  top: calc(21 * var(--u));
  width: calc(119 * var(--u));
  height: calc(27 * var(--u));
  margin: 0;
  border: 1px solid #d9dce1;
  border-radius: calc(5 * var(--u));
  background: #fff;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.igs__lang-globe {
  position: absolute;
  left: calc(11 * var(--u));
  width: calc(14 * var(--u));
  height: calc(14 * var(--u));
  fill: none;
  stroke: #595f6b;
  stroke-width: 1.6;
  pointer-events: none;
}

.igs__lang select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  padding: 0 calc(22 * var(--u)) 0 calc(33.5 * var(--u));
  font-family: inherit;
  font-size: calc(10.6 * var(--u));
  font-weight: 500;
  color: #2f343b;
  outline: none;
  cursor: pointer;
}

.igs__lang-chev {
  position: absolute;
  right: calc(10 * var(--u));
  width: calc(12 * var(--u));
  height: calc(12 * var(--u));
  fill: none;
  stroke: #374151;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.igs__title {
  position: absolute;
  left: calc(32 * var(--u));
  top: calc(86.9 * var(--u));
  margin: 0;
  font-family: inherit;
  font-size: calc(28.7 * var(--u));
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0a1729;
  white-space: nowrap;
}

.igs__subtitle {
  position: absolute;
  left: calc(32 * var(--u));
  top: calc(122.8 * var(--u));
  margin: 0;
  font-size: calc(13 * var(--u));
  line-height: 1;
  font-weight: 400;
  color: #5f636c;
  white-space: nowrap;
}

.igs__msg {
  position: absolute;
  left: calc(31 * var(--u));
  top: calc(54 * var(--u));
  width: calc(270 * var(--u));
  z-index: 4;
  font-size: calc(11.5 * var(--u));
}

.igs__msg:empty { display: none; }
.igs__msg img { height: calc(22 * var(--u)) !important; display: block; margin: 0 auto; }
.igs__msg .alert {
  margin: 0;
  padding: calc(4 * var(--u)) calc(10 * var(--u));
  border-radius: calc(5 * var(--u));
  font-size: calc(10.5 * var(--u));
  line-height: 1.3;
}

.igs__form { margin: 0; }

.igs__centres {
  position: absolute;
  left: calc(31 * var(--u));
  top: calc(141 * var(--u));
  width: calc(270 * var(--u));
  display: flex;
  gap: calc(6 * var(--u));
}

.igs__centre {
  flex: 1;
  text-align: center;
  padding: calc(3 * var(--u)) 0;
  border: 1px solid var(--igs-line);
  border-radius: calc(5 * var(--u));
  font-size: calc(11 * var(--u));
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  background: #fff;
}

.igs__centre.is-active { background: #15304f; border-color: #15304f; color: #fff; }

.igs__label {
  position: absolute;
  left: calc(32 * var(--u));
  margin: 0;
  font-size: calc(11.4 * var(--u));
  line-height: 1;
  font-weight: 700;
  color: var(--igs-ink);
  white-space: nowrap;
}

.igs__label--email { top: calc(165.9 * var(--u)); }
.igs__label--password { top: calc(235.9 * var(--u)); }

.igs__field {
  position: absolute;
  left: calc(31 * var(--u));
  width: calc(270 * var(--u));
  height: calc(33 * var(--u));
  border: 1px solid var(--igs-line);
  border-radius: calc(5 * var(--u));
  background: #fdfdfe;
  display: flex;
  align-items: center;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.igs__field--email { top: calc(184.3 * var(--u)); }
.igs__field--password { top: calc(253.5 * var(--u)); }

.igs__field:focus-within {
  border-color: #8aa4c4;
  box-shadow: 0 0 0 calc(3 * var(--u)) rgba(21, 48, 79, 0.1);
}

.igs__field-ico {
  position: absolute;
  left: calc(12 * var(--u));
  width: calc(15 * var(--u));
  height: calc(15 * var(--u));
  fill: none;
  stroke: #7a7c84;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.igs__field input {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  padding: 0 calc(34 * var(--u)) 0 calc(37 * var(--u));
  font-family: inherit;
  font-size: calc(11 * var(--u));
  color: var(--igs-ink);
  outline: none;
  border-radius: inherit;
}

.igs__field input::placeholder { color: #8a8c95; opacity: 1; }

.igs__eye {
  position: absolute;
  right: calc(10 * var(--u));
  width: calc(19 * var(--u));
  height: calc(19 * var(--u));
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.igs__eye svg {
  width: calc(16 * var(--u));
  height: calc(16 * var(--u));
  fill: none;
  stroke: #7a7c84;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.igs__submit {
  position: absolute;
  left: calc(29 * var(--u));
  top: calc(314 * var(--u));
  width: calc(274 * var(--u));
  height: calc(33 * var(--u));
  border: 0;
  border-radius: calc(5 * var(--u));
  background: #163351;
  color: #fff;
  font-family: inherit;
  font-size: calc(14.3 * var(--u));
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s;
}

.igs__submit:hover { background: #0f243d; }
.igs__submit:disabled { opacity: 0.85; cursor: wait; }
.igs__submit .spinner-border-sm { width: calc(12 * var(--u)); height: calc(12 * var(--u)); border-width: 2px; }

.igs__forgot {
  position: absolute;
  left: calc(31 * var(--u));
  width: calc(270 * var(--u));
  top: calc(364 * var(--u));
  text-align: center;
  font-size: calc(10.8 * var(--u));
  line-height: 1;
  font-weight: 400;
  color: #2a5fa0;
  text-decoration: none;
}

.igs__forgot:hover { color: #15304f; text-decoration: underline; }

.igs__divider {
  position: absolute;
  left: calc(28 * var(--u));
  top: calc(403 * var(--u));
  width: calc(275 * var(--u));
  height: 1px;
  background: #dcdce0;
}

.igs__trust {
  position: absolute;
  left: 0;
  top: calc(424 * var(--u));
  width: 100%;
  height: calc(16 * var(--u));
}

.igs__trust-ico {
  position: absolute;
  top: 0;
  width: calc(16 * var(--u));
  height: calc(16 * var(--u));
  fill: none;
  stroke: #23906f;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.igs__trust-ico--lock { left: calc(27.5 * var(--u)); }
.igs__trust-ico--shield { left: calc(171.5 * var(--u)); }

.igs__trust-txt {
  position: absolute;
  top: calc(3.3 * var(--u));
  font-size: calc(9.45 * var(--u));
  line-height: 1;
  font-weight: 400;
  color: #4a4f57;
  white-space: nowrap;
}

.igs__trust-txt--secure { left: calc(49.5 * var(--u)); }
.igs__trust-txt--iso { left: calc(193 * var(--u)); }

.igs__trust-sep {
  position: absolute;
  left: calc(157 * var(--u));
  top: calc(-1 * var(--u));
  width: 1px;
  height: calc(18 * var(--u));
  background: #c4c3c7;
}

.igs__isogo {
  position: absolute;
  left: 0;
  width: 100%;
  top: calc(478.2 * var(--u));
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.igs__isogo-word {
  font-family: "Poppins", "Inter", sans-serif;
  font-size: calc(43.3 * var(--u));
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #0a1c31;
}

.igs__isogo-word b { font-weight: 600; color: #038970; }

.igs__isogo-tag {
  display: flex;
  align-items: center;
  margin-top: calc(3.8 * var(--u));
  font-size: calc(9.5 * var(--u));
  line-height: 1;
  font-weight: 500;
  color: #5a5f69;
  white-space: nowrap;
}

.igs__isogo-tag::before,
.igs__isogo-tag::after {
  content: "";
  width: calc(19 * var(--u));
  height: calc(1.6 * var(--u));
  background: var(--igs-orange);
  border-radius: 1px;
}

.igs__isogo-tag::before { margin-right: calc(7.5 * var(--u)); }
.igs__isogo-tag::after { margin-left: calc(8 * var(--u)); }

body:has(.igs) {
  overflow: hidden !important;
  background: #0f2744 !important;
}

/* ---------- Mobile / tablette portrait ---------- */
@media (max-width: 700px), (max-aspect-ratio: 1/1) {
  .igs {
    --u: min(calc(100vw / 360), 1.35px);
    overflow-y: auto;
  }
  .igs__hero { display: none; }
  .igs__shade { background: rgba(15, 39, 68, 0.45); }
  .igs__panel {
    position: relative;
    min-height: 100%;
    width: 100%;
    min-width: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: calc(24 * var(--u)) calc(16 * var(--u));
  }
  .igs__box {
    width: calc(328 * var(--u));
    height: calc(576 * var(--u));
    background: var(--igs-panel);
    border-radius: calc(14 * var(--u));
    box-shadow: 0 calc(16 * var(--u)) calc(40 * var(--u)) rgba(5, 15, 30, 0.35);
  }
}
