/* Authorization Loading Screen */
.authorizing-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.authorizing-card {
  background: white;
  border-radius: 16px;
  padding: 3rem;
  text-align: center;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.08);
  max-width: 400px;
  width: 90%;
}

.authorizing-spinner {
  margin-bottom: 2rem;
}

.authorizing-spinner .spinner-border {
  width: 3rem;
  height: 3rem;
  border-width: 0.3rem;
}

.text-orange {
  color: var(--fs-accent) !important;
}

.spinner-border.text-orange {
  border-color: rgba(240, 138, 18, 0.2);
  border-right-color: var(--fs-accent);
}

.authorizing-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--fs-text-primary);
  margin: 0 0 0.75rem 0;
}

.authorizing-message {
  font-size: 1rem;
  color: var(--fs-text-secondary);
  margin: 0;
}

/* Animation for smooth appearance */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.authorizing-card {
  animation: fadeIn 0.3s ease-out;
}

/* Timer display */
.authorizing-timer {
  font-size: 0.875rem;
  color: var(--fs-text-muted);
  margin-top: 1rem;
}

/* Timeout state */
.authorization-timeout {
  text-align: center;
}

.timeout-icon {
  margin-bottom: 1.5rem;
}

.timeout-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #dc2626;
  margin: 0 0 0.75rem 0;
}

.timeout-message {
  font-size: 1rem;
  color: var(--fs-text-secondary);
  margin: 0 0 2rem 0;
}

.timeout-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.timeout-actions .btn {
  min-width: 120px;
}

.btn-primary {
  background: var(--fs-accent);
  border: none;
  color: white;
  padding: 0.625rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: #d67a0d;
  transform: translateY(-1px);
}

.btn-outline-secondary {
  background: transparent;
  border: 1.5px solid var(--fs-border-default);
  color: var(--fs-text-secondary);
  padding: 0.625rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-outline-secondary:hover {
  background: var(--fs-bg-hover);
  border-color: var(--fs-border-hover);
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  .authorizing-card {
    padding: 2rem 1.5rem;
  }

  .authorizing-title,
  .timeout-title {
    font-size: 1.25rem;
  }

  .authorizing-message,
  .timeout-message {
    font-size: 0.875rem;
  }

  .timeout-actions {
    flex-direction: column;
  }

  .timeout-actions .btn {
    width: 100%;
  }
}
