body.auth-locked {
  overflow: hidden;
}

#auth-root:empty {
  display: none;
}

.auth-pending {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(12, 18, 35, 0.72);
  color: #fff;
  font: 600 15px/1.5 system-ui, sans-serif;
}

.postele-auth-backdrop {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 24px;
  background: rgba(12, 18, 35, 0.64);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.postele-auth-modal {
  box-sizing: border-box;
  width: min(100%, 440px);
  padding: 38px 40px 32px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background: #fff;
  color: #172033;
  box-shadow: 0 28px 90px rgba(8, 14, 31, 0.28);
  font-family: inherit;
}

.postele-auth-brand {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  background: #e9edff;
  color: #4658d8;
  font-size: 24px;
  font-weight: 800;
}

.postele-auth-eyebrow {
  margin: 20px 0 7px;
  color: #5866d9;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.postele-auth-modal h1 {
  margin: 0;
  color: #172033;
  font-size: clamp(25px, 6vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.postele-auth-description {
  margin: 9px 0 24px;
  color: #687286;
  font-size: 14px;
  line-height: 1.55;
}

.postele-auth-modal form > label,
.postele-auth-confirm-wrap > label {
  display: block;
  margin: 17px 0 7px;
  color: #293348;
  font-size: 13px;
  font-weight: 650;
}

.postele-auth-modal input {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #d9deea;
  border-radius: 10px;
  outline: none;
  background: #fff;
  color: #182136;
  font: inherit;
  font-size: 15px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.postele-auth-modal input::placeholder {
  color: #9ba3b2;
}

.postele-auth-modal input:focus-visible {
  border-color: #6674e5;
  box-shadow: 0 0 0 3px rgba(91, 108, 225, 0.18);
}

.postele-auth-password-wrap {
  position: relative;
}

.postele-auth-password-wrap input {
  padding-right: 86px;
}

.postele-auth-eye {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  padding: 7px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #5665d4;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.postele-auth-eye svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.postele-auth-eye:hover,
.postele-auth-switch-button:hover {
  background: #f0f2ff;
}

.postele-auth-confirm-wrap[hidden] {
  display: none;
}

.postele-auth-submit {
  width: 100%;
  min-height: 49px;
  margin-top: 24px;
  border: 0;
  border-radius: 10px;
  background: #5363d8;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  transition: background 140ms ease, transform 140ms ease;
}

.postele-auth-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #4353c7;
}

.postele-auth-submit:disabled {
  cursor: wait;
  opacity: 0.68;
}

.postele-auth-switch {
  margin: 21px 0 0;
  color: #687286;
  text-align: center;
  font-size: 13px;
}

.postele-auth-switch-button {
  margin-left: 3px;
  padding: 4px 6px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #4d5ed2;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}

.postele-auth-error,
.postele-auth-warning {
  margin: 14px 0;
  padding: 11px 12px;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.5;
}

.postele-auth-error {
  border: 1px solid #f0c8c9;
  background: #fff3f2;
  color: #a52d32;
}

.postele-auth-warning {
  border: 1px solid #f1d8a0;
  background: #fff9e9;
  color: #785600;
}

.postele-auth-error[hidden],
.postele-auth-warning[hidden] {
  display: none;
}

#side-user .postele-auth-email {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#side-user #postele-auth-logout {
  flex: 0 0 auto;
  cursor: pointer;
}

@media (max-width: 520px) {
  .postele-auth-backdrop {
    align-items: start;
    padding: 16px;
  }

  .postele-auth-modal {
    margin: auto 0;
    padding: 29px 23px 25px;
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .postele-auth-modal *,
  .postele-auth-modal *::before,
  .postele-auth-modal *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
