/* Auth form loading overlay — scoped classes only (safe with Bootstrap) */

.auth-form-panel {
  position: relative;
}

.auth-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px);
  border-radius: 0;
}

.auth-loading-overlay.is-active {
  display: flex;
}

.auth-loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(108, 43, 217, 0.2);
  border-top-color: #6c2bd9;
  border-radius: 50%;
  animation: auth-spin 0.75s linear infinite;
}

@keyframes auth-spin {
  to { transform: rotate(360deg); }
}

.auth-loading-text {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0b1b3a;
  text-align: center;
  max-width: 220px;
  line-height: 1.4;
}

.auth-btn-spinner {
  display: inline-block;
  width: 1.125rem;
  height: 1.125rem;
  margin-right: 0.5rem;
  vertical-align: -0.2em;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: auth-spin 0.65s linear infinite;
}

.btn-primary .auth-btn-spinner {
  border-color: rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
}
