/* ==========================================
   Authentication Popup Styles
   ========================================== */

.auth-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.auth-popup.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.auth-popup__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.auth-popup__content {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 0;
  max-width: 450px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.auth-popup__close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 32px;
  color: #999;
  cursor: pointer;
  padding: 5px 10px;
  line-height: 1;
  transition: color 0.2s ease;
  z-index: 10;
}

.auth-popup__close:hover {
  color: #333;
}

/* Use existing auth-container styles inside popup */
.auth-popup .auth-container {
  padding: 2rem;
}

.auth-popup .auth-container h3 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: #333;
}

/* Scrollbar styling for popup content */
.auth-popup__content::-webkit-scrollbar {
  width: 8px;
}

.auth-popup__content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.auth-popup__content::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

.auth-popup__content::-webkit-scrollbar-thumb:hover {
  background: #999;
}
