/* =========================================================
   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; }

/* ── 모바일 ──────────────────────────────────────────────── */
@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; }
}
