/* =========================================================
   코딩두잇 회원가입 (WEB-INF/member/memberJoin.jsp)
   공통 헤더·하단·색상 변수는 resources/main/style.css를 그대로 사용
   로그인(login.css)과 같은 입력칸·버튼 모양, 한 칸 폼(최대 640px)
   ========================================================= */
.join-page { --navy: #121a2f; background: linear-gradient(180deg, #f3f8fe 0, #fff 520px); padding: 48px 0 88px; }
.join-page .wrap { padding-left: 20px; padding-right: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.jn-head, .jn-form { max-width: 640px; margin: 0 auto; }
.jn-head h1 { font-size: 34px; font-weight: 800; letter-spacing: -1.1px; color: var(--navy); }
.jn-head p { margin-top: 8px; font-size: 16px; color: #4b5563; }
.jn-head .jn-login { margin-top: 4px; font-size: 14.5px; color: var(--muted); }
.jn-login a { margin-left: 4px; font-weight: 700; color: var(--blue); }

/* ---------- 구역 ---------- */
.jn-sec { margin-top: 20px; padding: 26px 28px 28px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 4px 16px rgba(30, 70, 140, .06); }
.jn-sec h2 { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; letter-spacing: -.4px; color: var(--navy); }
.jn-sec h2 b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blue-tint); color: var(--blue); font-size: 14px; }

/* ---------- 입력칸 ---------- */
.jn-field { margin-top: 18px; border: 0; padding: 0; min-width: 0; }
.jn-field > label, .jn-field > legend { display: block; margin-bottom: 6px; padding: 0; font-size: 14.5px; font-weight: 700; color: #374151; }
.jn-field input[type="text"], .jn-field input[type="email"], .jn-field input[type="password"] {
  width: 100%; height: 50px; padding: 0 14px; border: 1.5px solid #d5dbe4; border-radius: 12px; background: #fff;
  font: inherit; font-size: 16px; color: var(--ink); outline: 0; transition: .15s; }
.jn-field input::placeholder { color: #9aa4b5; }
.jn-field input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(17, 102, 240, .12); }
.jn-field input[readonly] { background: #f3f6fa; color: #4b5563; }
.jn-field input[aria-invalid="true"] { border-color: #d92d20; }
.jn-inline { display: flex; gap: 8px; align-items: center; }
.jn-inline > input { flex: 1; min-width: 0; }
.jn-inline .cer-no { flex-shrink: 0; }
.jn-auth { margin-top: 8px; }
.jn-timer { flex-shrink: 0; min-width: 52px; font-size: 15px; font-weight: 700; color: #d92d20; font-variant-numeric: tabular-nums; }
.jn-done { display: inline-flex; align-items: center; height: 50px; padding: 0 14px; border-radius: 12px; background: #e8f7ee; color: #0f8a4b; font-size: 15px; font-weight: 700; white-space: nowrap; }
.jn-help { margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.jn-msg { margin-top: 6px; font-size: 14px; font-weight: 600; }
.jn-msg:empty { display: none; }
.jn-msg.ok { color: #0f8a4b; }
.jn-msg.bad { color: #d92d20; }
.jn-err { margin-top: 6px; font-size: 14px; font-weight: 600; color: #d92d20; }
/* 가입 종류 탭: 일반 회원 / 멘토 회원 (2026-11-13) */
.jn-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 640px; margin: 18px auto 12px; padding: 6px; border-radius: 16px; background: #eef2f8; }
.jn-tab { display: grid; gap: 2px; padding: 12px 14px; border: 0; border-radius: 12px; background: transparent; font: inherit; text-align: center; cursor: pointer; transition: .15s; }
.jn-tab strong { font-size: 16.5px; font-weight: 800; color: #4b5563; }
.jn-tab small { font-size: 13px; color: var(--muted); }
.jn-tab:hover strong { color: var(--blue); }
.jn-tab[aria-selected="true"] { background: #fff; box-shadow: 0 2px 8px rgba(17, 24, 39, .1); }
.jn-tab[aria-selected="true"] strong { color: var(--blue); }
.jn-tab:focus-visible { outline: 3px solid rgba(17, 102, 240, .35); outline-offset: 2px; }
.jn-type-info { max-width: 640px; margin: 0 auto 18px; font-size: 14.5px; line-height: 1.6; color: #374151; }
.jn-type-info > p, .jn-type-mentor > p { text-align: center; }
.jn-type-mentor { padding: 16px 18px; border: 1px solid #cfe0ff; border-radius: 14px; background: var(--blue-tint); }
.jn-type-mentor > p { margin-top: 10px; }
.jn-type-mentor b { color: var(--blue-ink); }
.jn-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; padding: 0; }
.jn-steps li { position: relative; display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 12px; background: #fff; color: #6b7280; }
.jn-steps li b { flex-shrink: 0; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #e5e7eb; color: #4b5563; font-size: 13px; }
.jn-steps li span { display: grid; font-size: 14px; font-weight: 700; color: #374151; }
.jn-steps li small { font-size: 12px; font-weight: 500; color: var(--muted); }
.jn-steps li.on { box-shadow: 0 0 0 2px var(--blue) inset; }
.jn-steps li.on b { background: var(--blue); color: #fff; }
.jn-steps li.done b { background: #0f8a4b; color: #fff; }
@media (max-width: 560px) {
  .jn-tab strong { font-size: 15px; }
  .jn-tab small { font-size: 12px; }
  .jn-steps { grid-template-columns: 1fr; }
}

/* 비밀번호 규칙 실시간 표시 (2026-11-09) */
.jn-rule { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 6px 0 0; padding: 0; font-size: 13px; color: #8a94a6; }
.jn-rule li { display: inline-flex; align-items: center; gap: 4px; }
.jn-rule li::before { content: "○"; font-size: 11px; }
.jn-rule li.ok { color: #0f8a4b; font-weight: 600; }
.jn-rule li.ok::before { content: "✔"; }
.jn-rule li.no { color: #d92d20; font-weight: 600; }
.jn-rule li.no::before { content: "✕"; }
.jn-pw { position: relative; }
.jn-pw input { padding-right: 52px !important; }
.jn-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; color: #8a94a6; cursor: pointer; }
.jn-eye:hover { color: var(--blue); background: var(--blue-tint); }
.jn-eye-off { display: none; }
.jn-eye[aria-pressed="true"] .jn-eye-off { display: inline; }

/* 성별 */
.jn-gender { display: flex; flex-wrap: wrap; gap: 8px; }
.jn-gender legend { width: 100%; }
.jn-gender .radio { position: relative; cursor: pointer; }
.jn-gender input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.jn-gender span { display: inline-flex; align-items: center; justify-content: center; min-width: 96px; height: 44px; padding: 0 18px; border: 1.5px solid #d5dbe4; border-radius: 12px; font-size: 15px; font-weight: 600; color: #374151; transition: .15s; }
.jn-gender input:checked + span { border-color: var(--blue); background: var(--blue-tint); color: var(--blue); }
.jn-gender input:focus-visible + span { box-shadow: 0 0 0 3px rgba(17, 102, 240, .3); }

/* ---------- 약관 ---------- */
.jn-all { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: #f3f6fa; font-size: 16px; font-weight: 800; color: var(--navy); cursor: pointer; }
.jn-all input, .jn-agree-row input { flex-shrink: 0; width: 20px; height: 20px; accent-color: var(--blue); }
.jn-agree { margin-top: 10px; padding: 0 4px; }
.jn-agree-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; }
.jn-agree-row label { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #374151; cursor: pointer; }
.jn-agree-row em { font-style: normal; font-weight: 700; color: var(--blue); }
.jn-more { flex-shrink: 0; border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.jn-more:hover { color: var(--blue); }
.agree-box { max-height: 220px; overflow-y: auto; margin-top: 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe; font-size: 13.5px; line-height: 1.7; color: #4b5563; }
.agree-box[hidden] { display: none; }
.agree-box .agree-title { display: inline-block; margin-bottom: 4px; font-weight: 800; color: var(--navy); }

/* ---------- 버튼 ---------- */
.jn-btn { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--blue); color: #fff; font: inherit; font-size: 15.5px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: .15s; }
.jn-btn:hover { background: var(--blue-d); }
.jn-btn.ghost { background: #fff; border: 1.5px solid #cfd8e6; color: #374151; }
.jn-btn.ghost:hover { border-color: var(--blue); color: var(--blue); }
.jn-btn:focus-visible, .jn-eye:focus-visible, .jn-more:focus-visible { outline: 3px solid rgba(17, 102, 240, .35); outline-offset: 2px; }
.jn-act { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-top: 24px; }
.jn-act .jn-btn { height: 56px; font-size: 17px; }

/* 처리 중 */
.jn-progress { position: fixed; left: 50%; top: 50%; z-index: 95; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 12px; padding: 18px 24px; border-radius: 16px; background: #fff; box-shadow: 0 20px 50px rgba(17, 24, 39, .25); font-size: 15px; font-weight: 700; color: var(--navy); }
.jn-spin { width: 22px; height: 22px; border: 3px solid var(--blue-tint); border-top-color: var(--blue); border-radius: 50%; animation: jn-spin .8s linear infinite; }
@keyframes jn-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .jn-spin { animation-duration: 2s; } }

/* 안내 창 */
.jn-dialog { position: fixed; inset: 0; z-index: 96; display: grid; place-items: center; padding: 16px; background: rgba(17, 24, 39, .45); }
.jn-dialog[hidden] { display: none; }
.jn-dialog-box { width: min(100%, 360px); padding: 26px 22px 20px; border-radius: 18px; background: #fff; box-shadow: 0 20px 50px rgba(17, 24, 39, .25); text-align: center; }
.jn-dialog-box p { font-size: 17px; font-weight: 700; line-height: 1.5; color: var(--navy); }
.jn-dialog-box .jn-btn { width: 100%; height: 46px; margin-top: 18px; }

/* ---------- 휴대폰 ---------- */
@media (max-width: 760px) {
  .join-page { padding: 24px 0 48px; }
  .join-page .wrap { padding-left: 16px; padding-right: 16px; }
  .jn-head h1 { font-size: 26px; }
  .jn-head p { font-size: 14.5px; }
  .jn-sec { padding: 20px 16px 22px; border-radius: 18px; }
  .jn-btn { padding: 0 14px; }
  .jn-auth { flex-wrap: wrap; }
  .jn-agree-row { align-items: flex-start; }
  .jn-agree-row label { font-size: 14.5px; }
}
