/* ════════════════════════════════════════════
   AUTH PAGES (Login, Register) + MYPAGE
   Design tokens from style.css
════════════════════════════════════════════ */

/* ─────────────────────────────────────────
   로그인 / 회원가입 공통
───────────────────────────────────────── */
.au-section {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  background: var(--black);
}
.au-wrap {
  width: 100%;
  max-width: 440px;
}
.au-wrap-reg {
  max-width: 480px;
}
.au-card {
  position: relative;
  background: var(--black2);
  border: 1px solid rgba(201,168,76,0.2);
  padding: 48px 52px;
}
.au-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
}

/* 아이브로우 & 타이틀 */
.au-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.au-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 300;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 32px;
}
.au-title em {
  font-style: italic;
  color: var(--gold);
}

/* 알림 */
.au-alert {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.6;
  padding: 12px 16px;
  margin-bottom: 24px;
  border-radius: 2px;
}
.au-alert-error {
  background: rgba(229,115,115,0.1);
  border: 1px solid rgba(229,115,115,0.25);
  color: #e57373;
}
.au-alert-error p { margin: 2px 0; }
.au-alert-success {
  background: rgba(76,175,80,0.1);
  border: 1px solid rgba(76,175,80,0.25);
  color: #81C784;
}

/* 폼 */
.au-form { display: flex; flex-direction: column; gap: 20px; }
.au-field { display: flex; flex-direction: column; gap: 8px; }
.au-field label {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--gray2);
}
.au-field input {
  width: 100%;
  background: var(--black3);
  border: 1px solid rgba(247,245,240,0.1);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.au-field input:focus {
  border-color: rgba(201,168,76,0.5);
}
.au-field input::placeholder {
  color: var(--gray2);
  opacity: 0.6;
}

/* 비밀번호 헤더 (label + 링크) */
.au-pw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.au-pw-header label {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--gray2);
}
.au-forgot {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--gray2);
  text-decoration: none;
  transition: color 0.2s;
}
.au-forgot:hover { color: var(--gold); }

/* 비밀번호 입력 */
.au-pw-wrap { position: relative; }
.au-pw-wrap input { padding-right: 44px; }
.au-pw-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gray2);
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.2s;
  padding: 4px;
  line-height: 0;
}
.au-pw-toggle:hover { opacity: 0.8; }
.au-pw-match {
  font-family: var(--font-sans);
  font-size: 12px;
  min-height: 18px;
}

/* 체크박스 */
.au-check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.au-check-row input[type="checkbox"] { display: none; }
.au-check-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  min-width: 16px;
  border: 1px solid rgba(247,245,240,0.2);
  background: var(--black3);
  margin-top: 2px;
  transition: border-color 0.2s, background 0.2s;
}
.au-check-row input:checked + .au-check-box {
  background: var(--gold);
  border-color: var(--gold);
}
.au-check-row input:checked + .au-check-box::after {
  content: '';
  display: block;
  width: 9px;
  height: 5px;
  border-left: 1.5px solid #000;
  border-bottom: 1.5px solid #000;
  transform: rotate(-45deg) translateY(-1px);
}
.au-check-label {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--gray);
  line-height: 1.5;
}
.au-check-label a { color: var(--gold); text-decoration: none; }
.au-check-label a:hover { text-decoration: underline; }
.au-checks { display: flex; flex-direction: column; gap: 10px; }

/* 제출 버튼 */
.au-btn-primary {
  display: block;
  width: 100%;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--black);
  background: var(--gold);
  border: none;
  padding: 15px 0;
  cursor: pointer;
  transition: background 0.2s;
}
.au-btn-primary:hover { background: var(--gold-light); }

/* OR 구분선 */
.au-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
}
.au-or::before,
.au-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(247,245,240,0.08);
}
.au-or span {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--gray2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* 카카오 버튼 */
.au-kakao-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: #000;
  background: #FEE500;
  padding: 13px 0;
  text-decoration: none;
  transition: background 0.2s;
}
.au-kakao-btn:hover { background: #f0d800; }

/* 하단 링크 */
.au-bottom-link {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--gray2);
  text-align: center;
  margin-top: 24px;
}
.au-bottom-link a { color: var(--gold); text-decoration: none; }
.au-bottom-link a:hover { text-decoration: underline; }

/* 유틸 */
.au-req { color: var(--gold); font-size: 12px; }
.au-opt { font-size: 12px; color: var(--gray2); }
.au-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ─────────────────────────────────────────
   마이페이지
───────────────────────────────────────── */
.mp-section {
  background: var(--black);
  min-height: calc(100vh - 80px);
  padding: 64px 0 96px;
}
.mp-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

/* 사이드바 */
.mp-sidebar {
  position: sticky;
  top: 32px;
}
.mp-user-chip {
  background: var(--black2);
  border: 1px solid rgba(201,168,76,0.15);
  padding: 32px 28px;
  text-align: center;
  margin-bottom: 4px;
}
.mp-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(201,168,76,0.3);
  background: var(--black3);
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.mp-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 4px;
}
.mp-email {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--gray2);
  margin-bottom: 4px;
}
.mp-join {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--gray2);
  opacity: 0.6;
}

/* 사이드 내비 */
.mp-side-nav {
  background: var(--black2);
  border: 1px solid rgba(247,245,240,0.06);
}
.mp-side-link {
  display: block;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--gray);
  padding: 14px 20px;
  text-decoration: none;
  border-left: 2px solid transparent;
  border-bottom: 1px solid rgba(247,245,240,0.04);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.mp-side-link:last-child { border-bottom: none; }
.mp-side-link:hover {
  color: var(--white);
  background: rgba(247,245,240,0.03);
}
.mp-side-link.is-active {
  color: var(--gold);
  border-left-color: var(--gold);
  background: rgba(201,168,76,0.04);
}
.mp-side-logout { color: var(--gray2); }
.mp-side-logout:hover { color: #e57373; }
.mp-withdraw-link {
  margin-top: 16px;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 11px;
}
.mp-withdraw-link a {
  color: var(--gray2);
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.mp-withdraw-link a:hover { opacity: 1; }

/* 메인 영역 */
.mp-welcome {
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.2);
  padding: 16px 20px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--gold);
  margin-bottom: 32px;
}
.mp-msg {
  font-family: var(--font-sans);
  font-size: 13px;
  padding: 12px 16px;
  margin-bottom: 28px;
  border-radius: 2px;
}
.mp-msg-success {
  background: rgba(76,175,80,0.1);
  border: 1px solid rgba(76,175,80,0.25);
  color: #81C784;
}
.mp-msg-error {
  background: rgba(229,115,115,0.1);
  border: 1px solid rgba(229,115,115,0.25);
  color: #e57373;
}
.mp-main-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(247,245,240,0.08);
}

/* 마이페이지 폼 */
.mp-form { display: flex; flex-direction: column; gap: 20px; }
.mp-field { display: flex; flex-direction: column; gap: 8px; }
.mp-field label {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--gray2);
}
.mp-field input {
  width: 100%;
  background: var(--black3);
  border: 1px solid rgba(247,245,240,0.1);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.mp-field input:focus { border-color: rgba(201,168,76,0.5); }
.mp-field input::placeholder { color: var(--gray2); opacity: 0.6; }
.mp-input-disabled { opacity: 0.4 !important; cursor: not-allowed; }
.mp-btn { max-width: 200px; }

/* 게시글/스크랩 목록 */
.mp-post-list { display: flex; flex-direction: column; gap: 2px; }
.mp-post-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 12px;
  background: var(--black2);
  border: 1px solid rgba(247,245,240,0.06);
  padding: 14px 20px;
  text-decoration: none;
  transition: border-color 0.2s;
}
.mp-post-item:hover { border-color: rgba(201,168,76,0.2); }
.mp-post-cat {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mp-post-title {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mp-post-meta {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--gray2);
  white-space: nowrap;
}
.mp-more-link {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--gold);
  text-decoration: none;
  transition: opacity 0.2s;
}
.mp-more-link:hover { opacity: 0.7; }
.mp-empty {
  text-align: center;
  padding: 60px 0;
  background: var(--black2);
  border: 1px solid rgba(247,245,240,0.06);
}
.mp-empty-icon { font-size: 36px; margin-bottom: 12px; }
.mp-empty-text {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--gray2);
}

/* ─────────────────────────────────────────
   반응형
───────────────────────────────────────── */
@media (max-width: 1100px) {
  .mp-inner { padding: 0 32px; }
}

@media (max-width: 900px) {
  .mp-inner  { grid-template-columns: 1fr; }
  .mp-sidebar { position: static; }
}

@media (max-width: 640px) {
  .mp-inner   { padding: 0 20px; gap: 32px; }
  .mp-section { padding: 48px 0 64px; }
  .au-card    { padding: 36px 28px; }
  .au-grid-2  { grid-template-columns: 1fr; }
  .mp-post-item { grid-template-columns: auto 1fr; }
  .mp-post-meta { display: none; }
}
