@charset "utf-8";
/* 블렌더코리아 로그인 / 회원가입 (home.css 의 --bk-* 토큰 사용) */

.bk-auth { max-width: 460px; margin: 0 auto; padding: 8px 0 24px; color: var(--bk-text, #1e293b); }
.bk-auth.wide { max-width: 520px; }
.bk-auth * { box-sizing: border-box; }
.bk-auth h1, .bk-auth h2, .bk-auth p { margin: 0; }
.bk-auth a { color: inherit; text-decoration: none; }

.bk-auth-head { text-align: center; margin: 4px 0 24px; }
.bk-auth-head .bk-auth-logo { display: inline-block; font-size: 22px; font-weight: 800; letter-spacing: -0.04em; color: var(--bk-blue, #1d4ed8); }
.bk-auth-head h1 { margin-top: 10px; font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
.bk-auth-head p { margin-top: 6px; color: var(--bk-sub, #64748b); font-size: 13px; }

/* 스텝 */
.bk-steps { display: flex; justify-content: center; gap: 6px; margin: 0 0 22px; padding: 0; list-style: none; }
.bk-steps li { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--bk-mute, #94a3b8); font-weight: 600; }
.bk-steps li b { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--bk-line, #e2e8f0); color: #fff; font-size: 11px; }
.bk-steps li.on { color: var(--bk-blue, #1d4ed8); }
.bk-steps li.on b { background: var(--bk-blue, #1d4ed8); }
.bk-steps li + li:before { content: ""; width: 18px; height: 1px; background: var(--bk-line, #e2e8f0); margin-right: 2px; }

/* 입력 */
.bk-field { margin-bottom: 16px; }
.bk-field > label, .bk-field > .lbl { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--bk-text, #1e293b); }
.bk-field .req { color: var(--bk-orange, #ea580c); margin-left: 2px; }
.bk-field .hint { margin-top: 6px; font-size: 12px; color: var(--bk-mute, #94a3b8); }
.bk-input, .bk-auth input[type=text], .bk-auth input[type=email], .bk-auth input[type=password], .bk-auth input[type=tel] {
    display: block; width: 100%; height: 46px; padding: 0 14px; font: inherit; font-size: 14px; color: var(--bk-text, #1e293b);
    background: #fff; border: 1px solid var(--bk-line, #e2e8f0); border-radius: 8px; outline: none; box-shadow: none; transition: border-color .15s, box-shadow .15s;
}
.bk-auth input:focus { border-color: var(--bk-blue, #1d4ed8) !important; box-shadow: 0 0 0 3px rgba(29,78,216,.12) !important; }
.bk-auth input[readonly] { background: var(--bk-bg, #f4f6fa); color: var(--bk-sub, #64748b); }
.bk-auth input::placeholder { color: var(--bk-mute, #94a3b8); }
.bk-row { display: flex; gap: 8px; }
.bk-row > .bk-input, .bk-row > input { flex: 1; min-width: 0; }

/* 버튼 */
.ba-btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 18px; border: 1px solid var(--bk-line, #e2e8f0);
    border-radius: 8px; background: #fff; color: var(--bk-text, #1e293b); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.ba-btn:hover { background: var(--bk-bg, #f4f6fa); }
.ba-btn.primary { width: 100%; background: var(--bk-blue, #1d4ed8); border-color: var(--bk-blue, #1d4ed8); color: #fff; height: 50px; font-size: 15px; }
.ba-btn.primary:hover { background: #1e40af; }
.ba-btn.soft { background: var(--bk-blue-soft, #eff6ff); border-color: var(--bk-blue-soft, #eff6ff); color: var(--bk-blue, #1d4ed8); }
.ba-btn.soft:hover { background: #dbeafe; }
.ba-btn:disabled { opacity: .5; cursor: not-allowed; }
.ba-btn-row { display: flex; gap: 8px; margin-top: 22px; }
.ba-btn-row .ba-btn { flex: 1; width: auto; }
.ba-btn-row .ba-btn.primary { flex: 2; }

/* 성별 */
.bk-seg { display: flex; gap: 8px; }
.bk-seg label { flex: 1; margin: 0; cursor: pointer; }
.bk-seg input { position: absolute; opacity: 0; width: 0; height: 0; }
.bk-seg span { display: flex; align-items: center; justify-content: center; height: 46px; border: 1px solid var(--bk-line, #e2e8f0); border-radius: 8px; background: #fff; font-size: 14px; font-weight: 600; color: var(--bk-sub, #64748b); }
.bk-seg input:checked + span { border-color: var(--bk-blue, #1d4ed8); background: var(--bk-blue-soft, #eff6ff); color: var(--bk-blue, #1d4ed8); }
.bk-seg input:focus-visible + span { box-shadow: 0 0 0 3px rgba(29,78,216,.18); }

/* 본인인증 박스 */
.bk-cert { margin: 4px 0 20px; padding: 16px; border: 1px solid var(--bk-line, #e2e8f0); border-radius: 10px; background: var(--bk-bg, #f4f6fa); }
.bk-cert-tit { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; }
.bk-cert-tit .badge { padding: 2px 8px; border-radius: 99px; background: var(--bk-orange, #ea580c); color: #fff; font-size: 11px; font-weight: 700; }
.bk-cert-tit .badge.test { background: var(--bk-mute, #94a3b8); }
.bk-cert-desc { margin: 6px 0 12px; font-size: 12px; color: var(--bk-sub, #64748b); }
.bk-cert-state { margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--bk-mute, #94a3b8); }
.bk-cert.done { background: #f0fdf4; border-color: #bbf7d0; }
.bk-cert.done .bk-cert-state { color: var(--bk-green, #16a34a); }
.bk-cert.done .badge { background: var(--bk-green, #16a34a); }
.bk-cert-test { margin-top: 10px; padding: 8px 10px; border-radius: 6px; background: #fff7ed; color: #9a3412; font-size: 12px; }

/* 구분선 / 링크 */
.bk-divider { display: flex; align-items: center; gap: 10px; margin: 22px 0; color: var(--bk-mute, #94a3b8); font-size: 12px; }
.bk-divider:before, .bk-divider:after { content: ""; flex: 1; height: 1px; background: var(--bk-line, #e2e8f0); }
.bk-links { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 0; font-size: 13px; color: var(--bk-sub, #64748b); }
.bk-links a:hover { color: var(--bk-blue, #1d4ed8); text-decoration: underline; }
.bk-auto { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.bk-auto input { width: 16px; height: 16px; margin: 0; accent-color: var(--bk-blue, #1d4ed8); }
.bk-switch { margin-top: 22px; padding: 16px; text-align: center; border: 1px solid var(--bk-line, #e2e8f0); border-radius: 10px; font-size: 13px; color: var(--bk-sub, #64748b); }
.bk-switch a { margin-left: 8px; color: var(--bk-blue, #1d4ed8); font-weight: 800; }

/* 약관 */
.bk-agree-all { display: flex; align-items: center; gap: 10px; padding: 16px; margin-bottom: 12px; border: 1px solid var(--bk-blue, #1d4ed8); border-radius: 10px; background: var(--bk-blue-soft, #eff6ff); font-weight: 800; cursor: pointer; }
.bk-agree-all input, .bk-term-head input { width: 18px; height: 18px; margin: 0; accent-color: var(--bk-blue, #1d4ed8); flex: none; }
.bk-term { margin-bottom: 12px; border: 1px solid var(--bk-line, #e2e8f0); border-radius: 10px; overflow: hidden; background: #fff; }
.bk-term-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; font-size: 13px; font-weight: 700; cursor: pointer; }
.bk-term-head em { font-style: normal; color: var(--bk-orange, #ea580c); font-size: 12px; }
.bk-term-body { max-height: 140px; overflow: auto; padding: 12px 16px; border-top: 1px solid var(--bk-line, #e2e8f0); background: var(--bk-bg, #f4f6fa); font-size: 12px; line-height: 1.7; color: var(--bk-sub, #64748b); white-space: pre-wrap; }
.bk-term-body table { width: 100%; border-collapse: collapse; white-space: normal; }
.bk-term-body th, .bk-term-body td { padding: 6px; border: 1px solid var(--bk-line, #e2e8f0); text-align: left; font-weight: 500; }
.bk-term-body th { background: #fff; }

/* 완료 */
.bk-done { text-align: center; padding: 20px 0; }
.bk-done .ico { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--bk-blue-soft, #eff6ff); color: var(--bk-blue, #1d4ed8); font-size: 28px; }
.bk-done h2 { margin: 16px 0 8px; font-size: 20px; font-weight: 800; }
.bk-done p { color: var(--bk-sub, #64748b); line-height: 1.7; }

/* 비회원 주문 (쇼핑몰 로그인 하위) */
.bk-guest { margin-top: 24px; padding: 18px; border: 1px solid var(--bk-line, #e2e8f0); border-radius: 10px; }
.bk-guest h2 { font-size: 15px; font-weight: 800; margin-bottom: 8px; }

/* 소셜 로그인 영역 정리 */
.bk-auth #sns_login, .bk-auth .sns-wrap { margin-top: 18px; }

@media (max-width: 520px) {
    .bk-auth { padding-bottom: 12px; }
    .bk-row.stack { flex-direction: column; }
    .bk-row.stack .ba-btn { width: 100%; }
}

/* =========================================================
   기타 회원 페이지 (비밀번호 찾기/재설정/확인, 쪽지, 포인트, 스크랩, 프로필, 폼메일)
   ========================================================= */
#find_info, #pw_reset, #mb_confirm, #pw_confirm, #member_cert_refresh { max-width: 460px; margin: 0 auto; padding: 8px 0 24px; color: var(--bk-text, #1e293b); font-size: 13px; }
#find_info.cert { max-width: 920px; display: flex; gap: 16px; flex-wrap: wrap; }
#find_info.cert .new_win_con { float: none; width: auto; flex: 1 1 360px; margin: 0 !important; }
#find_info .new_win_con, #pw_reset .new_win_con { padding: 22px; background: #fff; border: 1px solid var(--bk-line, #e2e8f0); border-radius: 12px; }
#find_info h3 { display: block; margin: 0 0 14px; text-align: left; font-size: 16px; font-weight: 800; }
#find_info p, #pw_reset p, #mb_confirm p, #pw_confirm p { padding: 0; border: 0; margin: 0 0 14px; font-size: 13px; line-height: 1.7; color: var(--bk-sub, #64748b); }
#mb_confirm h1, #pw_confirm h1 { position: static; width: auto; height: auto; margin: 0 0 14px; font-size: 20px; font-weight: 800; letter-spacing: -0.03em; overflow: visible; }
#mb_confirm p strong, #pw_confirm p strong { display: block; margin: 0 0 4px; color: var(--bk-text, #1e293b); font-size: 15px; font-weight: 800; }
#mb_confirm fieldset, #pw_confirm fieldset { padding: 0; border: 0; text-align: left; }
#mb_confirm .confirm_id { font-size: 12px; color: var(--bk-mute, #94a3b8); }
#mb_confirm_id { display: block; margin: 2px 0 12px; font-weight: 800; word-break: break-all; }
#pw_reset .reset_id { display: block; margin: 8px 0 12px; font-weight: 800; }

#find_info .frm_input, #pw_reset .frm_input, #mb_confirm .frm_input, #pw_confirm .frm_input,
.new_win .frm_input, .new_win select {
    width: 100%; height: 46px; padding: 0 14px; font-size: 14px; background: #fff !important; color: var(--bk-text, #1e293b);
    border: 1px solid var(--bk-line, #e2e8f0); border-radius: 8px; box-shadow: none;
}
.new_win textarea { width: 100%; min-height: 110px; padding: 12px 14px; font-size: 14px; border: 1px solid var(--bk-line, #e2e8f0); border-radius: 8px; box-shadow: none; }
#find_info .frm_input:focus, #pw_reset .frm_input:focus, #mb_confirm .frm_input:focus, #pw_confirm .frm_input:focus,
.new_win .frm_input:focus, .new_win textarea:focus { border-color: var(--bk-blue, #1d4ed8) !important; box-shadow: 0 0 0 3px rgba(29,78,216,.12) !important; }
#find_info #mb_email { margin: 4px 0 12px; }
#pw_reset .frm_input { margin: 10px 0 0; }

#find_info .btn_submit, #pw_reset .btn_submit, #mb_confirm .btn_submit, #pw_confirm .btn_submit,
.new_win .btn_submit, #member_cert_refresh .btn_submit {
    display: block; width: 100%; height: 48px; margin-top: 10px; padding: 0 16px; border: 0; border-radius: 8px;
    background: var(--bk-blue, #1d4ed8); color: #fff; font-size: 14px; font-weight: 700; line-height: 48px; text-align: center; cursor: pointer;
}
#find_info .btn_submit:hover, #pw_reset .btn_submit:hover, #mb_confirm .btn_submit:hover, #pw_confirm .btn_submit:hover, .new_win .btn_submit:hover { background: #1e40af; }
#find_info .find_btn .btn_submit { width: 100%; margin-bottom: 8px; }

/* 팝업(쪽지 / 스크랩 / 프로필 / 폼메일 / 포인트) 공통 */
#memo_list, #memo_write, #memo_view, #scrap, #scrap_do, #point, #profile, #formmail { color: var(--bk-text, #1e293b); font-size: 13px; }
.new_win #win_title, .new_win h1#win_title { padding: 16px 20px; margin: 0; border: 0; border-bottom: 2px solid var(--bk-blue, #1d4ed8); background: #fff; color: var(--bk-text, #1e293b); font-size: 16px; font-weight: 800; letter-spacing: -0.03em; }
.new_win .win_btn { padding: 14px 20px; }
.new_win .btn_close { border-radius: 8px; background: #fff; border: 1px solid var(--bk-line, #e2e8f0); color: var(--bk-text, #1e293b); }

/* 쪽지 */
.memo_list { border-top: 0; }
.memo_list li { padding: 14px 20px; border-bottom: 1px solid var(--bk-line, #e2e8f0); }
.memo_list li.read { background: var(--bk-bg, #f4f6fa); }
.memo_list .no_read { background: var(--bk-orange, #ea580c); border-color: #fff; }
#memo_list .memo_datetime { color: var(--bk-mute, #94a3b8); }
#memo_view_contents { border-color: var(--bk-line, #e2e8f0); }
#memo_view_ul { background: var(--bk-bg, #f4f6fa); }
.memo_from { border-bottom-color: var(--bk-line, #e2e8f0); }
.memo_btn a { color: var(--bk-sub, #64748b); }
.reply_btn { height: 44px; line-height: 44px; border-radius: 8px; background: var(--bk-blue, #1d4ed8); }
#memo_write .form_01 { border-top: 0; }

/* 스크랩 */
#scrap li { border-bottom-color: var(--bk-line, #e2e8f0); }
#scrap .scrap_cate { color: var(--bk-blue, #1d4ed8); background: var(--bk-blue-soft, #eff6ff); }
#scrap .scrap_del:hover { color: var(--bk-orange, #ea580c); }
#scrap_do .scrap_tit { background: var(--bk-bg, #f4f6fa); border-radius: 8px; font-size: 14px; }

/* 포인트 */
#point .point_all { border-radius: 10px; background: var(--bk-blue-soft, #eff6ff); border-color: #dbeafe; color: var(--bk-text, #1e293b); }
#point .point_all li span, #point .point_all .full_li span { color: var(--bk-blue, #1d4ed8); }
#point .point_all li:last-child, #point .point_all .full_li { border-color: #dbeafe; }
#point .point_status { background: var(--bk-text, #1e293b); }
.point_list li { border-bottom-color: var(--bk-line, #e2e8f0); }
.point_list li:first-child { border-top-color: var(--bk-line, #e2e8f0); }
.point_list .point_use { background: var(--bk-bg, #f4f6fa); }
.point_list .point_num { color: var(--bk-blue, #1d4ed8); }
.point_list .point_use .point_num { color: var(--bk-orange, #ea580c); }

/* 프로필 / 폼메일 */
#profile section { color: var(--bk-blue, #1d4ed8); border-color: var(--bk-line, #e2e8f0); border-radius: 8px; }
#formmail .frm_info { color: var(--bk-blue, #1d4ed8); }

/* 본인인증 갱신 페이지 */
#member_cert_refresh { max-width: 520px; }
#member_cert_refresh p { height: auto; line-height: 1.6; padding: 12px 14px; background: var(--bk-blue-soft, #eff6ff); color: var(--bk-blue, #1d4ed8); border-radius: 8px; font-size: 13px; font-weight: 700; text-align: left; }
#member_cert_refresh p:before { display: none; }
#member_cert_refresh section { border-color: var(--bk-line, #e2e8f0); border-radius: 10px; }
#member_cert_refresh h2 { padding: 14px 16px; border-bottom-color: var(--bk-line, #e2e8f0); font-size: 14px; }
#member_cert_refresh_chkall { background: var(--bk-blue-soft, #eff6ff); border-color: var(--bk-blue, #1d4ed8); border-radius: 10px; }
.member_cert_refresh_agree input[type="checkbox"]:checked + label span { background-color: var(--bk-blue, #1d4ed8); border-color: var(--bk-blue, #1d4ed8); }

@media (max-width: 520px) {
    #find_info .new_win_con, #pw_reset .new_win_con { padding: 16px; }
}

/* 보정: 링크형 버튼 글자색 / 표 공백 */
#bk .bk-auth a.ba-btn { color: var(--bk-text, #1e293b); line-height: 1.2; text-decoration: none; }
#bk .bk-auth a.ba-btn.primary { color: #fff; }
#bk .bk-auth button.ba-btn.primary { color: #fff; }
.bk-term-body.has-table { white-space: normal; }
.bk-term-body table { margin: 0; }
.bk-term-body caption { display: none; }

/* =========================================================
   v3 리디자인: 카드형 레이아웃 / 단계 표시 / 약관 / 체크박스
   (이전 규칙 위에 덮어쓰기)
   ========================================================= */
.bk-auth { max-width: 480px; margin: 28px auto 56px; padding: 40px 40px 32px; background: #fff; border: 1px solid #e2e8f0; border-radius: 24px; box-shadow: 0 24px 56px rgba(15,23,42,.08); }
.bk-auth.wide { max-width: 560px; }
.bk-auth-head { margin: 0 0 22px; text-align: center; }
.bk-auth-head h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -0.04em; color: #0f172a; }
.bk-auth-head p { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: #64748b; }

/* 단계 표시 */
.bk-steps { display: flex; justify-content: center; align-items: center; gap: 0; margin: 0 0 26px; padding: 0; list-style: none; }
.bk-steps li { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; flex: 1; max-width: 110px; font-size: 12px; font-weight: 700; color: #94a3b8; }
.bk-steps li + li:before { content: ""; position: absolute; left: -50%; right: 50%; top: 13px; height: 2px; margin: 0; width: auto; background: #e2e8f0; }
.bk-steps li b { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #e2e8f0; color: #fff; font-size: 12px; font-weight: 800; }
.bk-steps li.on { color: #1d4ed8; }
.bk-steps li.on b { background: #1d4ed8; box-shadow: 0 0 0 5px rgba(29,78,216,.14); }
.bk-steps li.done b, .bk-steps li.on b { background: #1d4ed8; }
.bk-steps li.done:before, .bk-steps li.on:before { background: #1d4ed8; }
.bk-steps li.done { color: #1d4ed8; }

/* 커스텀 체크박스 */
.ba-chk { flex: none; position: relative; display: inline-block; width: 22px; height: 22px; border: 1.5px solid #cbd5e1; border-radius: 7px; background: #fff; transition: background .15s, border-color .15s; }
.ba-chk:after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); opacity: 0; }
input:checked + .ba-chk { background: #1d4ed8; border-color: #1d4ed8; }
input:checked + .ba-chk:after { opacity: 1; }
input:focus-visible + .ba-chk { box-shadow: 0 0 0 4px rgba(29,78,216,.18); }
.ba-agree-all input, .ba-term-head input { position: absolute; opacity: 0; width: 0; height: 0; }

/* 전체 동의 */
.ba-agree-all { position: relative; display: grid; grid-template-columns: 22px 1fr; column-gap: 12px; row-gap: 2px; align-items: center; margin: 0 0 14px; padding: 18px 20px; border: 1.5px solid #1d4ed8; border-radius: 16px; background: #eff6ff; cursor: pointer; margin-top:20px;}
.ba-agree-all strong { font-size: 16px; font-weight: 800; color: #0f172a; }
.ba-agree-all small { grid-column: 2; font-size: 12px; color: #64748b; }

/* 약관 목록 */
.ba-terms { margin: 0 0 22px; border: 1px solid #e2e8f0; border-radius: 16px; overflow: hidden; }
.ba-term + .ba-term { border-top: 1px solid #e2e8f0; }
.ba-term-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; }
.ba-term-head label { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; margin: 0; cursor: pointer; }
.ba-term-name { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #0f172a; }
.ba-term-name em { padding: 2px 8px; border-radius: 6px; background: #fff7ed; color: #ea580c; font-size: 11px; font-style: normal; font-weight: 800; }
.ba-term-toggle { display: inline-flex; align-items: center; gap: 4px; flex: none; height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: #f1f5f9; color: #64748b; font-size: 12px; font-weight: 700; cursor: pointer; }
.ba-term-toggle:hover { background: #e2e8f0; color: #0f172a; }
.ba-term-toggle i { transition: transform .2s; }
.ba-term-toggle.is-open i { transform: rotate(180deg); }
.ba-term-body { max-height: 200px; overflow: auto; padding: 14px 18px; border-top: 1px solid #f1f5f9; background: #f8fafc; font-size: 12.5px; line-height: 1.75; color: #64748b; white-space: pre-wrap; word-break: break-all; }
.ba-term-body[hidden] { display: none; }
.ba-term-body.is-table { white-space: normal; }
.ba-term-body table { width: 100%; border-collapse: collapse; background: #fff; }
.ba-term-body th, .ba-term-body td { padding: 8px 10px; border: 1px solid #e2e8f0; text-align: left; font-size: 12px; vertical-align: top; }
.ba-term-body th { background: #f1f5f9; color: #475569; font-weight: 700; white-space: nowrap; }

/* 하단 링크 */
.ba-switch { margin: 20px 0 0; text-align: center; font-size: 13px; color: #64748b; }
.ba-switch a { margin-left: 6px; color: #1d4ed8; font-weight: 800; }
.bk-switch { margin-top: 20px; padding: 0; border: 0; background: none; text-align: center; font-size: 13px; }
.bk-switch a { margin-left: 6px; }

/* 버튼 행 */
.ba-btn-row { display: flex; gap: 10px; margin-top: 4px; }
.ba-btn-row .ba-btn { flex: 1; width: auto; }
.ba-btn-row .ba-btn.primary { flex: 2; }
.ba-btn { color: #0f172a; }
.ba-btn.primary { color: #fff; }
a.ba-btn { text-decoration: none; }

/* 폼 입력 다듬기 */
.bk-field > label, .bk-field > .lbl { font-size: 13px; color: #334155; }
.bk-input, .bk-auth input[type=text], .bk-auth input[type=email], .bk-auth input[type=password], .bk-auth input[type=tel] { height: 48px; border-radius: 12px; background: #f8fafc; border-color: #e2e8f0; }
.bk-auth input:focus { background: #fff; }
.bk-seg span { height: 48px; border-radius: 12px; }
.bk-field .hint { line-height: 1.5; }

@media (max-width: 560px) {
    .bk-auth, .bk-auth.wide { margin: 12px 0 32px; padding: 28px 20px 24px; border-radius: 20px; }
    .bk-auth-head h1 { font-size: 22px; }
    .ba-agree-all { padding: 16px; }
    .ba-term-head { padding: 14px; }
}

/* auth-captcha-v4: 가입/로그인 화면에서도 board.css 없이 동작하도록 자동등록방지 스타일 포함 */
/* =========================================================
   자동등록방지 (KCAPTCHA / reCAPTCHA) - 가입, 글쓰기, 댓글 공통
   ========================================================= */
#bk fieldset#captcha { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "img key rel mp3" "info info info info"; align-items: center; gap: 10px; width: 100%; margin: 0; padding: 14px; border: 1px solid #e2e8f0; border-radius: 14px; background: #f8fafc; position: relative; }
#bk fieldset#captcha legend { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
#bk #captcha #captcha_img { grid-area: img; display: block; width: auto; max-width: 100%; height: 48px; margin: 0; padding: 0; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; object-fit: contain; }
#bk #captcha #captcha_key { grid-area: key; width: 100%; min-width: 0; height: 48px; margin: 0; padding: 0 12px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; color: #0f172a; font-size: 20px; font-weight: 800; letter-spacing: .3em; text-align: center; box-shadow: none; }
#bk #captcha #captcha_key:focus { border-color: #1d4ed8 !important; box-shadow: 0 0 0 3px rgba(29,78,216,.12) !important; }
#bk #captcha #captcha_reload, #bk #captcha #captcha_mp3 { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; color: #475569; font-size: 0; line-height: 1; text-indent: 0; cursor: pointer; overflow: hidden; transition: border-color .15s, color .15s, background .15s; }
#bk #captcha #captcha_reload { grid-area: rel; }
#bk #captcha #captcha_mp3 { grid-area: mp3; }
#bk #captcha #captcha_reload:hover, #bk #captcha #captcha_mp3:hover { border-color: #1d4ed8; color: #1d4ed8; background: #eff6ff; }
#bk #captcha #captcha_reload span, #bk #captcha #captcha_mp3 span { display: inline-block !important; width: auto; height: auto; font-size: 17px; }
#bk #captcha #captcha_reload span:before { font-family: FontAwesome; content: "\f021"; }
#bk #captcha #captcha_mp3 span:before { font-family: FontAwesome; content: "\f028"; }
#bk #captcha #captcha_info { grid-area: info; display: block; margin: 0; font-size: 12px; letter-spacing: 0; color: #94a3b8; }
#bk #captcha audio { grid-column: 1 / -1; width: 100%; height: 36px; margin: 0; }

/* reCAPTCHA */
#bk fieldset#captcha.recaptcha { display: flex; justify-content: center; padding: 14px 0; background: transparent; border: 0; }
#bk .g-recaptcha { display: flex; justify-content: center; }

@media (max-width: 480px) {
    #bk fieldset#captcha { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "img rel" "key key" "info info"; padding: 12px; }
    #bk #captcha #captcha_mp3 { display: none; }
    #bk #captcha #captcha_img, #bk #captcha.m_captcha #captcha_img { width: 100%; height: auto; max-height: 64px; margin: 0; }
    #bk #captcha.m_captcha #captcha_key { width: 100%; margin: 0; height: 48px; }
    #bk #captcha.m_captcha #captcha_reload { position: static; margin: 0; width: 44px; height: 44px; background: #fff; }
    #bk .g-recaptcha { transform: scale(.9); transform-origin: center top; }
}

/* 가입 폼 안의 자동등록방지 */
.bk-auth .is_captcha_use > .lbl { display: flex; align-items: center; gap: 6px; }
.bk-auth .is_captcha_use > .lbl:after { content: "로봇이 아님을 확인해 주세요"; margin-left: auto; font-size: 11px; font-weight: 500; color: #94a3b8; }
.bk-auth #captcha #captcha_key { background: #fff; }

/* 아이디/비밀번호 찾기, 비밀번호 재설정 */
.bk-find .bk-auth-head { margin-bottom: 26px; }
.bk-find-ico { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin: 0 0 14px; border-radius: 20px; background: #eff6ff; color: #1d4ed8; font-size: 28px; }
.bk-find .ba-btn.primary { margin-top: 6px; width: 100%; }
.bk-find .bk-field:last-of-type { margin-bottom: 14px; }
.bk-find-cert { display: grid; gap: 10px; }
.bk-find-cert .ba-btn { width: 100%; gap: 8px; }
.bk-find .bk-divider { margin: 24px 0 16px; }
.bk-find-links { justify-content: space-between; margin-top: 26px; padding-top: 18px; border-top: 1px solid #f1f5f9; font-size: 13px; }
.bk-find-links a { color: #64748b; font-weight: 600; }
.bk-find-links a:hover { color: #1d4ed8; }
.bk-find-id { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 18px; padding: 14px 16px; border-radius: 12px; background: #f8fafc; border: 1px solid #e2e8f0; font-size: 13px; color: #64748b; }
.bk-find-id strong { color: #0f172a; font-size: 15px; font-weight: 800; word-break: break-all; }

/* 예전 #find_info / #pw_reset 규칙(폭 460, 여백 0)이 카드 스타일을 덮지 않도록 */
#find_info.bk-auth, #pw_reset.bk-auth { max-width: 640px; margin: 0 auto; padding: 56px 64px 44px; font-size: 15px; display: block; }
#find_info.bk-auth .bk-auth-head p, #pw_reset.bk-auth .bk-auth-head p { margin: 8px 0 0; padding: 0; font-size: 14px; line-height: 1.6; color: #64748b; }
@media (max-width: 560px) {
    #find_info.bk-auth, #pw_reset.bk-auth { margin: 0; padding: 32px 22px 28px; }
}

/* 찾기/재설정 화면: 헤더·푸터 없이 단독 화면 */
.bk-find-logo { display: block; margin: 0 0 22px; text-align: center; font-size: 20px; font-weight: 800; letter-spacing: -0.04em; color: #1d4ed8; }
.bk-find .bk-auth-head h1 { font-size: 28px; }
.bk-find .bk-auth-head p { font-size: 15px; }
#find_info.bk-auth .bk-input, #pw_reset.bk-auth .bk-input { height: 52px; font-size: 15px; }
#find_info.bk-auth .ba-btn.primary, #pw_reset.bk-auth .ba-btn.primary { height: 54px; font-size: 16px; }
@media (max-width: 560px) { .bk-find .bk-auth-head h1 { font-size: 22px; } }

/* 약관: 등록된 콘텐츠(HTML) 표시 + 전문 보기 링크 */
.ba-term-ctl { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.ba-term-full { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 12px; border-radius: 999px; background: #eff6ff; color: #1d4ed8; font-size: 12px; font-weight: 700; text-decoration: none; }
.ba-term-full:hover { background: #dbeafe; }
.ba-term-full i { font-size: 10px; }
.ba-term-body.is-html { white-space: normal; }
.ba-term-body.is-html h1, .ba-term-body.is-html h2, .ba-term-body.is-html h3, .ba-term-body.is-html h4 { margin: 14px 0 6px; font-size: 13px; font-weight: 800; color: #334155; }
.ba-term-body.is-html p { margin: 0 0 8px; }
.ba-term-body.is-html ol, .ba-term-body.is-html ul { margin: 0 0 8px; padding-left: 20px; }
.ba-term-body.is-html img { max-width: 100%; height: auto; }
.ba-term-body.is-html table { margin: 6px 0; }
