@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700&display=swap');

:root {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #233c2c;
  background: #f3f5f0;
  font-synthesis: none;
  --text-muted: #5c6c60;
  --text-secondary: #627064;
  --green: #214b32;
  --border: #cbd6c7;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 78% 18%, #dfeadc91, transparent 43%),
    radial-gradient(ellipse at 15% 83%, #eeeadc66, transparent 37%);
}
[hidden] { display: none !important; }
button, input, a { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid #558367;
  outline-offset: 4px;
}
p, h1, h2, label { word-break: keep-all; overflow-wrap: anywhere; }
.brand { padding: 28px 5%; display: flex; justify-content: space-between; align-items: center; }
.brand > a { display: flex; align-items: center; gap: 20px; text-decoration: none; font-size: 12px; letter-spacing: 1.6px; }
.wordmark { font-family: Georgia, serif; font-weight: bold; font-size: 28px; line-height: .92; letter-spacing: -1px; color: #193f23; }
.brand-divider { height: 32px; width: 1px; background: var(--border); }
.private-label { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 9px; }
.private-label > span { width: 7px; height: 7px; background: #47784e; border-radius: 50%; }
.auth-layout { max-width: 1180px; margin: 48px auto 64px; padding: 0 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.auth-layout > * { min-width: 0; }
.eyebrow { font-size: 12px; line-height: 1.6; letter-spacing: 1.6px; font-weight: 600; color: #4c6e54; }
.intro h1 { font-size: 36px; font-weight: 600; line-height: 1.5; letter-spacing: -1.4px; margin: 21px 0 20px; }
.intro-copy, .subcopy { font-size: 16px; line-height: 1.85; color: var(--text-muted); }
.preview-card {
  margin-top: 34px;
  background: #ffffffc9;
  border: 1px solid #fff;
  border-radius: 18px;
  box-shadow: 0 12px 40px #34523808;
  padding: 23px;
  max-width: 420px;
}
/* Keep text on an untransformed surface so small glyphs remain crisp. */
.preview-top { display: flex; align-items: center; font-size: 14px; font-weight: 500; gap: 10px; margin-bottom: 22px; }
.tiny-mark { background: #e0ebde; border-radius: 7px; color: #315d39; padding: 5px 10px; font-family: Georgia, serif; font-weight: 700; }
.preview-live { margin-left: auto; font-size: 12px; color: #4e7054; white-space: nowrap; }
.preview-line { font-size: 14px; line-height: 1.7; color: #425a47; display: flex; align-items: center; gap: 11px; margin: 16px 0; }
.check { border-radius: 50%; background: #e9efe5; color: #446849; width: 23px; height: 23px; flex: 0 0 23px; text-align: center; line-height: 23px; }
.muted { background: #f0f2eb; color: #66765e; }
.preview-footer { border-top: 1px solid #dce4d7; margin-top: 22px; padding-top: 16px; display: flex; justify-content: space-between; font-size: 13px; color: var(--text-secondary); }
.intro-foot { margin-top: 30px; font-size: 11px; letter-spacing: 1.3px; color: var(--text-secondary); }
.auth-card {
  background: #ffffffed;
  border: 1px solid #fff;
  border-radius: 24px;
  backdrop-filter: blur(16px);
  padding: 36px;
  box-shadow: 0 18px 65px #193f230c, 0 0 0 1px #23402b06;
  min-height: 490px;
}
h2 { font-size: 28px; line-height: 1.45; letter-spacing: -.9px; font-weight: 600; margin: 14px 0 12px; }
.subcopy { margin-top: 0; }
.tabs { display: flex; gap: 6px; padding: 5px; background: #eaf0e6; border-radius: 11px; margin: 26px 0 26px; }
.tabs button { flex: 1; border: 0; background: none; color: #52654f; min-height: 44px; padding: 9px; border-radius: 7px; font-size: 15px; font-weight: 500; }
.tabs button[aria-selected=true] { background: #fff; color: #254830; box-shadow: 0 2px 5px #203b2712; }
label { display: block; font-size: 14px; font-weight: 600; color: #374f3d; margin-bottom: 20px; }
input { width: 100%; border: 1px solid var(--border); border-radius: 10px; background: #fff; padding: 13px 14px; color: #233c2c; font-size: 16px; line-height: 1.5; min-height: 52px; margin-top: 9px; outline: none; }
input:focus { border-color: #507b5e; box-shadow: 0 0 0 3px #a1b89c32; }
input::placeholder { color: #6b776a; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 66px; }
.password-wrap button { position: absolute; right: 5px; top: 13px; min-height: 44px; min-width: 50px; border: 0; border-radius: 6px; background: none; font-size: 13px; color: #526b50; padding: 8px; }
label small { display: block; font-size: 13px; font-weight: 400; color: var(--text-secondary); margin-top: 8px; }
.primary { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 12px; background: var(--green); color: #fff; border: 0; border-radius: 10px; padding: 14px 18px; min-height: 54px; font-size: 15px; font-weight: 500; line-height: 1.65; margin-top: 26px; word-break: keep-all; }
.primary:hover { background: #173f27; }
.primary span { font-size: 18px; }
.card-note { font-size: 13px; line-height: 1.85; text-align: center; color: var(--text-secondary); margin: 19px 0; }
.setup-link { display: block; text-align: center; font-size: 14px; color: #406348; margin-top: 20px; padding: 8px 0; text-decoration: underline; text-decoration-color: #b0c1aa; text-underline-offset: 4px; }
.setup-link:hover { color: #214b32; text-decoration-color: currentColor; }
.error { font-size: 14px; color: #963e2a; line-height: 1.7; background: #faf1eb; padding: 12px; border: 1px solid #f0d8cd; border-radius: 8px; }
.help { font-size: 13px; color: var(--text-muted); line-height: 1.85; text-align: center; }
.help summary { cursor: pointer; padding: 6px 0; }
.link-button { text-decoration: none; }
.setup-steps { list-style: none; padding: 0; margin: 28px 0; border: 1px solid #dae3d6; border-radius: 13px; background: #f6f8f3; }
.setup-steps li { display: flex; align-items: flex-start; gap: 13px; padding: 17px; }
.setup-steps li + li { border-top: 1px solid #dae3d6; }
.setup-steps .step-number { border-radius: 50%; width: 26px; height: 26px; line-height: 26px; text-align: center; flex: 0 0 26px; font-size: 13px; font-weight: 600; background: #e2ebdc; color: #35593c; }
.setup-steps strong { display: block; font-size: 14px; font-weight: 600; }
.setup-steps p { font-size: 13px; line-height: 1.7; color: var(--text-muted); margin: 3px 0 0; }
.status-symbol { display: inline-flex; background: #eaf0e4; color: #527540; width: 54px; height: 54px; align-items: center; justify-content: center; border-radius: 16px; font-size: 30px; margin: 6px 0 20px; }
.identity-box { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; border: 1px solid #d4dfce; border-radius: 12px; padding: 18px; margin: 26px 0; font-size: 16px; }
.identity-box > span:not(.pill) { font-size: 14px; color: var(--text-muted); overflow-wrap: anywhere; max-width: 100%; }
.pill { display: inline-block; border-radius: 6px; padding: 5px 9px; background: #edf0da; color: #5f662b; font-size: 13px; margin-top: 8px; white-space: nowrap; }
.steps { padding: 0; display: flex; list-style: none; justify-content: space-between; font-size: 12px; color: var(--text-secondary); gap: 6px; }
.steps li:first-child { color: #345b3b; font-weight: 600; }
.text-button { display: block; border: 0; background: transparent; color: #4b6746; margin: 14px auto; padding: 10px; min-height: 44px; font-size: 14px; }
footer { max-width: 1180px; margin: 0 auto; padding: 22px 40px; display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--text-secondary); }
.admin-layout { max-width: 1100px; margin: 45px auto; padding: 0 30px; }
.admin-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.admin-header a { font-size: 14px; text-decoration: none; }
.admin-intro { margin: 24px 0 28px; }
.admin-intro h1 { font-size: 32px; font-weight: 600; line-height: 1.5; }
.admin-intro p { font-size: 15px; line-height: 1.85; color: var(--text-muted); }
.stats { display: flex; gap: 12px; margin: 24px 0; }
.stat { background: #ffffffd9; border: 1px solid #fff; padding: 18px 22px; border-radius: 13px; flex: 1; }
.stat span { display: block; font-size: 14px; color: var(--text-muted); }
.stat strong { font-size: 29px; font-weight: 600; line-height: 1.8; }
.member-list { display: flex; flex-direction: column; gap: 12px; }
.member-card { display: flex; align-items: center; gap: 20px; background: #fffffff0; border: 1px solid #dce5d7; border-radius: 14px; padding: 22px; }
.member-detail { flex: 1; min-width: 0; }
.member-detail strong { display: block; font-size: 16px; }
.member-detail p { font-size: 14px; color: var(--text-muted); margin: 6px 0; overflow-wrap: anywhere; }
.member-actions { display: flex; gap: 8px; }
.member-actions button { border: 1px solid #c2d2b9; border-radius: 8px; background: #fff; color: #45623e; font-size: 14px; padding: 10px 16px; min-height: 44px; }
.member-actions .approve { background: #315c3b; color: #fff; border-color: #315c3b; }
.member-card .pill { margin: 0; }
.admin-empty { padding: 56px 24px; text-align: center; color: var(--text-muted); font-size: 16px; }
.admin-refresh { border: 1px solid #c8d7c0; border-radius: 8px; background: #ffffffd9; padding: 10px 14px; color: #405d38; font-size: 14px; min-height: 44px; white-space: nowrap; }
#admin-error { margin: 16px 0; }
.member-date { font-size: 13px; color: var(--text-secondary); }
.verify-warning { font-size: 13px; color: #806731; }

@media (max-width: 1050px) {
  .auth-layout { gap: 44px; }
  .intro h1 { font-size: 31px; }
  .auth-card { padding: 30px; }
  .preview-live { display: none; }
}
@media (max-width: 800px) {
  .auth-layout { max-width: 560px; display: block; margin: 28px auto 40px; padding: 0 24px; }
  .intro { margin-bottom: 28px; }
  .intro h1 { font-size: 28px; margin: 12px 0; }
  .intro-copy, .preview-card, .intro-foot { display: none; }
  .auth-card { min-height: initial; padding: 32px; }
  .private-label { display: none; }
  .brand { padding: 25px; }
  .member-card { flex-wrap: wrap; gap: 12px; }
  .member-detail { flex-basis: 72%; }
  .member-actions { width: 100%; justify-content: flex-end; }
}
@media (max-width: 420px) {
  .brand { padding: 23px 20px; }
  .brand > a { font-size: 11px; gap: 16px; }
  .auth-layout { padding: 0 16px; margin-top: 15px; }
  .intro { padding: 0 6px; }
  .intro h1 { font-size: 26px; }
  .auth-card { padding: 26px 22px; border-radius: 20px; }
  h2 { font-size: 25px; }
  .setup-steps li { padding: 14px 12px; gap: 10px; }
  footer { padding: 20px; font-size: 11px; flex-wrap: wrap; }
  .admin-layout { padding: 0 18px; }
  .admin-intro h1 { font-size: 27px; }
  .stats { gap: 7px; }
  .stat { padding: 14px 11px; }
  .stat span { font-size: 12px; }
  .member-card { padding: 17px; }
}
