/* 소셜 로그인 화면·버튼 공용 스타일 (HM-SOCIAL 인증 키트 v2) — 사이트의 /auth/auth.css
   모든 규칙은 .hm-auth 아래에만 걸린다 — 사이트의 다른 스타일과 섞이지 않게.
   로그인 버튼 색·모양은 각 공급자 공식 가이드를 따른다(2026-10-06 확인). 임의로 바꾸면 검수에서 반려될 수 있다.
     카카오  https://developers.kakao.com/docs/ko/kakaologin/design-guide
     네이버  https://developers.naver.com/docs/login/bi/bi.md
     구글    https://developers.google.com/identity/branding-guidelines */

.hm-auth {
  --hm-ink: #001038;
  --hm-sub: #304048;
  --hm-mute: #6C7478;
  --hm-line: #E4E8EC;
  --hm-err: #d92d20;
  --hm-ok: #1b64da;
  color: var(--hm-ink);
  word-break: keep-all;          /* 한국어 낱말 중간에서 줄이 바뀌지 않게 */
  overflow-wrap: anywhere;
}
.hm-auth [hidden] { display: none !important; }

/* ---- 독립 화면(로그인·가입 동의·내 정보) ---- */
body.hm-auth-page {
  margin: 0;
  background: #fff;
  font-family: 'IBM Plex Sans KR', system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  -webkit-text-size-adjust: 100%;
}
.hm-auth .hm-main { box-sizing: border-box; max-width: 480px; margin: 0 auto; padding: 64px 20px 96px; }
.hm-auth h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 10px; }
.hm-auth h2 { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.hm-auth .hm-lead { margin: 0 0 32px; color: var(--hm-sub); line-height: 1.65; }
.hm-auth .hm-small { font-size: 13px; color: var(--hm-mute); line-height: 1.6; margin: 6px 0 0; }
.hm-auth a { color: inherit; }
.hm-auth .hm-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; white-space: nowrap; }

.hm-auth .hm-btn {
  box-sizing: border-box; display: flex; align-items: center; justify-content: center; width: 100%;
  min-height: 52px; padding: 0 20px; border: 1px solid var(--hm-ink); border-radius: 6px;
  background: var(--hm-ink); color: #fff; font: inherit; font-size: 16px; font-weight: 700;
  text-decoration: none; cursor: pointer;
}
.hm-auth .hm-btn + .hm-btn { margin-top: 10px; }
.hm-auth .hm-btn--ghost { background: #fff; color: var(--hm-ink); border-color: var(--hm-line); }
.hm-auth .hm-btn--danger { background: #fff; color: var(--hm-err); border-color: var(--hm-err); }
.hm-auth .hm-btn:disabled { opacity: .45; cursor: default; }
.hm-auth .hm-btn:focus-visible, .hm-auth .hm-check input:focus-visible, .hm-auth .hm-link:focus-visible {
  outline: 3px solid var(--hm-ok); outline-offset: 2px;
}

.hm-auth .hm-msg { min-height: 22px; margin: 16px 0; line-height: 1.6; font-weight: 600; }
.hm-auth .hm-msg--err { color: var(--hm-err); }
.hm-auth .hm-msg--ok { color: var(--hm-ok); }

/* ---- 가입 동의 ---- */
.hm-auth fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.hm-auth .hm-check { display: flex; align-items: flex-start; gap: 12px; }
.hm-auth .hm-check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--hm-ink); cursor: pointer; }
.hm-auth .hm-check label { flex: 1; line-height: 1.5; cursor: pointer; }
.hm-auth .hm-check--all { padding: 18px 0; border-bottom: 2px solid var(--hm-ink); font-size: 17px; font-weight: 800; }
.hm-auth .hm-items { list-style: none; margin: 0; padding: 0; }
.hm-auth .hm-items > li { padding: 16px 0; border-bottom: 1px solid var(--hm-line); }
.hm-auth .hm-tag { font-weight: 700; margin-right: 4px; }
.hm-auth .hm-tag--opt { color: var(--hm-mute); }
.hm-auth .hm-link { flex: none; font-size: 14px; color: var(--hm-sub); text-underline-offset: 3px; }
.hm-auth .hm-detail { margin: 12px 0 0 34px; }
.hm-auth table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.5; }
.hm-auth th, .hm-auth td { border: 1px solid var(--hm-line); padding: 8px; text-align: left; vertical-align: top; }
.hm-auth th { font-weight: 700; background: #fff; white-space: nowrap; }
.hm-auth .hm-actions { margin-top: 8px; }

/* ---- 내 정보 ---- */
.hm-auth .hm-dl { margin: 0 0 32px; }
.hm-auth .hm-dl > div { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--hm-line); }
.hm-auth .hm-dl dt { flex: none; width: 92px; color: var(--hm-mute); white-space: nowrap; }
.hm-auth .hm-dl dd { margin: 0; font-weight: 600; word-break: break-all; }
.hm-auth .hm-danger { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--hm-line); }
.hm-auth .hm-danger p { color: var(--hm-sub); line-height: 1.65; margin: 0 0 16px; }

/* ---- 로그인 버튼 (세 버튼 모두 같은 크기 — 카카오·네이버 가이드는 다른 버튼보다 작게 두는 것을 금지한다) ---- */
.hm-auth.hm-login, .hm-auth .hm-login { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 360px; }
.hm-auth .hm-login-btn {
  box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 48px; padding: 0 16px; border: 0; border-radius: 12px;
  font-size: 15px; font-weight: 600; line-height: 1; text-decoration: none; cursor: pointer;
}
.hm-auth .hm-login-btn svg { flex: none; display: block; }
.hm-auth .hm-login-btn:focus-visible { outline: 3px solid var(--hm-ink); outline-offset: 2px; }

/* 카카오 — 컨테이너 #FEE500, 심볼(말풍선) #000000, 레이블 #000000 85%, 모서리 12px. 심볼 없는 버튼·다른 색 금지 */
.hm-auth .hm-login-btn--kakao { background: #FEE500; color: rgba(0, 0, 0, .85); }
.hm-auth .hm-login-btn--kakao svg { width: 18px; height: 18px; }

/* 네이버 — NAVER GREEN #03C75A 바탕에 흰 N 로고·흰 글자, 로고와 글자 사이 8px, 글자는 로고 높이보다 작게 */
.hm-auth .hm-login-btn--naver { background: #03C75A; color: #fff; }
.hm-auth .hm-login-btn--naver svg { width: 16px; height: 16px; }
.hm-auth .hm-login-btn--naver span { font-size: 15px; }

/* 구글 — 라이트 테마: 바탕 #FFFFFF, 안쪽 테두리 1px #747775, 글자 #1F1F1F, Google Sans(없으면 Roboto) Medium 14/20,
   로고 왼쪽 12px · 로고와 글자 사이 10px · 글자 오른쪽 12px, 표준 4색 G 로고(크기·색 변경 금지) */
.hm-auth .hm-login-btn--google {
  background: #FFFFFF; color: #1F1F1F; box-shadow: inset 0 0 0 1px #747775;
  gap: 10px; padding: 0 12px;
  font-family: "Google Sans", Roboto, Arial, sans-serif; font-size: 14px; font-weight: 500; line-height: 20px; letter-spacing: .25px;
}
.hm-auth .hm-login-btn--google svg { width: 20px; height: 20px; }

.hm-auth .hm-login-msg { margin: 4px 0 0; color: var(--hm-sub); font-size: 14px; line-height: 1.6; }

/* 등록부에 새로 더한 공급자(디자인 가이드가 정해지지 않은 버튼) — 공식 버튼과 같은 크기의 무채색 */
.hm-auth .hm-login-btn--other { background: #fff; color: var(--hm-ink); box-shadow: inset 0 0 0 1px var(--hm-line); }

/* <hm-auth-buttons> — 웹 컴포넌트는 기본이 inline 이라 블록으로 */
hm-auth-buttons { display: block; }

/* ---- 내 정보: 계정 연결 ---- */
.hm-auth .hm-link-box { margin: 0 0 32px; }
.hm-auth .hm-link-box .hm-login { margin-top: 12px; }

/* ---- 관리 화면(회원 통계) ---- */
.hm-auth .hm-main--wide { max-width: 880px; }
.hm-auth .hm-admin-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.hm-auth .hm-admin-bar input { flex: 1 1 240px; min-height: 48px; padding: 0 14px; border: 1px solid var(--hm-line); border-radius: 12px; font: inherit; }
.hm-auth .hm-admin-bar .hm-btn { width: auto; flex: none; }
.hm-auth .hm-table { margin: 0 0 32px; }
.hm-auth .hm-table td { word-break: break-all; }
.hm-auth .hm-num { text-align: right; white-space: nowrap; }

@media (max-width: 380px) {
  .hm-auth .hm-main { padding-top: 40px; }
  .hm-auth .hm-detail { margin-left: 0; }
}
