/* Global Auth Modal Styles */
.auth-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8,15,30,0.92);
  backdrop-filter: blur(8px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.auth-overlay.active { display: flex; }

.auth-modal {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(145deg, rgba(12,26,51,0.95), rgba(8,15,30,0.98));
  border: 1px solid rgba(45,212,212,0.15);
  border-radius: 20px;
  padding: 40px;
  position: relative;
  box-shadow: 0 25px 80px rgba(0,0,0,0.5);
}

.auth-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  color: #6A8080;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-modal__close:hover { 
  background: rgba(255,255,255,0.05);
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(45,212,212,0.1);
  padding-bottom: 16px;
}
.auth-tab {
  flex: 1;
  padding: 12px;
  background: transparent;
  border: none;
  color: #8AA0A0;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
}
.auth-tab:hover { color: #fff; }
.auth-tab.active { 
  background: rgba(45,212,212,0.1); 
  color: #2DD4D4; 
}

.auth-form { display: none; }
.auth-form.active { display: block; }

.auth-field { margin-bottom: 18px; }
.auth-field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: #B0C0C0;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.auth-field input,
.auth-field select {
  width: 100%;
  padding: 14px 16px;
  background: rgba(8,15,30,0.8);
  border: 1px solid rgba(45,212,212,0.2);
  border-radius: 10px;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  transition: border-color 0.2s;
}
.auth-field input:focus,
.auth-field select:focus {
  outline: none;
  border-color: #2DD4D4;
}
.auth-field input::placeholder { color: #6A8080; }
.auth-field select { cursor: pointer; }
.auth-field select option { background: #080F1E; }

.auth-consent {
  margin-bottom: 20px;
}
.auth-consent label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.78rem;
  color: #8AA0A0;
  line-height: 1.5;
  cursor: pointer;
}
.auth-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #2DD4D4;
  flex-shrink: 0;
}

.auth-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #2DD4D4, #20ABAB);
  border: none;
  border-radius: 50px;
  color: #080F1E;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}
.auth-btn:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 8px 30px rgba(45,212,212,0.3); 
}
.auth-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-links {
  margin-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #6A8080;
}
.auth-links a,
.auth-links span {
  color: #2DD4D4;
  cursor: pointer;
}
.auth-links a:hover,
.auth-links span:hover { text-decoration: underline; }

.auth-message {
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: 0.88rem;
  display: none;
  text-align: center;
}
.auth-message.error {
  display: block;
  background: rgba(220,53,69,0.12);
  border: 1px solid rgba(220,53,69,0.25);
  color: #ff6b6b;
}
.auth-message.success {
  display: block;
  background: rgba(45,212,212,0.1);
  border: 1px solid rgba(45,212,212,0.2);
  color: #2DD4D4;
}

/* Gated content blur */
.gated-blur {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}
