/* =========================================================
   account.css — 로그인 / 회원가입 / 정보수정 공통 폼 스타일
   style.css 의 디자인 토큰(--teal, --navy, --line, --muted ...) 사용
   ========================================================= */

/* ── 공통 레이아웃 ───────────────────────────────────────── */
.auth {
  max-width:960px;
  margin:0 auto;
  padding:46px 20px 80px;
}

/* 작은 버튼(중복확인·우편번호 검색 등) */
.btn.btn-sm { padding:9px 14px; font-size:.88rem; white-space:nowrap; }

/* 계정 폼 입력/셀렉트 — style.css 의 .input/.select 는 .form-field 안에서만 적용되므로
   계정 페이지(.auth, .pw-modal)용 입력 스타일을 별도 정의한다. */
.auth .input, .auth .select, .auth textarea.input,
.pw-modal .input {
  border:1px solid var(--line); border-radius:9px;
  padding:11px 14px; font-size:.98rem; font-family:inherit;
  color:var(--ink); background:#fff;
  transition:border-color .15s, box-shadow .15s;
}
.auth .input::placeholder, .pw-modal .input::placeholder { color:#9aa9b4; }
.auth .input:focus, .auth .select:focus, .pw-modal .input:focus {
  outline:none; border-color:var(--teal); box-shadow:0 0 0 3px rgba(14,154,168,.12);
}
.auth textarea.input { resize:vertical; }

/* 인라인 입력 오류 메시지(네이티브 검증 풍선 대체) */
.auth .field-error { display:none; color:#e0483d; font-size:.84rem; margin-top:7px; }
.auth .field-error.on { display:block; }
.auth .input.is-error { border-color:#e0483d; box-shadow:0 0 0 3px rgba(224,72,61,.12); }

/* ── 아이디/비번 찾기 탭 ─────────────────────────── */
.auth-tabs { display:flex; gap:8px; max-width:460px; margin:0 auto 22px; }
.auth-tab {
  flex:1; text-align:center; padding:12px; cursor:pointer;
  border:1px solid var(--line); border-radius:10px; background:#fff;
  color:var(--muted); font-weight:600;
}
.auth-tab.on { background:var(--teal); color:#fff; border-color:var(--teal); }
.find-pane { display:none; }
.find-pane.on { display:block; }
.find-result {
  max-width:460px; margin:18px auto 0; display:none;
  background:var(--bg-soft); border:1px solid var(--line); border-radius:12px;
  padding:22px; text-align:center; color:var(--ink); line-height:1.7;
}
.find-result.on { display:block; }
.find-result .big { font-size:1.3rem; font-weight:800; color:var(--teal); margin:6px 0; }

/* ── 관리자 표(미승인 회원) ─────────────────────── */
.adm-wrap { max-width:1140px; margin:0 auto; padding:40px 20px 80px; }
.adm-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:18px; flex-wrap:wrap; }
.adm-head h1 { font-size:1.5rem; color:var(--navy); margin:0; }
.adm-head .count { color:var(--muted); font-size:.92rem; }
.adm-search { display:flex; gap:8px; margin-bottom:14px; flex-wrap:wrap; }
.adm-table-wrap { overflow-x:auto; border:1px solid var(--line); border-radius:12px; }
.adm-table { width:100%; border-collapse:collapse; font-size:.9rem; min-width:880px; }
.adm-table th, .adm-table td { border-bottom:1px solid var(--line); padding:11px 10px; text-align:center; white-space:nowrap; }
.adm-table th { background:var(--bg-soft); color:var(--navy); font-weight:700; }
.adm-table tr:last-child td { border-bottom:none; }
.adm-table td.tal { text-align:left; white-space:normal; }
.adm-empty { text-align:center; color:var(--muted); padding:46px 0; }
.badge-pending { color:#c47a13; font-weight:700; }
.auth-head { text-align:center; margin-bottom:30px; }
.auth-head .eyebrow {
  color:var(--teal); font-weight:700; letter-spacing:.06em;
  font-size:.82rem; margin:0 0 6px;
}
.auth-head h1 { font-size:1.8rem; color:var(--navy); margin:0; }
.auth-head p { color:var(--muted); margin:10px 0 0; font-size:.95rem; }

/* ── 로그인 카드 ─────────────────────────────────────────── */
.login-card {
  max-width:420px; margin:0 auto;
  background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  padding:34px 30px;
  box-shadow:0 10px 30px rgba(11,42,69,.06);
}
.login-card .field { margin-bottom:14px; }
.login-card label { display:block; font-size:.86rem; color:var(--navy); font-weight:600; margin-bottom:6px; }
.login-card .input { width:100%; }
.login-card .btn-login {
  width:100%; margin-top:6px; padding:13px; font-size:1.02rem; justify-content:center;
}
.login-links {
  display:flex; justify-content:center; gap:10px;
  margin-top:18px; font-size:.9rem; color:var(--muted);
}
.login-links a { color:var(--navy); font-weight:600; }
.login-links .sep { color:var(--line); }

/* ── 입력 공통(폼 페이지) ────────────────────────────────── */
.acct-form { background:#fff; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.acct-form .frow {
  display:grid; grid-template-columns:180px 1fr; gap:0;
  border-bottom:1px solid var(--line);
}
.acct-form .frow:last-child { border-bottom:none; }
.acct-form .flabel {
  background:var(--bg-soft); padding:16px 20px; font-weight:600; color:var(--navy);
  display:flex; align-items:center; gap:4px;
}
.acct-form .flabel .req { color:#e0483d; font-weight:700; }
.acct-form .ffield { padding:14px 20px; display:flex; flex-direction:column; gap:8px; justify-content:center; }
.acct-form .ffield .row { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.acct-form .hint { font-size:.82rem; color:var(--muted); }
.acct-form .hint.err { color:#e0483d; }
.acct-form .static-val { color:var(--ink); font-weight:600; }

/* 입력 폭 변형 */
.acct-form .input.w-sm { width:120px; }
.acct-form .input.w-md { width:200px; }
.acct-form .input.w-postcode { width:130px; }
.acct-form .input.grow { flex:1; min-width:160px; }

/* 전화번호 묶음 */
.phone-group { display:flex; align-items:center; gap:6px; }
.phone-group .input { width:80px; text-align:center; }
.phone-group .dash { color:var(--muted); }

/* 보유장비 체크 그리드 */
.dev-grid { display:flex; flex-direction:column; gap:10px; }
.dev-grid .dev-row { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.dev-grid label { display:inline-flex; align-items:center; gap:6px; color:var(--ink); cursor:pointer; }
.dev-grid input[type=checkbox] { width:17px; height:17px; accent-color:var(--teal); }

/* 약관 박스 */
.terms-box {
  background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  padding:24px 26px; max-height:420px; overflow-y:auto; color:var(--ink); line-height:1.8;
}
.terms-box dt { font-weight:700; color:var(--navy); margin:16px 0 6px; }
.terms-box dt:first-child { margin-top:0; }
.terms-box dd { margin:0 0 4px; color:var(--muted); font-size:.93rem; }
.terms-agree { display:flex; align-items:center; justify-content:center; gap:8px; margin:18px 0 0; }
.terms-agree label { color:var(--navy); font-weight:600; cursor:pointer; }
.terms-agree input[type=checkbox] { width:18px; height:18px; accent-color:var(--teal); }

/* 하단 버튼 줄 */
.acct-foot { display:flex; justify-content:center; align-items:center; gap:10px; margin-top:24px; }
.acct-foot .btn { min-width:130px; display:inline-flex; align-items:center; justify-content:center; }

/* 비밀번호 변경 모달 */
.pw-modal { position:fixed; inset:0; background:rgba(11,42,69,.45); display:none; align-items:center; justify-content:center; z-index:1200; padding:20px; }
.pw-modal.on { display:flex; }
.pw-modal .pw-card { background:#fff; border-radius:var(--radius); width:100%; max-width:420px; padding:26px; }
.pw-modal h3 { margin:0 0 18px; color:var(--navy); font-size:1.2rem; }
.pw-modal .field { margin-bottom:12px; }
.pw-modal label { display:block; font-size:.85rem; color:var(--navy); font-weight:600; margin-bottom:6px; }
.pw-modal .input { width:100%; }
.pw-modal .pw-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:18px; }

/* ── 마이페이지 탭 / 회비 납부 현황 (account/dues.php) ─────── */
.my-tabs { display:flex; gap:6px; max-width:960px; margin:0 auto 26px; border-bottom:1px solid var(--line); }
.my-tab {
  padding:12px 20px; margin-bottom:-1px; font-weight:600; font-size:.97rem;
  color:var(--muted); border:1px solid transparent; border-radius:10px 10px 0 0; text-decoration:none;
}
.my-tab:hover { color:var(--navy); }
.my-tab.on { color:var(--teal); background:#fff; border-color:var(--line); border-bottom-color:#fff; }

.dues-now {
  display:flex; align-items:center; gap:20px;
  border:1px solid var(--line); border-radius:var(--radius); background:#fff;
  padding:26px 28px; box-shadow:var(--shadow-sm);
}
.dues-now .dn-ic { width:60px; height:60px; flex:none; border-radius:50%; display:grid; place-items:center; }
.dues-now .dn-ic svg { width:32px; height:32px; }
.dues-now .dn-body { flex:1; min-width:0; }
.dues-now .dn-year { margin:0; color:var(--muted); font-size:.92rem; font-weight:600; }
.dues-now .dn-state { margin:2px 0 4px; font-size:1.55rem; font-weight:800; letter-spacing:-.02em; }
.dues-now .dn-meta { margin:0; color:var(--muted); font-size:.92rem; line-height:1.6; }
.dues-now .dn-act .btn { min-width:150px; justify-content:center; }
.dues-now.is-paid    { border-color:#bfe6de; background:#f3fbf9; }
.dues-now.is-paid .dn-ic { background:#e0f5ef; color:#1f9d6b; }
.dues-now.is-paid .dn-state { color:#1f9d6b; }
.dues-now.is-pending .dn-ic { background:#fff5e6; color:#d98a00; }
.dues-now.is-pending .dn-state { color:#d98a00; }
.dues-now.is-unpaid .dn-ic { background:#fdecec; color:#d23b3b; }
.dues-now.is-unpaid .dn-state { color:#d23b3b; }

.dues-h2 { font-size:1.08rem; color:var(--navy); margin:34px 0 12px; font-weight:700; }

.dues-years { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(5,1fr); gap:10px; }
.dues-years .dy { border:1px solid var(--line); border-radius:12px; padding:14px 10px; text-align:center; background:#fff; }
.dues-years .dy-y { display:block; font-weight:700; color:var(--navy); font-size:1rem; }
.dues-years .dy-s { display:inline-block; margin-top:6px; font-size:.8rem; font-weight:700; border-radius:999px; padding:3px 11px; }
.dues-years .dy-paid .dy-s    { background:#e0f5ef; color:#1f9d6b; }
.dues-years .dy-pending .dy-s { background:#fff3e0; color:#d98a00; }
.dues-years .dy-unpaid .dy-s  { background:var(--bg-soft); color:#8a99a5; }

.dues-table-wrap { border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.dues-table { width:100%; border-collapse:collapse; font-size:.93rem; }
.dues-table th, .dues-table td { padding:12px 14px; border-bottom:1px solid var(--line); text-align:center; }
.dues-table th { background:var(--bg-soft); color:var(--navy); font-weight:700; }
.dues-table tr:last-child td { border-bottom:none; }
.dues-table td.amt { font-weight:700; color:var(--navy); }
.dues-table tr.is-cancel td { color:#a0acb6; }
.dues-table tr.is-cancel td.amt { text-decoration:line-through; color:#a0acb6; }
.dues-badge { display:inline-block; font-size:.8rem; font-weight:700; border-radius:999px; padding:3px 11px; }
.dues-badge.st-y { background:#e0f5ef; color:#1f9d6b; }
.dues-badge.st-n { background:#fff3e0; color:#d98a00; }
.dues-badge.st-c { background:var(--bg-soft); color:#8a99a5; }
.dues-empty { border:1px dashed var(--line); border-radius:12px; padding:36px 0; text-align:center; color:var(--muted); }

.dues-note { margin-top:30px; background:var(--bg-soft); border:1px solid var(--line); border-radius:12px; padding:18px 22px; color:var(--navy); line-height:1.7; }
.dues-note p { margin:0; }
.dues-note .dn-tl { color:var(--teal); font-weight:700; font-size:.93rem; margin-bottom:4px; }
.dues-note .dn-sub { color:var(--muted); font-size:.88rem; margin-top:4px; }

/* ── 모바일 ──────────────────────────────────────────────── */
@media (max-width:680px){
  .acct-form .frow { grid-template-columns:1fr; }
  .acct-form .flabel { padding:12px 16px; }
  .acct-form .ffield { padding:12px 16px; }
  .login-card { padding:26px 20px; }
  .my-tab { flex:1; text-align:center; padding:11px 8px; font-size:.92rem; }
  .dues-now { flex-wrap:wrap; padding:22px 20px; gap:14px; }
  .dues-now .dn-ic { width:48px; height:48px; }
  .dues-now .dn-ic svg { width:26px; height:26px; }
  .dues-now .dn-state { font-size:1.35rem; }
  .dues-now .dn-act { width:100%; }
  .dues-now .dn-act .btn { width:100%; }
  .dues-years { grid-template-columns:repeat(3,1fr); }
  /* 내역 표 → 카드형 */
  .dues-table thead { display:none; }
  .dues-table, .dues-table tbody, .dues-table tr, .dues-table td { display:block; width:100%; }
  .dues-table tr { border-bottom:1px solid var(--line); padding:8px 0; }
  .dues-table tr:last-child { border-bottom:none; }
  .dues-table td { border:none; display:flex; justify-content:space-between; padding:6px 16px; text-align:right; }
  .dues-table td::before { content:attr(data-th); color:var(--muted); font-weight:600; font-size:.86rem; }
}
