/* Sign-in flow preloader (credentials → portal step → dashboard) */
.login-flow-preloader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: radial-gradient(
      120% 80% at 0% 0%,
      rgba(139, 0, 0, 0.04) 0%,
      transparent 42%
    ),
    linear-gradient(180deg, #f8f6f3 0%, #f3f1ee 100%);
}

.login-flow-preloader[hidden] {
  display: none !important;
}

.login-flow-preloader__card {
  width: min(320px, 100%);
  text-align: center;
  background: #fff;
  border: 1px solid #e4e0dd;
  border-radius: 14px;
  padding: 28px 24px 26px;
  box-shadow: 0 8px 24px rgba(40, 28, 24, 0.08), 0 16px 40px rgba(40, 28, 24, 0.06);
}

.login-flow-preloader__spin {
  width: 40px;
  height: 40px;
  margin: 0 auto 14px;
  border: 3px solid rgba(139, 0, 0, 0.14);
  border-top-color: #8b0000;
  border-radius: 50%;
  animation: fesmos-login-flow-spin 0.72s linear infinite;
}

.login-flow-preloader__title {
  margin: 0 0 4px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #111010;
}

.login-flow-preloader__sub {
  margin: 0;
  font-size: 13px;
  color: #6b6460;
}

@keyframes fesmos-login-flow-spin {
  to {
    transform: rotate(360deg);
  }
}

.login-wrapper.is-busy {
  pointer-events: none;
  opacity: 0.92;
}

/* Consultant login locked notice */
.fesmos-consultant-locked {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(24, 18, 16, 0.45);
  backdrop-filter: blur(3px);
}

.fesmos-consultant-locked__card {
  width: min(380px, 100%);
  text-align: center;
  background: #fff;
  border: 1px solid #e4e0dd;
  border-radius: 14px;
  padding: 28px 24px 24px;
  box-shadow: 0 8px 24px rgba(40, 28, 24, 0.12), 0 16px 40px rgba(40, 28, 24, 0.1);
}

.fesmos-consultant-locked__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 20px;
  color: #8b0000;
  background: rgba(139, 0, 0, 0.08);
}

.fesmos-consultant-locked__card h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f1a17;
}

.fesmos-consultant-locked__card p {
  margin: 0 0 20px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #6b6460;
}

.fesmos-consultant-locked__btn {
  min-width: 120px;
  padding: 10px 18px;
  border: 0;
  border-radius: 10px;
  font-weight: 600;
  color: #fff;
  background: #8b0000;
  cursor: pointer;
}

.fesmos-consultant-locked__btn:hover,
.fesmos-consultant-locked__btn:focus-visible {
  background: #6f0000;
}
