.delta-totp-modal .km-modal-box {
  width: min(440px, 100%);
}

.delta-totp-modal .km-modal-body {
  padding: 16px 18px 18px;
}

.delta-totp-modal .delta-login-lead {
  margin: 0 0 12px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.delta-totp-apps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: 0 0 14px;
}

.delta-totp-app {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(120, 150, 190, 0.35);
  background: rgba(255, 255, 255, 0.72);
  color: #16324f;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: left;
  cursor: pointer;
}

.delta-totp-app.is-on {
  border-color: #2f6fed;
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.18);
  background: #fff;
}

.delta-totp-mark {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 8px;
}

.delta-totp-mark--google {
  background:
    radial-gradient(circle at 30% 30%, #ea4335 0 28%, transparent 29%),
    radial-gradient(circle at 70% 30%, #fbbc05 0 28%, transparent 29%),
    radial-gradient(circle at 30% 72%, #34a853 0 28%, transparent 29%),
    radial-gradient(circle at 70% 72%, #4285f4 0 28%, transparent 29%);
  background-color: #eef3fb;
}

.delta-totp-pick {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: 2px 0 12px;
}

.delta-totp-pick__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid rgba(22, 50, 80, 0.16);
  background: #fff;
  color: #16324f;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(16, 36, 64, 0.06);
}

.delta-totp-pick__btn:hover,
.delta-totp-pick__btn:focus-visible {
  border-color: #2f6fed;
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.14);
  outline: none;
}

.delta-totp-logo {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: block;
}

.delta-totp-app .delta-totp-logo {
  width: 26px;
  height: 26px;
  flex-basis: 26px;
}

.delta-totp-mark--ms {
  background:
    linear-gradient(#f25022, #f25022) 0 0 / 46% 46% no-repeat,
    linear-gradient(#7fba00, #7fba00) 100% 0 / 46% 46% no-repeat,
    linear-gradient(#00a4ef, #00a4ef) 0 100% / 46% 46% no-repeat,
    linear-gradient(#ffb900, #ffb900) 100% 100% / 46% 46% no-repeat;
  background-color: transparent;
}

.delta-totp-modal .delta-totp-qr {
  width: min(210px, 68%);
  margin: 0 auto 12px;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 36, 64, 0.12);
}

.delta-totp-modal .delta-totp-qr svg {
  display: block;
  width: 100%;
  height: auto;
}

.delta-totp-steps {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.delta-totp-steps li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.86rem;
  line-height: 1.35;
}

.delta-totp-steps span {
  flex: 0 0 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #2f6fed;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.delta-totp-modal .delta-totp-secret {
  margin: 0;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.4;
}

.delta-totp-modal .delta-totp-secret code {
  display: inline-block;
  margin-top: 4px;
  letter-spacing: 0.04em;
  font-size: 0.92rem;
}

button.delta-totp-link,
a.delta-totp-link {
  cursor: pointer;
  font: inherit;
}

/* Mot de passe oublié + Réinitialiser mon code : côte à côte, empilés si trop étroit. */
.delta-login-lost {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 10px;
}

.delta-login-lost .delta-totp-lost,
.delta-login-lost .delta-pass-lost {
  flex: 1 1 170px;
  width: auto;
  margin: 0;
  padding: 8px 10px;
  white-space: nowrap;
}

.delta-login-lost .delta-totp-lost-note {
  flex: 0 0 100%;
  margin: 0;
}

.delta-totp-lost,
.delta-pass-lost {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  margin: 2px 0 10px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid rgba(47, 111, 237, 0.35);
  background: rgba(47, 111, 237, 0.08);
  color: #1d4e89;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(16, 36, 64, 0.05);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.delta-totp-lost:hover,
.delta-totp-lost:focus-visible,
.delta-pass-lost:hover,
.delta-pass-lost:focus-visible {
  background: rgba(47, 111, 237, 0.16);
  border-color: #2f6fed;
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.14);
  outline: none;
}

@media (max-width: 599px) {
  .delta-totp-lost,
  .delta-pass-lost {
    min-height: 44px;
    font-size: 16px;
    box-sizing: border-box;
  }
}
.delta-totp-lost:disabled,
.delta-pass-lost:disabled {
  opacity: 0.6;
  cursor: progress;
}

.delta-totp-lost-note {
  margin: 0 0 10px;
  font-size: 0.86rem;
  line-height: 1.4;
}
