/* BASIC css start */
/* =========================================================
   미니어몰 회원 공통 스타일 (.mj 안에서만 적용됨)
   ========================================================= */
.mj, .mj * { box-sizing: border-box; }
.mj {
  --ink: #1f2a30; --sub: #66737a; --mute: #9aa5ab; --line: #e3e8ea; --field: #d3dcdf;
  --soft: #f4f8f9; --brand: #a9ced7; --brand-deep: #3d7686; --danger: #d4473b;
  width: 100%; max-width: 440px; margin: 56px auto 110px; padding: 0 20px;
  color: var(--ink); font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  font-size: 14px; line-height: 1.6; letter-spacing: -0.02em; word-break: keep-all; text-align: left;
}
.mj img { max-width: 100%; height: auto; }
.mj legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mj fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.mj ul, .mj ol, .mj dl, .mj dd { margin: 0; padding: 0; list-style: none; }

/* 제목 */
.mj-head { margin-bottom: 32px; }
.mj .mj-title { margin: 0; padding: 0; border: 0; font-size: 26px; font-weight: 700; line-height: 1.35; letter-spacing: -0.04em; color: var(--ink); }
.mj-desc { margin: 8px 0 0; color: var(--sub); font-size: 14px; }

/* 입력 항목 */
.mj-field { display: block; margin-top: 16px; }
.mj-field:first-child { margin-top: 0; }
.mj-label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; color: var(--ink); }
.mj-help { margin: 7px 0 0; font-size: 12px; line-height: 1.5; color: var(--sub); }
.mj-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mj .mj-row > input, .mj .mj-row > select { flex: 1 1 72px; min-width: 0; width: auto !important; }
.mj .mj-row > select { flex-basis: 96px; }

.mj input[type=text], .mj input[type=password], .mj input[type=tel], .mj input[type=email], .mj input[type=number], .mj select {
  height: 48px; max-width: 100%; margin: 0; padding: 0 14px; border: 1px solid var(--field); border-radius: 8px;
  background-color: #fff; font-family: inherit; font-size: 14px; color: var(--ink); vertical-align: middle;
  opacity: 1 !important; transition: border-color .15s, box-shadow .15s;
}
.mj .mj-input input[type=text], .mj .mj-input input[type=password] { width: 100% !important; }
.mj .txt-input { position: static !important; opacity: 1 !important; }
.mj input::placeholder { color: var(--mute); }
.mj select { padding-right: 36px; -webkit-appearance: none; appearance: none; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2366737a' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.mj input[type=text]:focus, .mj input[type=password]:focus, .mj input[type=tel]:focus, .mj input[type=email]:focus, .mj select:focus {
  outline: none; border-color: var(--brand-deep); box-shadow: 0 0 0 3px rgba(169, 206, 215, .5);
}
.mj input[type=radio], .mj input[type=checkbox] { width: 18px; height: 18px; margin: 0 7px 0 0; vertical-align: middle; accent-color: var(--brand-deep); cursor: pointer; }
.mj-check { display: inline-flex; align-items: center; cursor: pointer; font-size: 13px; color: var(--sub); }

/* 비밀번호 보기 버튼 (스크립트가 자동으로 붙임) */
.mj-pw { position: relative; }
.mj-pw input[type=password], .mj-pw input[type=text] { padding-right: 52px !important; }
.mj-pw-toggle { position: absolute; top: 0; right: 0; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  padding: 0; border: 0; background: none; color: var(--mute); cursor: pointer; }
.mj-pw-toggle:hover { color: var(--ink); }
.mj-pw-toggle .off { display: none; }
.mj-pw-toggle.is-on .on { display: none; }
.mj-pw-toggle.is-on .off { display: block; }

/* 버튼 */
.mj .mj-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 48px; padding: 0 18px;
  border: 1px solid #c3ced2; border-radius: 8px; background: #fff; color: var(--ink) !important;
  font-size: 14px; font-weight: 700; line-height: 1; text-decoration: none !important; white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s; }
.mj .mj-btn:hover { border-color: var(--ink); background: var(--soft); }
.mj .mj-btn-primary { border-color: var(--ink); background: var(--ink); color: #fff !important; }
.mj .mj-btn-primary:hover { background: #34464f; border-color: #34464f; }
.mj .mj-btn-lg { height: 56px; border-radius: 10px; font-size: 16px; }
.mj .mj-btn-block { display: flex; width: 100%; }
.mj a:focus-visible, .mj input:focus-visible, .mj button:focus-visible { outline: 2px solid var(--brand-deep); outline-offset: 2px; }
.mj-actions { display: flex; gap: 10px; margin-top: 32px; }
.mj-actions .mj-btn { flex: 1; }
.mj-actions .mj-btn-primary { flex: 2; }

/* 로그인 보조 영역 (보안접속 · 찾기 링크) */
.mj-assist { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 14px; }
.mj-find { display: flex; align-items: center; gap: 0; font-size: 13px; }
.mj .mj-find a { color: var(--sub); text-decoration: none; }
.mj .mj-find a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.mj-find a + a:before { content: ""; display: inline-block; width: 1px; height: 11px; margin: 0 10px; background: var(--field); vertical-align: -1px; }

/* SNS 로그인 */
.mj-or { display: flex; align-items: center; gap: 14px; margin: 32px 0 20px; color: var(--mute); font-size: 12px; }
.mj-or:before, .mj-or:after { content: ""; flex: 1; height: 1px; background: var(--line); }
.mj-sns { display: grid; gap: 10px; }
.mj .mj-sns-btn { position: relative; display: flex; align-items: center; justify-content: center; height: 52px; border-radius: 10px;
  font-size: 15px; font-weight: 700; text-decoration: none !important; transition: filter .15s; }
.mj .mj-sns-btn svg { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); }
.mj .mj-sns-btn:hover { filter: brightness(.96); }
.mj .mj-sns-btn.kakao { background: #FEE500; color: rgba(0, 0, 0, .85) !important; }
.mj .mj-sns-btn.naver { background: #03C75A; color: #fff !important; }
.mj .mj-sns-btn.facebook { background: #1877F2; color: #fff !important; }

/* 회원가입 안내 */
.mj-join { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 32px; padding: 20px 22px; border-radius: 12px; background: var(--soft); }
.mj-join strong { display: block; font-size: 15px; }
.mj-join span { display: block; margin-top: 2px; font-size: 13px; color: var(--sub); }
.mj .mj-join .mj-btn { flex: 0 0 auto; height: 42px; padding: 0 16px; }

.mj-policy { margin: 24px 0 0; text-align: center; font-size: 12px; }
.mj .mj-policy a { color: var(--mute); text-decoration: none; }
.mj .mj-policy a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.mj-policy a + a:before { content: ""; display: inline-block; width: 1px; height: 10px; margin: 0 10px; background: var(--field); vertical-align: -1px; }

.mj-back { margin: 28px 0 0; text-align: center; font-size: 13px; color: var(--sub); }
.mj .mj-back a { margin-left: 6px; color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 480px) {
  .mj { margin-top: 32px; padding: 0 16px; }
  .mj .mj-title { font-size: 22px; }
  .mj-actions { flex-direction: column-reverse; }
  .mj-actions .mj-btn, .mj-actions .mj-btn-primary { flex: none; width: 100%; }
  .mj-join { flex-direction: column; align-items: stretch; text-align: center; }
  .mj .mj-join .mj-btn { width: 100%; }
}

/* ---------- 로그인 ---------- */
.mj-login-go { margin-top: 24px; }
.mj-login-go .mj-btn-primary { flex: 1; }

/* BASIC css end */

