/* ── 로그인 버튼 (nav 우측) ── */
.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 20px;
  border: 1.5px solid rgba(201,168,245,0.35);
  background: rgba(255,255,255,0.05);
  color: #e8d5ff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  margin-top: 0;
  width: auto;
}
.site-nav-inner #auth-nav-area .auth-btn {
  height: 38px;
  padding: 0 14px;
  border-radius: 20px;
  line-height: 1;
}
.site-nav-inner #auth-nav-area .auth-avatar {
  width: 24px;
  height: 24px;
}
.auth-btn:hover {
  background: rgba(124,77,188,0.25);
  border-color: rgba(201,168,245,0.7);
  transform: translateY(-1px);
}
.auth-btn .auth-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(201,168,245,0.5);
}

/* ── 모달 오버레이 ── */
.auth-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(8,5,20,0.75);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
}
.auth-modal-overlay.open {
  display: flex;
}

/* ── 모달 카드 ── */
.auth-modal {
  background: linear-gradient(160deg, #1E1040 0%, #150C30 60%, #0F0820 100%);
  border: 1px solid rgba(201,168,245,0.2);
  border-radius: 24px;
  padding: 48px 28px 32px;
  width: calc(100% - 40px);
  max-width: 380px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 60px rgba(124,77,188,0.12);
  position: relative;
  animation: authModalIn 0.28s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes authModalIn {
  from { opacity: 0; transform: scale(0.88) translateY(16px); }
  to   { opacity: 1; transform: scale(1)    translateY(0);    }
}

.auth-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(201,168,245,0.2);
  border-radius: 50%;
  color: rgba(201,168,245,0.8);
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s, color 0.2s;
  z-index: 10;
  margin: 0;
  width: 32px;
  min-width: 32px;
}
.auth-modal-close:hover {
  background: rgba(124,77,188,0.35);
  color: #fff;
}

.auth-modal-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.auth-modal-logo img {
  width: 56px; height: 56px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(200,134,10,0.3);
}
.auth-modal-logo .auth-modal-title {
  font-size: 19px;
  font-weight: 800;
  background: linear-gradient(135deg, #f3c2d6 0%, #b189db 50%, #F5D76E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.auth-modal-logo .auth-modal-sub {
  font-size: 12.5px;
  color: rgba(220,200,255,0.45);
  margin-top: -6px;
}

/* ── 소셜 로그인 버튼 ── */
.auth-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 14px;
  border: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.18s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
  margin-bottom: 12px;
}
.auth-social-btn:last-child { margin-bottom: 0; }
.auth-social-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.auth-social-btn:active { transform: translateY(0); }

.auth-social-btn.kakao {
  background: #FEE500;
  color: #3A1D1D;
}
.auth-social-btn.google {
  background: #FFFFFF;
  color: #3C4043;
}
.auth-social-btn img {
  width: 20px; height: 20px;
}

.auth-divider {
  text-align: center;
  color: rgba(200,180,255,0.3);
  font-size: 11.5px;
  margin: 18px 0;
  position: relative;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 38%;
  height: 1px;
  background: rgba(200,180,255,0.12);
}
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }

.auth-notice {
  text-align: center;
  font-size: 11px;
  color: rgba(200,180,255,0.3);
  margin-top: 18px;
  line-height: 1.6;
}
.auth-notice a {
  color: rgba(200,180,255,0.5);
  text-decoration: underline;
}

/* 로그인 후 프로필 드롭다운 */
.auth-profile {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-profile-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: linear-gradient(160deg,#1E1040,#0F0820);
  border: 1px solid rgba(201,168,245,0.2);
  border-radius: 14px;
  padding: 8px;
  min-width: 160px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  z-index: 9001;
}
.auth-profile.open .auth-profile-menu { display: block; }
.auth-profile-menu a,
.auth-profile-menu button {
  display: block;
  width: 100%;
  padding: 9px 14px;
  color: #d4bfee;
  font-size: 13px;
  font-weight: 500;
  background: none; border: none;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.auth-profile-menu a:hover,
.auth-profile-menu button:hover {
  background: rgba(124,77,188,0.25);
  color: #e8d5ff;
}

@media (max-width: 480px) {
  .auth-modal { padding: 32px 20px 28px; max-width: 94vw; }
  .site-nav-inner #auth-nav-area .auth-btn { height: 34px; padding: 0 10px; border-radius: 20px; font-size: 12px; gap: 5px; }
  .site-nav-inner #auth-nav-area .auth-avatar { width: 22px; height: 22px; }
  .auth-btn:not(.site-nav-inner #auth-nav-area .auth-btn) { padding: 6px 12px; font-size: 12px; gap: 4px; }
}
