/* Loading do login — branco, institucional e sem fundos coloridos. */
.login-boot {
  --boot-progress: 0%;
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: auto;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  background: #fff;
  color: #173e36;
  transition: opacity .24s ease, visibility 0s linear .24s;
}

.login-boot.is-visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}

.login-boot__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(520px, 100%);
  padding: 38px 42px 31px;
  text-align: center;
  background: #fff;
  border: 1px solid #e5eeeb;
  border-radius: 25px;
  box-shadow: 0 24px 70px rgba(25, 79, 66, .10), 0 4px 15px rgba(25, 79, 66, .04);
  transform: translateY(10px) scale(.99);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}

.login-boot.is-visible .login-boot__panel { transform: translateY(0) scale(1); }

.login-boot__logo {
  display: block;
  width: 205px;
  height: auto;
  margin: 0 auto 25px;
}

.login-boot__animation {
  position: relative;
  display: grid;
  place-items: center;
  width: 142px;
  height: 142px;
  margin-bottom: 7px;
  border-radius: 50%;
  background: #fff;
}

.login-boot__animation::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid #e8f0ed;
  border-radius: 50%;
}

.login-boot__lottie {
  position: relative;
  z-index: 2;
  display: block;
  width: 122px;
  height: 122px;
}

.login-boot__animation-fallback {
  position: absolute;
  inset: 18px;
  z-index: 1;
  border: 3px solid #e5f0ec;
  border-top-color: #217346;
  border-radius: 50%;
  animation: loginLoadingSpin 1.2s linear infinite;
}

.login-boot__percentage {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
  margin-top: 1px;
}

.login-boot__percentage strong {
  color: #1a493f;
  font-size: 2.05rem;
  font-weight: 750;
  line-height: 1;
  letter-spacing: -.06em;
  font-variant-numeric: tabular-nums;
}

.login-boot__percentage small {
  color: #8da099;
  font-size: .58rem;
  font-weight: 750;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.login-boot__panel > h2 {
  margin: 13px 0 6px;
  color: #183f36;
  font-size: 1.4rem;
  font-weight: 720;
  letter-spacing: -.035em;
}

.login-boot__current {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  min-height: 47px;
  margin-top: 4px;
  text-align: left;
}

.login-boot__current-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  margin-top: 6px;
  border-radius: 50%;
  background: #20aa85;
  box-shadow: 0 0 0 5px #e9f7f2;
  animation: loginLoadingPulse 1.5s ease-in-out infinite;
}

.login-boot__current h3 {
  margin: 0 0 3px;
  color: #365a51;
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.4;
}

.login-boot__current p {
  min-height: 16px;
  margin: 0;
  color: #8a9d97;
  font-size: .64rem;
  line-height: 1.4;
}

.login-boot__current h3.is-changing,
.login-boot__current p.is-changing { animation: loginLoadingText .3s ease; }

.login-boot__current.is-complete .login-boot__current-dot {
  background: #217346;
  animation: none;
}

.login-boot__rail {
  position: relative;
  width: 100%;
  height: 5px;
  margin: 16px 0 20px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9f0ed;
}

.login-boot__rail i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--boot-progress);
  border-radius: inherit;
  background: linear-gradient(90deg, #216c58, #20aa85, #65cfb2);
  transition: width .08s linear;
}

.login-boot__pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.login-boot__pipeline li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 0;
  color: #a2b0ac;
  transition: color .25s ease;
}

.login-boot__pipeline li::before {
  content: '';
  position: absolute;
  top: 6px;
  right: 50%;
  width: 100%;
  height: 1px;
  background: #e2ebe7;
}

.login-boot__pipeline li:first-child::before { display: none; }

.login-boot__pipeline li > i {
  position: relative;
  z-index: 1;
  width: 13px;
  height: 13px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #dbe6e2;
  box-shadow: 0 0 0 1px #dbe6e2;
  transition: background .25s ease, box-shadow .25s ease, transform .25s ease;
}

.login-boot__pipeline li span {
  overflow: hidden;
  color: inherit;
  font-size: .56rem;
  font-weight: 650;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.login-boot__pipeline li.is-active { color: #277a65; }
.login-boot__pipeline li.is-active > i { background: #27af89; box-shadow: 0 0 0 1px #27af89, 0 0 0 5px #e8f6f1; transform: scale(1.05); }
.login-boot__pipeline li.is-complete { color: #58746c; }
.login-boot__pipeline li.is-complete::before { background: #80cdb8; }
.login-boot__pipeline li.is-complete > i { background: #217346; box-shadow: 0 0 0 1px #217346; }

.login-boot__safe {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 25px 0 0;
  color: #9aaba6;
  font-size: .59rem;
}

.login-boot__safe i { color: #6d9187; }
body.login-boot-open .app-container { pointer-events: none; user-select: none; }

@keyframes loginLoadingSpin { to { transform: rotate(360deg); } }
@keyframes loginLoadingPulse { 50% { box-shadow: 0 0 0 8px rgba(32, 170, 133, .05); } }
@keyframes loginLoadingText { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 560px) {
  .login-boot { padding: 14px; }
  .login-boot__panel { padding: 30px 18px 25px; border: 0; border-radius: 0; box-shadow: none; }
  .login-boot__logo { width: 190px; margin-bottom: 21px; }
  .login-boot__animation { width: 130px; height: 130px; }
  .login-boot__lottie { width: 112px; height: 112px; }
  .login-boot__panel > h2 { font-size: 1.25rem; }
  .login-boot__pipeline li span { max-width: 72px; font-size: .51rem; }
}

@media (max-height: 660px) {
  .login-boot__panel { padding-block: 23px 20px; }
  .login-boot__logo { width: 180px; margin-bottom: 13px; }
  .login-boot__animation { width: 108px; height: 108px; }
  .login-boot__lottie { width: 94px; height: 94px; }
  .login-boot__percentage strong { font-size: 1.75rem; }
  .login-boot__safe { margin-top: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .login-boot, .login-boot__panel, .login-boot__pipeline li, .login-boot__pipeline li > i { transition-duration: 1ms; }
  .login-boot__animation-fallback, .login-boot__current-dot { animation: none; }
}
