/**
 * Auth Modal Styles
 * Modern popup for login/registration
 */

.auth-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(16px);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  animation: modalFadeIn 0.3s ease;
}

.auth-modal.active {
  display: flex;
}

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

.auth-modal-content {
  background: rgba(8, 8, 8, 0.98);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  max-width: 440px;
  width: 90%;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8);
  position: relative;
  animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(32px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(249, 248, 215, 0.5);
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-modal-close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #f9f8d7;
}

.auth-modal-title {
  font-family: 'Oxanium', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  text-align: center;
  color: #f9f8d7;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.auth-modal-subtitle {
  text-align: center;
  opacity: 0.5;
  margin-bottom: 2rem;
  font-size: 0.875rem;
}

.auth-option {
  padding: 1.125rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.auth-option::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(229, 39, 61, 0.03), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.auth-option:hover::before {
  transform: translateX(100%);
}

.auth-option:hover {
  border-color: rgba(229, 39, 61, 0.2);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

.auth-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-info {
  flex: 1;
}

.auth-name {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #f9f8d7;
}

.auth-desc {
  font-size: 0.8125rem;
  opacity: 0.5;
  font-weight: 400;
}

.auth-divider {
  text-align: center;
  margin: 1.5rem 0;
  position: relative;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.06), transparent);
}

.auth-divider::before {
  left: 0;
}

.auth-divider::after {
  right: 0;
}

.auth-divider-text {
  opacity: 0.3;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  opacity: 0.5;
}

.auth-footer a {
  color: #e5273d;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.auth-footer a:hover {
  opacity: 0.8;
}

/* Step indicator */
.auth-steps {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.auth-step {
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.auth-step.active {
  background: linear-gradient(90deg, #e5273d, #c91f33);
  box-shadow: 0 0 12px rgba(229, 39, 61, 0.4);
}

.auth-step.completed {
  background: rgba(16, 185, 129, 0.6);
}

/* Message box */
.auth-message {
  padding: 1rem;
  background: rgba(229, 39, 61, 0.05);
  border: 1px solid rgba(229, 39, 61, 0.2);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.6;
}

.auth-message.success {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

/* Loading state */
.auth-loading {
  text-align: center;
  padding: 2rem;
}

.auth-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(229, 39, 61, 0.1);
  border-top-color: #e5273d;
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: spin 1s linear infinite;
}

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