/**
 * Authentication Pages Styling
 * Modern arcadey dark theme with BLACKPINK pink accents
 * Fonts: Outfit (display) + Inter (body)
 */

/* ========== AUTH BODY & BACKGROUND ========== */
* {
  -webkit-tap-highlight-color: transparent;
}

.auth-body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: #0a0a0a;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  position: relative;
}

.auth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.auth-bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}

.auth-bg-glow--1 {
  width: 600px;
  height: 600px;
  top: -200px;
  left: -100px;
  background: radial-gradient(circle, #f7a6b9 0%, transparent 70%);
  opacity: 0.07;
  animation: glowFloat1 12s ease-in-out infinite;
}

.auth-bg-glow--2 {
  width: 500px;
  height: 500px;
  bottom: -150px;
  right: -100px;
  background: radial-gradient(circle, #FA5BFF 0%, transparent 70%);
  opacity: 0.05;
  animation: glowFloat2 15s ease-in-out infinite;
}

.auth-bg-glow--3 {
  width: 300px;
  height: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, #f7a6b9 0%, transparent 70%);
  opacity: 0.04;
  animation: glowFloat3 10s ease-in-out infinite;
}

@keyframes glowFloat1 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(40px, 30px) scale(1.1);
  }
}

@keyframes glowFloat2 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-30px, -40px) scale(1.15);
  }
}

@keyframes glowFloat3 {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.04;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0.06;
  }
}

/* Sparkle particles */
.auth-sparkles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  color: #f7a6b9;
  font-size: 18px;
  opacity: 0;
  animation: sparkleFloat 4s ease-in-out infinite;
}

@keyframes sparkleFloat {

  0%,
  100% {
    opacity: 0;
    transform: translateY(0) scale(0.8);
  }

  50% {
    opacity: 0.4;
    transform: translateY(-15px) scale(1.2);
  }
}

/* ========== FLOATING NAV ========== */
.auth-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(247, 166, 185, 0.08);
}

.auth-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.auth-nav-brand img {
  border-radius: 8px;
}

.auth-nav-brand span {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: #f7a6b9;
  letter-spacing: -0.5px;
}

.auth-nav-back {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #71717A;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.auth-nav-back:hover {
  color: #f7a6b9;
}

/* ========== AUTH CONTAINER ========== */
.auth-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 40px;
  position: relative;
  z-index: 1;
}

/* ========== AUTH CARD ========== */
.auth-card {
  position: relative;
  background: #111111;
  border: 1px solid rgba(247, 166, 185, 0.12);
  border-radius: 24px;
  padding: 48px 40px;
  max-width: 460px;
  width: 100%;
  box-shadow:
    0 0 0 1px rgba(247, 166, 185, 0.05),
    0 4px 40px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(247, 166, 185, 0.03);
  overflow: hidden;
}

.auth-card-glow {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #f8b4c4, #fcd5de, #f8b4c4, transparent);
  border-radius: 2px;
  opacity: 0.8;
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {

  0%,
  100% {
    opacity: 0.5;
    width: 200px;
  }

  50% {
    opacity: 1;
    width: 300px;
  }
}

/* ========== STAGE INDICATORS ========== */
.stage-indicators {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 36px;
}

.stage-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.stage-step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #555;
  background: #1a1a1a;
  border: 2px solid #333;
  transition: all 0.4s ease;
}

.stage-step-label {
  font-size: 11px;
  font-weight: 500;
  color: #555;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.4s ease;
}

.stage-step-line {
  width: 48px;
  height: 2px;
  background: #333;
  margin: 0 12px;
  margin-bottom: 20px;
  border-radius: 1px;
  transition: background 0.4s ease;
}

.stage-step.active .stage-step-circle {
  background: linear-gradient(135deg, #f8b4c4, #fcd5de);
  border-color: transparent;
  color: #000;
  box-shadow: 0 0 20px rgba(248, 180, 196, 0.4);
}

.stage-step.active .stage-step-label {
  color: #f8b4c4;
}

.stage-step.completed .stage-step-circle {
  background: #28a745;
  border-color: transparent;
  color: #fff;
}

.stage-step.completed .stage-step-label {
  color: #28a745;
}

/* ========== AUTH HEADER ========== */
.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 16px;
  color: #f7a6b9;
  margin-bottom: 20px;
}

.auth-logo-badge svg {
  stroke: #f7a6b9;
}

.auth-header h2 {
  font-family: 'Outfit', sans-serif;
  color: #ffffff;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.auth-header p {
  color: #71717A;
  font-size: 14px;
  font-weight: 400;
  margin: 0;
}

/* ========== FORM STYLES ========== */
.auth-form {
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: #A1A1AA;
  font-weight: 500;
  font-size: 13px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: #555;
  pointer-events: none;
  z-index: 1;
  transition: color 0.3s ease;
}

.input-wrapper:focus-within .input-icon {
  color: #f7a6b9;
}

.form-control {
  width: 100%;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #ffffff;
  padding: 14px 16px 14px 44px;
  border-radius: 12px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  transition: all 0.3s ease;
  outline: none;
}

.form-control:focus {
  background: #1e1e1e;
  color: #ffffff;
  border-color: #f7a6b9;
  box-shadow: 0 0 0 3px rgba(247, 166, 185, 0.1), 0 0 20px rgba(247, 166, 185, 0.05);
}

.form-control::placeholder {
  color: #444;
}

/* OTP Input */
.otp-input {
  text-align: center;
  letter-spacing: 12px;
  font-size: 24px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  padding-left: 44px;
}

/* Helper Text */
.auth-helper-text {
  display: block;
  margin-top: 8px;
  color: #555;
  font-size: 12px;
}

/* ========== BUTTONS ========== */
.auth-btn {
  width: 100%;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.auth-btn-primary {
  background: linear-gradient(135deg, #f8b4c4 0%, #fcd5de 100%);
  color: #000;
}

.auth-btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #fcd5de 0%, #f8b4c4 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.auth-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 32px rgba(248, 180, 196, 0.3),
    0 0 0 1px rgba(248, 180, 196, 0.2);
}

.auth-btn-primary:hover::before {
  opacity: 1;
}

.auth-btn-primary span,
.auth-btn-primary svg {
  position: relative;
  z-index: 1;
}

.auth-btn-primary:active {
  transform: translateY(0);
}

.auth-btn-primary:disabled {
  background: #333;
  color: #666;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.auth-btn-primary:disabled::before {
  display: none;
}

.auth-btn-secondary {
  background: transparent;
  border: 1px solid rgba(247, 166, 185, 0.3);
  color: #f7a6b9;
  margin-top: 12px;
}

.auth-btn-secondary:hover {
  background: rgba(247, 166, 185, 0.08);
  border-color: #f7a6b9;
  box-shadow: 0 0 20px rgba(247, 166, 185, 0.1);
}

/* Detect Location Button */
.auth-btn-detect {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  color: #999;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.auth-btn-detect:hover {
  color: #f7a6b9;
  background: rgba(247, 166, 185, 0.06);
  border-color: rgba(247, 166, 185, 0.2);
}

.auth-btn-detect:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Select dropdown styling */
select.form-control {
  appearance: auto;
  -webkit-appearance: auto;
  padding-right: 16px;
}

/* ========== LINKS ========== */
.auth-link {
  color: #f7a6b9;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.auth-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #FA5BFF;
  transition: width 0.3s ease;
}

.auth-link:hover {
  color: #FA5BFF;
}

.auth-link:hover::after {
  width: 100%;
}

.auth-footer-link {
  text-align: center;
  margin-top: 24px;
  color: #555;
  font-size: 14px;
}

.auth-footer-link p {
  margin: 0;
}

/* ========== MESSAGES ========== */
.auth-error {
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.3);
  color: #ff6b7a;
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  animation: messageSlideIn 0.3s ease;
}

.auth-success {
  background: rgba(40, 167, 69, 0.1);
  border: 1px solid rgba(40, 167, 69, 0.3);
  color: #6dff8c;
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  animation: messageSlideIn 0.3s ease;
}

.auth-info {
  background: rgba(247, 166, 185, 0.08);
  border: 1px solid rgba(247, 166, 185, 0.2);
  color: #f7a6b9;
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  animation: messageSlideIn 0.3s ease;
}

@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== LOADING SPINNER ========== */
.auth-loading {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  border-top-color: #000;
  animation: spin 0.7s linear infinite;
  margin-right: 8px;
}

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

/* ========== HIDDEN ========== */
.hidden {
  display: none !important;
}

/* ========== BRAND FOOTER ========== */
.auth-brand-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.auth-brand-footer:hover {
  opacity: 0.6;
}

.auth-brand-footer img {
  border-radius: 4px;
}

.auth-brand-footer span {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: #fff;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ========== NAVBAR LOGIN BUTTON (for other pages) ========== */
#authButton {
  background: linear-gradient(135deg, #f8b4c4 0%, #fcd5de 100%) !important;
  color: #000 !important;
  font-weight: 700 !important;
  font-family: 'Outfit', sans-serif;
  border: none !important;
  border-radius: 10px !important;
  padding: 8px 24px !important;
  font-size: 14px !important;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 0 20px rgba(248, 180, 196, 0.2);
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  animation: btnGlow 3s ease-in-out infinite;
}

#authButton:hover {
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow:
    0 0 30px rgba(247, 166, 185, 0.4),
    0 8px 24px rgba(250, 91, 255, 0.2) !important;
}

#authButton:active {
  transform: translateY(0) scale(1) !important;
}

@keyframes btnGlow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(247, 166, 185, 0.2);
  }

  50% {
    box-shadow: 0 0 30px rgba(247, 166, 185, 0.35), 0 0 60px rgba(250, 91, 255, 0.1);
  }
}

/* ========== MEMBERS PAGE STYLES ========== */
.members-container {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.members-card {
  background: #111111;
  border: 1px solid rgba(247, 166, 185, 0.12);
  border-radius: 24px;
  padding: 60px 40px;
  max-width: 600px;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}

.members-card h1 {
  font-family: 'Outfit', sans-serif;
  color: #f7a6b9;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.members-card p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.members-card .construction-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 576px) {
  .auth-nav {
    padding: 12px 16px;
  }

  .auth-nav-brand span {
    font-size: 16px;
  }

  .auth-nav-back {
    font-size: 13px;
  }

  .auth-container {
    padding: 80px 16px 24px;
  }

  .auth-card {
    padding: 36px 24px;
    border-radius: 20px;
  }

  .auth-header h2 {
    font-size: 24px;
  }

  .otp-input {
    font-size: 20px;
    letter-spacing: 8px;
  }

  .stage-step-line {
    width: 32px;
    margin: 0 8px;
  }

  .stage-step-circle {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .stage-step-label {
    font-size: 10px;
  }

  .auth-bg-glow--1 {
    width: 300px;
    height: 300px;
  }

  .auth-bg-glow--2 {
    width: 250px;
    height: 250px;
  }
}

/* ═══════════════════════════════════════════
   Location Permission Prompt Card (Stage 3)
   ═══════════════════════════════════════════ */
.auth-location-prompt {
  background: rgba(247, 166, 185, 0.06);
  border: 1px solid rgba(247, 166, 185, 0.2);
  border-radius: 14px;
  padding: 18px 16px;
  text-align: center;
  margin-bottom: 4px;
}

.auth-location-icon {
  font-size: 28px;
  margin-bottom: 8px;
  line-height: 1;
}

.auth-location-title {
  font-size: 14px;
  font-weight: 600;
  color: #f7a6b9;
  margin-bottom: 6px;
}

.auth-location-desc {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
  margin-bottom: 14px;
}

.auth-location-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.auth-btn-detect--allow {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(247, 166, 185, 0.15);
  border: 1px solid rgba(247, 166, 185, 0.4);
  border-radius: 9px;
  color: #f7a6b9;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.auth-btn-detect--allow:hover {
  background: rgba(247, 166, 185, 0.25);
  transform: translateY(-1px);
}

.auth-btn-detect--allow:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-btn-detect--skip {
  padding: 8px 14px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.auth-btn-detect--skip:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
}