
/* Rearmed OAuth animation v3 */

.social-buttons button[form="rearmed-google-form"],
.social-buttons button[form="rearmed-discord-form"] {
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease,
              filter .18s ease;
}

.social-buttons button.oauth-busy {
  transform: scale(.94) !important;
  box-shadow: 0 0 0 3px rgba(105,145,255,.3),
              0 0 30px rgba(105,145,255,.35) !important;
  filter: brightness(1.2);
  cursor: progress;
  padding-right: 36px;
}

.social-buttons button.oauth-busy::after {
  content: "";
  position: absolute;
  right: 12px;
  top: calc(50% - 9px);
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.25);
  border-top-color: white;
  border-radius: 50%;
  animation: oauthSpinner .65s linear infinite;
  pointer-events: none;
}

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

@media (prefers-reduced-motion: reduce) {
  .social-buttons button.oauth-busy {
    transition: none;
  }
  .social-buttons button.oauth-busy::after {
    animation: none;
  }
}
