/* 회원가입·로그인·내 정보·관리자 공통 스타일. 색·글꼴: brand/brand.json */
:root {
  --primary: #12a150;
  --primary-dark: #0b7a3b;
  --primary-soft: #e8f6ee;
  --text: #1a1f1c;
  --muted: #5b665f;
  --bg: #ffffff;
  --surface: #f6f8f7;
  --border: #e2e8e4;
  --error: #b3261e;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  line-height: 1.7;
  word-break: keep-all;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}
a { color: var(--primary-dark); font-weight: 700; }
[hidden] { display: none !important; }

/* 위쪽 줄 */
.top {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.top .in {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.top .logo svg { display: block; height: 32px; width: auto; aspect-ratio: 150 / 64; }
.top .right { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.top .right a, .top .right button.linklike {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font: inherit; font-size: 15px; font-weight: 600; color: var(--muted);
  text-decoration: none; background: transparent; border: 0; border-radius: 8px; cursor: pointer;
}
.top .right a:hover, .top .right button.linklike:hover { color: var(--text); background: var(--surface); }

/* 가운데 카드 */
main { padding: 32px 20px 56px; }
.card {
  max-width: 440px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
}
.card.wide { max-width: 1040px; }
.card.doc { max-width: 760px; font-size: 15px; }
.card.doc h2 { margin-top: 28px; }
.card.doc ul { margin: 0 0 12px; padding-left: 20px; }
.card.doc li { margin-bottom: 6px; }
.card.doc .table-wrap { margin: 8px 0 12px; }
.doc-table { min-width: 0; }
.doc-table th, .doc-table td { padding: 8px 10px; }
.doc-table td, .doc-table th { white-space: normal; vertical-align: top; }
h1 { margin: 0 0 6px; font-size: clamp(24px, 6vw, 30px); line-height: 1.3; font-weight: 800; }
h2 { margin: 0 0 10px; font-size: 20px; line-height: 1.4; font-weight: 800; }
.sub { margin: 0 0 20px; color: var(--muted); font-size: 15px; }

/* 입력 */
form { display: grid; gap: 14px; }
label.field { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
input[type="text"], input[type="email"], input[type="password"] {
  width: 100%; min-height: 48px; padding: 0 14px;
  font: inherit; font-size: 16px; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
}
input:focus-visible, button:focus-visible, a:focus-visible, select:focus-visible {
  outline: 3px solid var(--primary-soft); outline-offset: 1px; border-color: var(--primary);
}
input[aria-invalid="true"] { border-color: var(--error); }
.hint { font-weight: 400; font-size: 13px; color: var(--muted); }
label.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; min-height: 44px; }
label.check input { width: 22px; height: 22px; margin: 4px 0 0; flex: none; accent-color: var(--primary); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; width: 100%;
  background: var(--primary); color: #fff; font: inherit; font-weight: 700; font-size: 16px;
  text-decoration: none; border: 0; border-radius: 999px; cursor: pointer;
}
.btn:hover { background: var(--primary-dark); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn.ghost { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.btn.ghost:hover { background: var(--surface); }
.btn.small { width: auto; min-height: 44px; padding: 0 14px; font-size: 14px; }
.btn.danger { background: var(--bg); color: var(--error); border: 1px solid var(--error); }
.btn.danger:hover { background: #fdecea; }
.or { display: flex; align-items: center; gap: 12px; margin: 4px 0; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.status { min-height: 1.6em; margin: 0; font-weight: 700; font-size: 15px; }
.status.ok { color: var(--primary-dark); }
.status.err { color: var(--error); }
.note { margin: 18px 0 0; text-align: center; font-size: 15px; color: var(--muted); }
.notice { padding: 16px; border-radius: 12px; background: var(--primary-soft); font-size: 15px; }

/* 내 정보 */
dl.info { display: grid; grid-template-columns: 96px 1fr; gap: 10px 12px; margin: 0 0 22px; font-size: 15px; }
dl.info dt { color: var(--muted); font-weight: 700; }
dl.info dd { margin: 0; overflow-wrap: anywhere; }

/* 관리자 */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 18px; }
.tab {
  min-height: 44px; padding: 0 16px; font: inherit; font-weight: 700; font-size: 15px;
  background: var(--surface); color: var(--muted); border: 1px solid var(--border); border-radius: 999px; cursor: pointer;
}
.tab[aria-selected="true"] { background: var(--primary); color: #fff; border-color: var(--primary); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.stat b { display: block; font-size: 30px; line-height: 1.2; font-weight: 800; color: var(--primary-dark); }
.stat span { font-size: 14px; color: var(--muted); font-weight: 700; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; white-space: nowrap; }
th { background: var(--surface); color: var(--muted); font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.actions { display: flex; gap: 6px; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--surface); color: var(--muted); }
.badge.admin { background: var(--primary-soft); color: var(--primary-dark); }
.count { margin: 0; color: var(--muted); font-size: 14px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; }
.more { margin-top: 14px; display: flex; justify-content: center; }

@media (max-width: 520px) {
  main { padding: 20px 16px 48px; }
  .card { padding: 24px 18px; }
  dl.info { grid-template-columns: 1fr; gap: 2px; }
  dl.info dd { margin-bottom: 10px; }
}
