/* PickBits.AI Auth Modal — Cyberpunk Theme */

.pb-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 23, 0.92);
  backdrop-filter: blur(8px);
  animation: pbAuthFadeIn 0.2s ease;
}

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

.pb-auth-card {
  position: relative;
  width: 90%;
  max-width: 420px;
  background: linear-gradient(145deg, rgba(10, 11, 16, 0.98), rgba(20, 10, 40, 0.95));
  border: 1px solid rgba(0, 244, 255, 0.3);
  border-radius: 8px;
  box-shadow:
    0 0 30px rgba(0, 244, 255, 0.15),
    0 0 60px rgba(157, 0, 255, 0.08),
    inset 0 1px 0 rgba(0, 244, 255, 0.1);
  padding: 2rem;
  animation: pbAuthSlideUp 0.3s ease;
}

@keyframes pbAuthSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.pb-auth-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: rgba(224, 224, 224, 0.6);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}
.pb-auth-close:hover {
  color: #00f4ff;
}

/* Header */
.pb-auth-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.pb-auth-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #00f4ff;
  text-shadow: 0 0 15px rgba(0, 244, 255, 0.4);
  margin: 0;
  letter-spacing: 2px;
}
.pb-auth-subtitle {
  font-family: 'Share Tech Mono', monospace;
  color: rgba(0, 244, 255, 0.6);
  font-size: 0.8rem;
  margin: 0.25rem 0 0;
}

/* Tabs */
.pb-auth-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(0, 244, 255, 0.15);
  margin-bottom: 1.5rem;
}
.pb-auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: rgba(224, 224, 224, 0.5);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.5rem 0;
  cursor: pointer;
  transition: all 0.2s;
}
.pb-auth-tab:hover {
  color: #e0e0e0;
}
.pb-auth-tab.active {
  color: #00f4ff;
  border-bottom-color: #00f4ff;
  text-shadow: 0 0 8px rgba(0, 244, 255, 0.3);
}

/* Social buttons */
.pb-auth-social {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.pb-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.7rem;
  border-radius: 4px;
  border: 1px solid rgba(224, 224, 224, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: #e0e0e0;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.pb-social-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(224, 224, 224, 0.3);
  transform: translateY(-1px);
}
.pb-social-google:hover { border-color: rgba(234, 67, 53, 0.5); }
.pb-social-github:hover { border-color: rgba(255, 255, 255, 0.4); }
.pb-social-discord:hover { border-color: rgba(88, 101, 242, 0.5); }

.pb-social-btn i {
  font-size: 1.1rem;
  width: 1.2rem;
  text-align: center;
}

/* Divider */
.pb-auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  color: rgba(224, 224, 224, 0.3);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.pb-auth-divider::before,
.pb-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(0, 244, 255, 0.12);
}

/* Form fields */
.pb-auth-field {
  margin-bottom: 0.75rem;
}
.pb-auth-field label {
  display: block;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  color: rgba(0, 244, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.3rem;
}
.pb-auth-field input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 244, 255, 0.2);
  border-radius: 4px;
  color: #e0e0e0;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.pb-auth-field input:focus {
  border-color: #00f4ff;
  box-shadow: 0 0 10px rgba(0, 244, 255, 0.15);
}
.pb-auth-field input::placeholder {
  color: rgba(224, 224, 224, 0.25);
}

/* Error message */
.pb-auth-error {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
  color: #ff6b6b;
  min-height: 1rem;
  margin: 0.5rem 0;
}

/* Submit button */
.pb-auth-submit {
  width: 100%;
  padding: 0.75rem;
  background: linear-gradient(135deg, rgba(0, 244, 255, 0.2), rgba(157, 0, 255, 0.15));
  border: 1px solid rgba(0, 244, 255, 0.4);
  border-radius: 4px;
  color: #00f4ff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
}
.pb-auth-submit:hover {
  background: linear-gradient(135deg, rgba(0, 244, 255, 0.3), rgba(157, 0, 255, 0.25));
  box-shadow: 0 0 20px rgba(0, 244, 255, 0.2);
  transform: translateY(-1px);
}
.pb-auth-submit:disabled {
  cursor: not-allowed;
}

/* Magic link button */
.pb-auth-magic-link {
  width: 100%;
  padding: 0.5rem;
  background: transparent;
  border: none;
  color: rgba(157, 0, 255, 0.7);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
  cursor: pointer;
  transition: color 0.2s;
  margin-top: 0.5rem;
}
.pb-auth-magic-link:hover {
  color: #9d00ff;
  text-shadow: 0 0 8px rgba(157, 0, 255, 0.3);
}

/* Forgot password link — quieter than magic link */
.pb-auth-forgot {
  width: 100%;
  padding: 0.25rem;
  background: transparent;
  border: none;
  color: rgba(224, 224, 224, 0.5);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  cursor: pointer;
  text-decoration: underline dotted;
  transition: color 0.2s;
  margin-top: 0.25rem;
}
.pb-auth-forgot:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .pb-auth-card {
    padding: 1.5rem;
    margin: 1rem;
  }
  .pb-auth-title {
    font-size: 1.5rem;
  }
}
