/* BNX_AUTH_FEEDBACK_V1 */

.auth-feedback-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  padding: 20px;
  display: grid;
  place-items: center;
  background: rgba(12, 18, 15, 0.58);
  backdrop-filter: blur(7px);
  animation: authFeedbackFadeIn 180ms ease;
}

.auth-feedback-overlay[hidden] {
  display: none !important;
}

.auth-feedback-card {
  position: relative;
  width: min(430px, 100%);
  padding: 38px 30px 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 22px;
  text-align: center;
  background: #ffffff;
  box-shadow:
    0 30px 85px rgba(5, 13, 9, 0.34);
  animation: authFeedbackCardIn 230ms ease;
}

.auth-feedback-icon {
  width: 82px;
  height: 82px;
  margin: 0 auto 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.auth-feedback-icon svg {
  width: 43px;
  height: 43px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-feedback-overlay[data-type="loading"]
.auth-feedback-icon {
  background: #fff4c9;
}

.auth-feedback-overlay[data-type="success"]
.auth-feedback-icon {
  color: #078f39;
  background: #e8f8ed;
}

.auth-feedback-overlay[data-type="error"]
.auth-feedback-icon {
  color: #e31d27;
  background: #fdecee;
}

.auth-feedback-overlay[data-type="info"]
.auth-feedback-icon {
  color: #d99000;
  background: #fff4d5;
}

.auth-feedback-spinner {
  width: 46px;
  height: 46px;
  border: 5px solid rgba(255, 184, 0, 0.24);
  border-top-color: #ffb800;
  border-radius: 50%;
  animation: authFeedbackSpin 760ms linear infinite;
}

.auth-feedback-title {
  margin: 0;
  color: #111923;
  font-family:
    Arial,
    Helvetica,
    sans-serif;
  font-size: clamp(24px, 5vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.6px;
}

.auth-feedback-message {
  max-width: 340px;
  margin: 13px auto 0;
  color: #676e6a;
  font-family:
    Arial,
    Helvetica,
    sans-serif;
  font-size: 15px;
  line-height: 1.58;
}

.auth-feedback-actions {
  margin-top: 25px;
  display: flex;
  justify-content: center;
}

.auth-feedback-button {
  width: 100%;
  min-height: 50px;
  padding: 10px 22px;
  border: 0;
  border-radius: 10px;
  color: #ffffff;
  background: #078f39;
  font-family:
    Arial,
    Helvetica,
    sans-serif;
  font-size: 15px;
  font-weight: 750;
  cursor: pointer;
}

.auth-feedback-overlay[data-type="error"]
.auth-feedback-button {
  background: #e31d27;
}

.auth-feedback-overlay[data-type="info"]
.auth-feedback-button {
  color: #171b18;
  background: #ffc000;
}

.auth-feedback-button:hover {
  filter: brightness(0.94);
}

.auth-feedback-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 5px;
  overflow: hidden;
  background: #e9ecea;
}

.auth-feedback-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left;
  background: #078f39;
}

.auth-feedback-overlay[data-type="info"]
.auth-feedback-progress span {
  background: #ffb800;
}

.auth-feedback-overlay[data-type="error"]
.auth-feedback-progress span {
  background: #e31d27;
}

.auth-feedback-progress.running span {
  animation:
    authFeedbackProgress
    var(--feedback-duration, 1200ms)
    linear forwards;
}

.auth-feedback-dots {
  margin-top: 19px;
  display: flex;
  justify-content: center;
  gap: 7px;
}

.auth-feedback-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffb800;
  animation:
    authFeedbackDot
    1.1s ease-in-out infinite;
}

.auth-feedback-dots span:nth-child(2) {
  animation-delay: 140ms;
}

.auth-feedback-dots span:nth-child(3) {
  animation-delay: 280ms;
}

body.auth-feedback-locked {
  overflow: hidden;
}

@keyframes authFeedbackSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes authFeedbackFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes authFeedbackCardIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes authFeedbackDot {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-5px);
  }
}

@keyframes authFeedbackProgress {
  from {
    transform: scaleX(1);
  }

  to {
    transform: scaleX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-feedback-overlay,
  .auth-feedback-card,
  .auth-feedback-spinner,
  .auth-feedback-dots span,
  .auth-feedback-progress span {
    animation: none !important;
  }
}

/* BNX_AUTH_FEEDBACK_HIDDEN_POINTER_FIX_V1 */
.auth-feedback-overlay[hidden],
.auth-feedback-overlay[aria-hidden="true"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}


/* BNX_NO_AUTH_SPINNERS_V2 */
.auth-feedback-spinner,
.auth-feedback-progress,
.auth-feedback-spinner *,
.auth-feedback-progress * {
  display: none !important;
  animation: none !important;
}
