/* 판매 로그인·가입(auth 틀). 공용 카드·입력은 lib/public/auth-box.css */

/* ── 가입 단계 ── */
.form-wrap.wide .title { margin-bottom: 8px; }
.reg-form { margin-top: 0; }
.reg-form > #msg { margin-bottom: 12px; }
.reg-form > .reg-progress { margin: 0 0 20px; width: 100%; }
.reg-track { display: flex; gap: 6px; height: 4px; }
.reg-track .reg-seg { flex: 1; border-radius: 4px; background: var(--track); transition: background .15s; }
.reg-track .reg-seg.on { background: var(--primary); }
.reg-track .reg-seg.done { background: var(--primary-line); }
.reg-track .reg-seg[hidden], .reg-labels > span[hidden] { display: none; }
.reg-labels { display: flex; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--ink2); }
.reg-labels > span { flex: 1; text-align: center; line-height: 1.3; }
.reg-labels > span.on { color: var(--primary); font-weight: 700; }

.reg-pane .reg-q { margin: 0 0 8px; font-size: 16px; font-weight: 700; text-align: center; }
.reg-pane .reg-hint, .reg-pane .m-note { margin: 0 0 16px; text-align: center; font-size: 14px; line-height: 1.5; color: var(--ink2); }
.reg-ox { display: flex; flex-direction: column; gap: 10px; }
.reg-ox .btn { height: 52px; font-size: 16px; font-weight: 700; margin-top: 0; }
.reg-ox .btn.line { font-weight: 700; }

.form-wrap .reg-foot { display: flex; gap: 10px; margin-top: 20px; align-items: stretch; }
.form-wrap .reg-foot .btn { flex: 1; height: 52px; margin-top: 0; font-size: 16px; font-weight: 700; }
.form-wrap .reg-foot .btn.line { flex: 0 0 104px; }

.reg-pane .field > label { white-space: nowrap; }
.reg-pane .agree-field .auth-field-inline { margin-top: 10px; font-size: 14px; font-weight: 700; }
.reg-pane .agree-field.agree-bad { padding: 12px 14px; margin: 4px 0 0; border: 1px solid var(--red-line); border-radius: 8px; background: var(--red-bg); }
.reg-pane .agree-field.agree-bad .agree,
.reg-pane .agree-field.agree-bad .m-check { color: var(--red-ink); }
body.m .reg-consent .agree-field { margin-top: 4px; }
.reg-pane input.field-bad,
.form-wrap input.field-bad { border-color: var(--red); box-shadow: 0 0 0 1px var(--red-line, rgba(220, 38, 38, .35)); }
.reg-pane .pwd-rules,
.form-wrap .pwd-rules,
.m-card .pwd-rules { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.45; color: var(--ink2); }
.reg-pane .pwd-rules li,
.form-wrap .pwd-rules li,
.m-card .pwd-rules li { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.reg-pane .pwd-rules li::before,
.form-wrap .pwd-rules li::before,
.m-card .pwd-rules li::before { content: '✕'; flex: 0 0 auto; font-size: 12px; font-weight: 700; line-height: 1; color: var(--red); }
.reg-pane .pwd-rules li.on,
.form-wrap .pwd-rules li.on,
.m-card .pwd-rules li.on { color: var(--ink); }
.reg-pane .pwd-rules li.on::before,
.form-wrap .pwd-rules li.on::before,
.m-card .pwd-rules li.on::before { content: '✓'; color: var(--green); }

body.m .reg-ox .m-btn { width: 100%; margin-top: 0; }
body.m .reg-ox .m-btn + .m-btn { margin-top: 10px; }
body.m .m-reg-progress { margin-bottom: 14px; }
body.m .m-reg-foot { display: flex; gap: 10px; margin-top: 16px; align-items: stretch; }
body.m .m-reg-foot .m-btn { flex: 1; min-height: 48px; margin: 0; }
body.m .m-reg-foot .m-btn.line { flex: 0 0 88px; }

.form-wrap .sep { display: flex; align-items: center; gap: 12px; margin: 4px 0 18px; font-size: 14px; color: var(--ink2); white-space: nowrap; }
.form-wrap .sep::before, .form-wrap .sep::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
.form-wrap .agree { display: flex; align-items: flex-start; gap: 8px; font-weight: 500; }
.form-wrap .agree input { width: auto; height: auto; margin-top: 5px; }
.form-wrap .agree a { color: var(--primary); text-decoration: underline; }
button.legal-link {
  display: inline; padding: 0; border: 0; background: none; font: inherit; font-weight: 700;
  color: var(--primary); text-decoration: underline; cursor: pointer;
}
button.legal-link:hover { text-decoration-thickness: 2px; }
label.agree button.legal-link { font-weight: 500; }
dialog.legal-dlg .legal-dlg-body { max-height: calc(100vh - 160px); overflow: auto; margin: 0 0 4px; }
dialog.legal-dlg .legal-in-dialog { margin: 0; padding: 0; max-width: none; }
dialog.legal-dlg .legal-in-dialog h1 { font-size: 18px; margin-bottom: 10px; }
dialog.legal-dlg .legal-in-dialog h2 { font-size: 14px; margin: 18px 0 6px; }
dialog.legal-dlg .legal-in-dialog p,
dialog.legal-dlg .legal-in-dialog li { font-size: 14px; line-height: 1.65; }

.reg-consent-box,
.reg-consent.m-card { margin-bottom: 4px; }
.reg-consent-lead { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--ink); }
.reg-consent-list { margin: 0 0 10px; padding-left: 18px; font-size: 12px; line-height: 1.55; color: var(--ink2); list-style: disc; }
.reg-consent-box .hint { margin: 0 0 14px; font-size: 12px; text-align: left; }
.reg-consent-box { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft, #F4F4F5); margin-bottom: 14px; }
body.m .reg-consent .m-note { text-align: left; }
body.m .reg-consent-list { font-size: 12px; }

/* 약관 */
.legal { max-width: 760px; margin: 0 auto; padding: 32px 20px 24px; font-size: 14px; line-height: 1.8; word-break: keep-all; }
.page .legal { margin: 0; padding: 0; }
.legal nav { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; font-size: 14px; color: var(--ink2); }
.legal nav a.on { color: var(--primary); font-weight: 700; }
.legal h1 { font-size: 26px; font-weight: 700; margin-bottom: 12px; }
.legal h2 { font-size: 16px; font-weight: 700; margin: 24px 0 6px; }
.legal ul { padding-left: 20px; list-style: disc; }
/* 비밀번호 찾기 안내(pages/customer/forgot.php) */
.forgot-steps { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: f; }
.forgot-steps li { position: relative; padding: 12px 0 12px 42px; border-bottom: 1px solid var(--line); }
.forgot-steps li::before { counter-increment: f; content: counter(f); position: absolute; left: 0; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.forgot-steps b { display: block; font-size: 16px; color: var(--ink); }
.forgot-steps span { display: block; margin-top: 2px; font-size: 14px; line-height: 1.6; color: var(--ink2); }
.forgot-steps span b { display: inline; font-size: inherit; }
.forgot-acts { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.forgot-acts .btn { width: 100%; height: 48px; line-height: 48px; text-align: center; }
.forgot-back { margin-top: 16px; text-align: center; font-size: 14px; }
.forgot-back a { color: var(--ink2); text-decoration: underline; }

.auth-soc-hint { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink2); text-align: center; }
.auth-soc-hint[hidden] { display: none; }
body.m .auth-id-form.m-card { margin-top: 0; }

/* 제목 아래 한 줄 · 폼과 SNS 사이 '또는' 줄 */
.auth-lead { margin: 0 0 16px; font-size: 14px; line-height: 1.55; color: var(--ink2); text-align: center; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; font-size: 14px; color: var(--ink2); }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-or + .auth-social-below { margin-top: 14px; }

/* 로그인: 가운데 아이디 폼 + 아래 SNS */
.auth-login-center { width: 100%; }
body.m .m-auth--center .auth-login-main { padding: 0; background: transparent; border: 0; box-shadow: none; }
.auth-login-main { margin-top: 0; }
.form-wrap > .auth-login-center > form { margin-top: 0; }
.auth-social-below { margin-top: 18px; }
.auth-social-stack { display: flex; flex-direction: column; gap: 10px; }
.btn-continue {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 0 16px;
  border-radius: 12px; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn-soc { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.btn-soc:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.btn-soc-label { flex: 1; text-align: center; padding-right: 28px; }
.btn-soc-ico { width: 22px; height: 22px; flex-shrink: 0; background-position: center; background-repeat: no-repeat; background-size: contain; }
.btn-kakao { border-color: #f0d800; background: #fee500; color: #191600; }
.btn-kakao:hover { filter: brightness(.98); }
.btn-soc-ico--kakao {
  background-color: #191600;
  mask: url("/assets/auth/kakao-symbol.svg") center / contain no-repeat;
  -webkit-mask: url("/assets/auth/kakao-symbol.svg") center / contain no-repeat;
}
.btn-google:hover { background: var(--soft); }
.btn-naver { border-color: #02b350; background: #03c75a; color: #fff; }
.btn-naver:hover { filter: brightness(.98); }
.btn-soc-ico--naver {
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
  background: #fff; color: #03c75a; border-radius: 4px;
}
.btn-soc-ico--google {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234285F4' d='M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09'/%3E%3Cpath fill='%2334A853' d='M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23'/%3E%3Cpath fill='%23FBBC05' d='M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93z'/%3E%3Cpath fill='%23EA4335' d='M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53'/%3E%3C/svg%3E");
}
.auth-login-center .auth-footer { margin-top: 20px; border-top: 0; padding-top: 0; }

/* 비밀번호 찾기 — forgot.pc.php / forgot.m.php */
.forgot-flow .forgot-lead { margin: 0 0 16px; font-size: 16px; line-height: 1.55; color: var(--ink2); text-align: center; }
.forgot-flow .forgot-lead b { color: var(--ink); }
.forgot-pane[hidden] { display: none !important; }
.forgot-dev-hint { margin: 10px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--amber-bg); color: var(--amber-ink, var(--ink)); font-size: 14px; text-align: center; }
.forgot-dev-hint[hidden] { display: none; }
.forgot-modes { display: flex; gap: 8px; margin: 0 0 18px; padding: 4px; border-radius: 8px; background: var(--soft); }
.forgot-mode {
  flex: 1; min-height: 40px; border: 0; border-radius: 8px; background: transparent;
  font: inherit; font-size: 14px; font-weight: 700; color: var(--ink2); cursor: pointer;
}
.forgot-mode.is-on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(20, 32, 60, .08); }
.forgot-mode-pane[hidden] { display: none !important; }
.forgot-pick-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.forgot-pick-btn {
  width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); font: inherit; font-size: 16px; font-weight: 700; text-align: center; cursor: pointer;
}
.forgot-pick-btn:hover { background: var(--soft); border-color: var(--primary-line); }
.forgot-id-hint { display: block; margin-top: 6px; font-size: 14px; font-weight: 500; color: var(--ink2); }
.forgot-id-hint[hidden] { display: none; }
.forgot-kakao-note { margin: 18px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink2); text-align: center; }
.forgot-flow .auth-social-below { margin-top: 22px; }
