/* ============================================================
   회원 화면 — 로그인 · 가입 · 찾기 · 재설정 · 회원정보수정 · 회원 찾기 · 임원진 일정
   공통 부품(.form-card · .form-grid · .btn · .lock-box …)은 client.css 에 있다.
   여기에는 이 화면들에만 있는 조각만 둔다. 색은 토큰만 쓴다.
   ============================================================ */

/* 저자가 display 를 준 요소는 hidden 속성이 지므로 다시 적는다(docs/common/frontend.md). */
.form-row[hidden],
.find-result[hidden] { display: none; }

.member-notice { margin-bottom: 24px; }
.member-notice a { color: var(--color-brand); text-decoration: underline; text-underline-offset: 3px; }
.member-saved { margin-top: 16px; }

/* 자동 가입 프로그램만 채우는 칸. 화면과 낭독기 모두에서 뺀다. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── 로그인 ── */
.member-box { max-width: 460px; margin: 0 auto; }
.member-box__lead { margin-bottom: 20px; text-align: center; font-size: var(--fs-small); color: var(--color-text-sub); }
.form-actions--stack .btn { width: 100%; }
.member-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  font-size: var(--fs-small);
}
.member-links a { color: var(--color-text-sub); transition: color 0.2s var(--ease); }
.member-links a:hover { color: var(--color-brand); text-decoration: underline; text-underline-offset: 3px; }
.member-links li + li { padding-left: 20px; border-left: 1px solid var(--color-line); }

/* ── 가입 ── */
.join-steps {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}
.join-steps__item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-text-muted);
}
.join-steps__item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-bg-soft);
  font-size: var(--fs-xs);
}
.join-steps__item.is-current { border-color: var(--color-brand); color: var(--color-brand); }
.join-steps__item.is-current span { background: var(--color-brand); color: var(--color-on-dark); }

.join-panel .sub-head__title { margin-bottom: 16px; }
.join-panel + .join-panel { margin-top: 40px; }
.join-required-note { margin: -8px 0 12px; }
.form-help.is-ok { color: var(--color-brand); font-weight: 600; }
.is-required { color: var(--color-accent-dark); }

.terms-box + .terms-box { margin-top: 20px; }
.terms-box__title { margin-bottom: 8px; font-size: var(--fs-body); font-weight: 700; }
.terms-box__body {
  max-height: 180px;
  overflow-y: auto;
  padding: 16px 18px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-bg-soft);
  font-size: var(--fs-small);
  line-height: 1.7;
  color: var(--color-text-sub);
}
.terms-box__body p + p { margin-top: 6px; }
.terms-box__agree { margin-top: 10px; }
.terms-all {
  display: flex;
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid var(--color-brand);
  border-radius: 8px;
  font-weight: 600;
  color: var(--color-brand);
}
.join-panel .form-global-error { margin-top: 16px; }
.form-card .form-global-error { margin-top: 20px; }
.form-row .check + .check { margin-top: 6px; }

.member-done { padding: 24px 0; text-align: center; }
.member-done__title { margin-top: 8px; font-size: var(--fs-h2); line-height: 1.35; }
.member-done__text { max-width: 560px; margin: 16px auto 0; font-size: var(--fs-body); line-height: 1.8; color: var(--color-text-sub); }

/* ── 찾기 ── */
.find-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.find-card__title { font-size: var(--fs-h3); font-weight: 700; }
.find-card__lead { margin: 6px 0 20px; font-size: var(--fs-small); color: var(--color-text-sub); }
.find-result {
  margin-top: 20px;
  padding: 16px 18px;
  border-left: 3px solid var(--color-brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--color-brand-soft);
  font-size: var(--fs-small);
  line-height: 1.7;
  color: var(--color-text);
  word-break: break-all;
}
.find-result strong { font-size: var(--fs-body); color: var(--color-brand); }
.find-result a { color: var(--color-brand); text-decoration: underline; text-underline-offset: 3px; }

/* ── 이메일 인증 — 가입 완료·인증 결과·로그인 화면의 재발송 ── */
.verify-resend { margin-top: 32px; }
.verify-resend .find-card__title { margin-bottom: 16px; }
.login-verify { margin-top: 16px; }
.login-verify[hidden] { display: none; }

/* ── 회원정보수정 ── */
.profile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-line);
}
.profile-head__name { font-size: 22px; font-weight: 700; }
.profile-head__id { margin-left: 6px; font-size: var(--fs-small); font-weight: 400; color: var(--color-text-muted); }
.profile-head__meta { margin-top: 4px; font-size: var(--fs-xs); color: var(--color-text-muted); }
.profile-section + .profile-section { margin-top: 48px; }
.profile-section .form-card + .form-card { margin-top: 16px; }
.profile-section .sub-head__title { margin-bottom: 16px; }

/* ── 회원 찾기 ── */
.member-search { justify-content: center; max-width: 640px; margin-left: auto; margin-right: auto; }
.member-search .select { flex: none; width: 120px; }
.member-search .input { flex: 1; width: auto; min-width: 0; }
.member-search .btn { flex: none; min-height: 42px; white-space: nowrap; }
.member-search__note { margin-bottom: 24px; text-align: center; }

/* ── 임원진 일정 ── */
.cal-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}
.cal-head__title { min-width: 150px; text-align: center; font-size: 24px; font-weight: 700; }
.cal-head__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-line-strong);
  border-radius: 50%;
  font-size: 22px;
  color: var(--color-text-sub);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background-color 0.2s var(--ease);
}
/* 달력 넘기기 단추 — 연구회 일정(calendar.css 의 .sched-month__step)과 같은 몸짓 */
.cal-head__step:hover { border-color: var(--color-brand); background: var(--color-brand); color: var(--color-on-dark); }
.cal-head__today { min-height: 36px; padding: 0 14px; }

.cal {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  border-top: 2px solid var(--color-brand);
  table-layout: fixed;
}
.cal th {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-line);
  background: var(--color-bg-soft);
  font-size: var(--fs-small);
  font-weight: 600;
}
.cal__wd--0 { color: var(--color-danger); }
.cal__wd--6 { color: var(--color-brand); }
.cal__day {
  height: 108px;
  padding: 6px;
  border: 1px solid var(--color-line);
  vertical-align: top;
}
.cal__num { display: block; margin-bottom: 4px; font-size: var(--fs-xs); font-weight: 600; color: var(--color-text-sub); }
.cal__day--0 .cal__num { color: var(--color-danger); }
.cal__day--6 .cal__num { color: var(--color-brand); }
.cal__day.is-other { background: var(--color-bg-soft); }
.cal__day.is-other .cal__num { opacity: 0.45; }
.cal__day.is-today .cal__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-on-dark);
}
.cal__item {
  display: block;
  margin-top: 3px;
  padding: 2px 6px;
  border-left: 2px solid var(--color-accent);
  border-radius: 0 4px 4px 0;
  background: var(--color-brand-soft);
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-brand);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal__item:hover { background: var(--color-brand); color: var(--color-on-dark); }

.cal-list-title { margin: 40px 0 16px; }
.cal-list { border-top: 2px solid var(--color-brand); }
.cal-list__item { padding: 18px 4px; border-bottom: 1px solid var(--color-line); scroll-margin-top: calc(var(--header-h) + 16px); }
.cal-list__item:target { background: var(--color-bg-soft); }
.cal-list__when { font-size: var(--fs-xs); font-weight: 600; color: var(--color-accent-dark); }
.cal-list__title { margin-top: 4px; font-size: var(--fs-body); font-weight: 700; }
.cal-list__place { margin-top: 4px; font-size: var(--fs-small); color: var(--color-text-sub); }
.cal-list__desc { margin-top: 8px; font-size: var(--fs-small); line-height: 1.7; color: var(--color-text-sub); }

@media (max-width: 767px) {
  /* 세 칸에 번호와 이름을 나란히 두면 390 폭에서 'Confirm' 이 글자 단위로 끊긴다(body 의 overflow-wrap: anywhere) — 번호 아래로 내린다 */
  .join-steps__item { flex-direction: column; gap: 6px; padding: 12px 6px; text-align: center; overflow-wrap: normal; }
  .find-grid { grid-template-columns: 1fr; }
  .profile-head { align-items: flex-start; }
  .member-search .select { width: 96px; }
  .cal__day { height: 84px; }
}

/* 메일 수신거부 (docs/mail.md "수신거부") */
.unsubscribe-note { margin-top: 20px; text-align: center; }
.form-card .form-global-error + .form-grid { margin-top: 16px; }
