/* Loading spinner */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: background-color 0.3s ease;
  pointer-events: all !important;
}

.loading-overlay.active {
  opacity: 1;
  visibility: visible;
  display: flex !important;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.loading-spinner {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 8px solid #f3f3f3;
  border-top: 8px solid #0052CC;
  border-bottom: 8px solid #0052CC;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.loading-spinner-small {
  width: 24px;
  height: 24px;
  border-width: 3px;
  position: relative;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Custom loading styles for login form */
.login-loading {
  display: none;
  margin-top: 10px;
  text-align: center;
}

.login-loading.active {
  display: block;
}

/* Disable button style when loading */
.btn-loading {
  pointer-events: none;
  opacity: 0.7;
}

/* Loading text animation */
.loading-text:after {
  content: '.';
  animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60% { content: '...'; }
  80%, 100% { content: ''; }
}