/* ═══════════════════════════════════════════════
   GlowMinds Auth & Nav Styles
   ═══════════════════════════════════════════════ */

/* Nav Auth Area */
.nav-auth-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-nav-login {
  color: #6366f1;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.2s;
}
.btn-nav-login:hover { background: rgba(99,102,241,0.08); }

.btn-nav-register {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 8px;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-nav-register:hover { opacity: 0.9; transform: translateY(-1px); }

/* Points Badge */
.nav-points {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(99,102,241,0.08);
  color: #6366f1;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.2s;
}
.nav-points:hover { background: rgba(99,102,241,0.15); }
.points-icon { font-size: 14px; }

/* User Avatar */
.nav-user-menu { position: relative; }
.nav-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 13px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  user-select: none;
}
.nav-avatar:hover { transform: scale(1.05); box-shadow: 0 2px 12px rgba(0,0,0,0.15); }

/* Dropdown */
.user-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.06);
  width: 220px;
  padding: 8px;
  opacity: 0; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 1000;
}
.user-dropdown.open { opacity: 1; pointer-events: auto; transform: translateY(0); }

.dropdown-header {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 6px;
}
.dh-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 14px;
  flex-shrink: 0;
}
.dh-name { font-weight: 700; font-size: 14px; color: #0f172a; }
.dh-pts { font-size: 12px; color: #6366f1; font-weight: 600; margin-top: 2px; }

.dd-item {
  display: block; padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #334155;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
}
.dd-item:hover { background: #f8fafc; color: #6366f1; }
.dd-divider { height: 1px; background: #f1f5f9; margin: 6px 0; }
.dd-logout { color: #ef4444 !important; }
.dd-logout:hover { background: #fef2f2 !important; color: #dc2626 !important; }

/* ═══ Auth Pages (Login / Register) ═══ */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8faff 0%, #f3e8ff 50%, #e0e7ff 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
  font-family: 'Inter', -apple-system, sans-serif;
}

.auth-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(99,102,241,0.12);
  padding: 44px 40px;
  width: 100%; max-width: 420px;
}

.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}
.auth-logo a {
  text-decoration: none;
  font-size: 22px; font-weight: 800;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.auth-logo .logo-dot { color: #10b981; -webkit-text-fill-color: #10b981; }

.auth-title { font-size: 26px; font-weight: 800; color: #0f172a; text-align: center; margin-bottom: 6px; }
.auth-sub { text-align: center; color: #64748b; font-size: 14px; margin-bottom: 28px; }

.auth-form .form-group { margin-bottom: 18px; }
.auth-form label { display: block; font-weight: 600; font-size: 13px; color: #374151; margin-bottom: 6px; }
.auth-form input {
  width: 100%; padding: 11px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  font-family: inherit;
}
.auth-form input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.auth-error {
  background: #fef2f2; color: #dc2626;
  border: 1px solid #fecaca;
  border-radius: 8px; padding: 10px 14px;
  font-size: 13px; font-weight: 500;
  margin-bottom: 16px; display: none;
}
.auth-error.show { display: block; }

.btn-auth {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border: none; border-radius: 10px;
  font-size: 16px; font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  margin-top: 4px;
  font-family: inherit;
}
.btn-auth:hover { opacity: 0.92; transform: translateY(-1px); }
.btn-auth:active { transform: translateY(0); }
.btn-auth:disabled { opacity: 0.6; cursor: not-allowed; }

.auth-divider {
  text-align: center; color: #94a3b8; font-size: 13px;
  margin: 20px 0;
  position: relative;
}
.auth-divider::before, .auth-divider::after {
  content: ''; position: absolute; top: 50%;
  width: 38%; height: 1px; background: #e2e8f0;
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.auth-switch {
  text-align: center; font-size: 14px; color: #64748b; margin-top: 20px;
}
.auth-switch a { color: #6366f1; font-weight: 600; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

.auth-bonus {
  background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(139,92,246,0.06));
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: 10px; padding: 12px 16px;
  text-align: center; font-size: 13px; color: #6366f1;
  font-weight: 600; margin-bottom: 22px;
}
.auth-bonus span { font-size: 18px; margin-right: 4px; }

/* Password toggle */
.input-wrap { position: relative; }
.input-wrap input { padding-right: 42px; }
.pw-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: #94a3b8; font-size: 16px; padding: 2px;
}
.pw-toggle:hover { color: #6366f1; }

/* ─── Points toast animation ─── */
@keyframes slideUp {
  from { opacity:0; transform: translateY(20px); }
  to   { opacity:1; transform: translateY(0); }
}
