/* 이메일 회원가입·로그인 화면 (/auth/member.css) — member-email.js(로그인 창 안 이메일 로그인 칸)·signup.html·verify.html 이 쓴다.
   소셜 로그인 화면(auth.css)과 같은 테마 변수(/auth/hm-social-theme.css 의 --hm-auth-*)만 쓴다 — 값은 그 파일에서 바꾼다.
   모든 규칙은 .hm-auth 아래에만 걸린다(사이트의 다른 스타일과 섞이지 않게). 입력 칸 글자는 16px(휴대폰에서 확대되지 않게). */

.hm-auth .hm-email-box { margin: 0; }
.hm-auth .hm-email-login,
.hm-auth .hm-signup-form { display: flex; flex-direction: column; gap: calc(var(--hm-sp) * 2); margin: 0; }

.hm-auth .hm-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hm-auth .hm-field > label { font-size: 0.875em; font-weight: 500; color: var(--hm-sub); line-height: 1.4; }
.hm-auth .hm-input {
  box-sizing: border-box; width: 100%; min-height: 52px; margin: 0; padding: 0 14px;
  border: 1px solid var(--hm-line); border-radius: var(--hm-auth-input-radius, 8px);
  background: var(--hm-auth-bg, #fff); color: var(--hm-ink);
  font-family: inherit; font-size: 16px; line-height: 1.4;
  -webkit-appearance: none; appearance: none;
}
.hm-auth .hm-input::placeholder { color: var(--hm-mute); }
.hm-auth .hm-input:focus { outline: none; border-color: var(--hm-ink); box-shadow: inset 0 0 0 1px var(--hm-ink); }
.hm-auth .hm-input[aria-invalid="true"] { border-color: var(--hm-err); box-shadow: inset 0 0 0 1px var(--hm-err); }
.hm-auth .hm-hint { margin: 0; font-size: 0.8125em; color: var(--hm-mute); line-height: 1.5; }

.hm-auth .hm-email-login .hm-btn,
.hm-auth .hm-signup-form .hm-btn { margin-top: 4px; }

/* 결과 문구 — 비어 있으면 자리를 차지하지 않는다 */
.hm-auth .hm-email-msg { margin: 0; font-size: 0.875em; line-height: 1.6; color: var(--hm-sub); }
.hm-auth .hm-email-msg:empty { display: none; }
.hm-auth .hm-email-msg--err { color: var(--hm-err); font-weight: 600; }
.hm-auth .hm-email-msg--ok { color: var(--hm-ok); font-weight: 600; }

/* 글자 버튼([인증 메일 다시 받기])·[이메일로 회원가입] 링크 — 손가락으로 누르기 쉽게 높이 44px */
.hm-auth .hm-linkbtn {
  align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; padding: 0;
  border: 0; background: none; color: var(--hm-ink); font: inherit; font-size: 0.9375em; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.hm-auth .hm-linkbtn:disabled { opacity: .45; cursor: default; }
.hm-auth .hm-linkbtn:focus-visible, .hm-auth .hm-email-signup a:focus-visible { outline: 3px solid var(--hm-ok); outline-offset: 2px; }
.hm-auth .hm-email-signup { margin: 0; font-size: 0.875em; color: var(--hm-sub); line-height: 1.5; }
.hm-auth .hm-email-signup a { display: inline-flex; align-items: center; min-height: 44px; color: var(--hm-ink); font-weight: 600; text-underline-offset: 3px; }

/* 이메일 로그인과 계정 버튼 사이 나눔 줄 */
.hm-auth .hm-or { display: flex; align-items: center; gap: 12px; margin: calc(var(--hm-sp) * 1.5) 0 calc(var(--hm-sp) * 2.5); color: var(--hm-mute); font-size: 0.8125em; }
.hm-auth .hm-or::before, .hm-auth .hm-or::after { content: ""; flex: 1; height: 1px; background: var(--hm-line); }

/* 가입 화면 */
.hm-auth .hm-signup-form fieldset { margin-top: 4px; }
.hm-auth .hm-signup-form .hm-detail { margin-left: 0; }
/* 휴대폰 기준: 작은 글자도 14px, 누르는 곳은 44px — 키트 공용 스타일(13px·22px)을 이 화면에서만 키운다 */
.hm-auth .hm-hint,
.hm-auth .hm-signup-form .hm-small,
.hm-auth .hm-signup-form table { font-size: 14px; }
.hm-auth .hm-signup-form .hm-link { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin: -11px 0; }
/* 동의 칸 — 보이는 네모는 22px 그대로, 눌리는 곳은 44px(바깥 11px 은 음수 여백이라 줄 배치는 그대로) */
.hm-auth .hm-signup-form .hm-check input {
  -webkit-appearance: none; appearance: none; position: relative; box-sizing: border-box; flex: none;
  width: 44px; height: 44px; margin: -10px -11px -11px -11px; padding: 0; border: 0; border-radius: 0; background: transparent; cursor: pointer;
}
.hm-auth .hm-signup-form .hm-check input::before {
  content: ""; position: absolute; left: 11px; top: 11px; box-sizing: border-box; width: 22px; height: 22px;
  border: 2px solid var(--hm-ink); border-radius: 3px; background: var(--hm-auth-bg, #fff);
}
.hm-auth .hm-signup-form .hm-check input:checked::before { border-color: var(--hm-auth-primary, var(--hm-ink)); background: var(--hm-auth-primary, var(--hm-ink)); }
.hm-auth .hm-signup-form .hm-check input:checked::after {
  content: ""; position: absolute; left: 19px; top: 14px; width: 6px; height: 12px; box-sizing: border-box;
  border: solid var(--hm-auth-on-primary, #fff); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.hm-auth .hm-signup-form .hm-check input:focus-visible { outline: 3px solid var(--hm-ok); outline-offset: -8px; }
.hm-auth .hm-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.hm-auth .hm-done { margin-top: 8px; }
.hm-auth .hm-done h2 { font-size: 1.25em; margin: 0 0 10px; }
.hm-auth .hm-done p { margin: 0 0 20px; color: var(--hm-sub); line-height: 1.65; }
.hm-auth .hm-after { margin: 32px 0 0; font-size: 0.875em; color: var(--hm-sub); }
.hm-auth .hm-after a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--hm-ink); font-weight: 600; text-underline-offset: 3px; }
