/* ── 회원 인증 페이지 공통 스타일 ─────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
  padding: 40px 16px;
}

.auth-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.1);
  padding: 40px 40px 32px;
  width: 100%;
  max-width: 440px;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--primary, #1a3a6b);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 28px;
}

/* 탭 */
.auth-tabs {
  display: flex;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 24px;
}
.auth-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: none;
  font-size: 15px;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all .2s;
}
.auth-tab.active {
  color: var(--accent, #1a5fd8);
  border-bottom-color: var(--accent, #1a5fd8);
}

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

/* 폼 */
.auth-form { display: flex; flex-direction: column; gap: 16px; }

.auth-form .form-group { display: flex; flex-direction: column; gap: 6px; }
.auth-form label { font-size: 13px; font-weight: 600; color: #374151; }
.auth-form .required { color: #ef4444; }
.auth-form input {
  padding: 10px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  color: #1e293b;
  transition: border-color .2s;
  outline: none;
}
.auth-form input:focus { border-color: var(--accent, #1a5fd8); }

.btn-full { width: 100%; justify-content: center; }

/* SNS */
.sns-divider {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; color: #94a3b8; margin: 4px 0;
}
.sns-divider::before, .sns-divider::after {
  content: ''; flex: 1; height: 1px; background: #e2e8f0;
}
.sns-buttons { display: flex; flex-direction: column; gap: 8px; }
.sns-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 8px; border: 1.5px solid #e2e8f0;
  font-size: 14px; font-weight: 600; cursor: pointer;
  background: #fff; transition: all .2s;
}
.sns-btn:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.sns-kakao { border-color: #FEE500; background: #FEE500; color: #191919; }
.sns-naver { border-color: #03C75A; background: #03C75A; color: #fff; }
.sns-google { border-color: #e2e8f0; color: #374151; }
.sns-icon { width: 20px; text-align: center; font-weight: 900; }

.auth-switch {
  font-size: 13px; color: #64748b; text-align: center; margin: 0;
}
.link-btn {
  background: none; border: none; color: var(--accent, #1a5fd8);
  font-weight: 600; cursor: pointer; text-decoration: underline;
  font-size: inherit;
}
.auth-terms {
  font-size: 11px; color: #94a3b8; text-align: center;
  margin-top: 20px;
}
.auth-terms a { color: #64748b; }

/* 회원 전용 잠금 오버레이 */
.member-guard {
  position: relative;
}
.member-guard-overlay {
  position: absolute; inset: 0;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(4px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border-radius: inherit;
  z-index: 10;
  gap: 12px;
}
.member-guard-icon { font-size: 36px; }
.member-guard-text { font-size: 15px; font-weight: 600; color: #1e293b; }
.member-guard-sub { font-size: 13px; color: #64748b; }

@media (max-width: 480px) {
  .auth-box { padding: 28px 20px 24px; }
}
