.mem_title { text-align: center; margin: 50px auto 30px; }
.mem_title h2 { font-size: 32px; font-weight: 800; color: var(--text-strong); margin-bottom: 14px; }
.mem_title p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

.login_wrap { display: flex; justify-content: center; padding-bottom: 80px; }
.login_box {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 36px 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.field_row { margin-bottom: 14px; position: relative; }
.field_row input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}
.field_row input:focus { border-color: var(--accent2); }

.pw_row input { padding-right: 42px; }
.pw_row button {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
}
.capslock_warning {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 8px;
    background: #e74c3c;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 6px;
    z-index: 5;
}

.idsave_row { margin-bottom: 18px; }
.idsave_row label { font-size: 13px; color: var(--text-muted); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }

.btn_login_submit {
    display: block;
    width: 100%;
    height: 48px;
    background: var(--accent2);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    letter-spacing: .5px;
}
.btn_login_submit:hover { background: #3a86e0; }

.login_hint { margin-top: 10px; font-size: 12px; color: var(--text-light); line-height: 1.6; }
.login_hint i { vertical-align: middle; color: var(--accent2); }

.sns_area { margin-top: 24px; }
.sns_divider { position: relative; text-align: center; margin-bottom: 16px; }
.sns_divider span { display: inline-block; padding: 0 12px; background: #fff; color: var(--text-muted); font-size: 13px; position: relative; z-index: 1; }
.sns_divider:before { content: ''; position: absolute; top: 50%; left: 0; right: 0; border-top: 1px solid var(--border2); }

.btn_sns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 44px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #fafafa;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    cursor: not-allowed;
}
.btn_kakao .sns_mark { background: #FEE500; color: #000; }
.btn_naver .sns_mark { background: #03C75A; color: #fff; }
.sns_mark { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 4px; font-size: 12px; font-weight: 800; }

.bottom_link_row { display: flex; gap: 8px; margin-top: 16px; }
.bottom_link_row a {
    flex: 1;
    display: block;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
}
.btn_signup_link { background: var(--accent); color: #fff; }
.btn_signup_link:hover { opacity: .9; }
.btn_find_link { background: #f9f9f9; color: var(--text-muted); font-weight: 400; }

/* ===== 회원가입 4단계 위저드 ===== */
.signup_steps { display: flex; justify-content: center; gap: 40px; margin: 0 auto 40px; max-width: 600px; }
.step_item { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-light); }
.step_item .num {
    width: 32px; height: 32px; border-radius: 50%;
    background: #f0f0f0; color: var(--text-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700;
}
.step_item .label { font-size: 12px; }
.step_item.active { color: var(--accent2); }
.step_item.active .num { background: var(--accent2); color: #fff; }

.signup_wrap { max-width: 620px; margin: 0 auto; padding-bottom: 80px; }
.signup_panel { display: none; }
.signup_panel.active { display: block; }
/* 정보입력 단계는 기존 폼 폭을 유지 */
#panel-2, #panel-3 { max-width: 460px; margin: 0 auto; }

.agree_box { padding: 16px 18px; background: #fafafa; border-radius: 8px; margin-bottom: 24px; }
.agree_all { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--text-strong); cursor: pointer; }
.agree_all_desc { margin: 8px 0 0 24px; font-size: 12px; color: var(--text-muted); }

.agree_item { margin-bottom: 26px; }
.agree_head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin-bottom: 10px;
}
.agree_head > label { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text-dark); cursor: pointer; }
.agree_item .req { color: var(--sale); font-size: 12px; font-weight: 700; }
.agree_item .opt { color: var(--text-light); font-size: 12px; font-weight: 400; }

.btn_agree_more {
    flex: none;
    display: inline-flex; align-items: center; gap: 2px;
    padding: 5px 10px;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: #fff;
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease;
}
.btn_agree_more:hover { border-color: var(--accent2); color: var(--accent2); }
.btn_agree_more i { font-size: 13px; }

/* 약관 본문 미리보기 — 스크롤 박스 */
.agree_doc {
    height: 160px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 14px 16px;
    background: #fcfcfc;
    font-size: 12px;
    line-height: 1.7;
    color: var(--text-muted);
}
.agree_doc h1, .agree_doc h2, .agree_doc h3, .agree_doc h4 {
    font-size: 13px; font-weight: 700; color: var(--text-dark); margin: 14px 0 6px;
}
.agree_doc h1:first-child, .agree_doc h2:first-child, .agree_doc h3:first-child { margin-top: 0; }
.agree_doc p { margin: 0 0 8px; }
.agree_doc ul, .agree_doc ol { margin: 0 0 8px; padding-left: 18px; }
.agree_doc li { margin-bottom: 3px; }
.agree_doc table { width: 100%; border-collapse: collapse; margin: 8px 0; }
.agree_doc th, .agree_doc td { border: 1px solid var(--border); padding: 6px 8px; }
.agree_empty { color: var(--text-light); text-align: center; padding: 40px 0; }

/* 수집 항목 요약표 */
.agree_table { width: 100%; border-collapse: collapse; margin-bottom: 10px; font-size: 12px; }
.agree_table th, .agree_table td {
    border: 1px solid var(--border);
    padding: 8px 10px;
    text-align: left;
    line-height: 1.5;
}
.agree_table th { background: #fafafa; font-weight: 700; color: var(--text-dark); }
.agree_table td { color: var(--text-muted); }

.agree_note { font-size: 12px; color: var(--text-muted); line-height: 1.6; margin-bottom: 10px; }
.link_more {
    padding: 0; border: none; background: none;
    font-size: inherit; color: var(--accent2); font-weight: 600;
    text-decoration: underline; cursor: pointer;
}

/* ── 약관 더보기 팝업 ─────────────────────────────── */
.doc_modal { display: none; }
.doc_modal.open { display: block; }
.doc_modal_dim {
    position: fixed; left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, .55);
    z-index: 500;
}
.doc_modal_box {
    position: fixed;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 40px);
    max-width: 760px;
    max-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
    z-index: 501;
}
.doc_modal_head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}
.doc_modal_head h3 { font-size: 18px; font-weight: 800; color: var(--text-strong); }
.doc_modal_close {
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    margin-right: -8px;
    border: none; background: none;
    font-size: 24px; color: var(--text-strong);
    cursor: pointer;
}
.doc_modal_body {
    flex: auto;
    overflow-y: auto;
    padding: 22px 24px;
    font-size: 13px;
    line-height: 1.75;
    color: var(--text-dark);
}
.doc_modal_body h1, .doc_modal_body h2, .doc_modal_body h3, .doc_modal_body h4 {
    font-size: 15px; font-weight: 700; color: var(--text-strong); margin: 20px 0 8px;
}
.doc_modal_body h1:first-child, .doc_modal_body h2:first-child, .doc_modal_body h3:first-child { margin-top: 0; }
.doc_modal_body p { margin: 0 0 10px; }
.doc_modal_body ul, .doc_modal_body ol { margin: 0 0 10px; padding-left: 20px; }
.doc_modal_body li { margin-bottom: 4px; }
.doc_modal_body table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.doc_modal_body th, .doc_modal_body td { border: 1px solid var(--border); padding: 8px 10px; }
.doc_modal_body th { background: #fafafa; }
.doc_modal_foot {
    display: flex; gap: 8px; justify-content: flex-end;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
}
.doc_modal_foot button {
    height: 42px; padding: 0 20px;
    border-radius: 8px;
    font-size: 14px; font-weight: 700;
    cursor: pointer;
}
.btn_doc_agree { background: var(--accent2); border: 1px solid var(--accent2); color: #fff; }
.btn_doc_agree:hover { background: #3a86e0; }
.doc_modal_foot .btn_doc_close { background: #fff; border: 1px solid var(--border); color: var(--text-dark); }
.doc_modal_foot .btn_doc_close:hover { border-color: var(--text-dark); }

@media (max-width: 640px) {
    .agree_head { flex-wrap: wrap; }
    .doc_modal_box { max-height: calc(100vh - 40px); }
}

.btn_next {
    display: block;
    width: 100%;
    height: 48px;
    background: var(--accent2);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
}
.btn_next:hover { background: #3a86e0; }

.signup_done { text-align: center; padding: 40px 0; }
.signup_done i { font-size: 56px; color: #52c41a; margin-bottom: 16px; display: block; }
.signup_done h3 { font-size: 20px; font-weight: 800; color: var(--text-strong); margin-bottom: 8px; }
.signup_done p { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }

/* ===== 비밀번호 찾기 / 재설정 ===== */
.pw_guide {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.pw_done { display: none; text-align: center; padding: 10px 0 4px; }
.pw_done.is_open { display: block; }
.pw_done i { font-size: 46px; color: var(--accent2); display: block; margin-bottom: 14px; }
.pw_done p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-dark);
    white-space: pre-line;
    margin-bottom: 18px;
}
.pw_done .btn_to_list {
    display: inline-block;
    height: 42px; line-height: 40px; padding: 0 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px; color: var(--text-dark);
    text-decoration: none;
}
.pw_done .btn_to_list:hover { border-color: var(--text-dark); }

.pw_expired { text-align: center; padding: 10px 0; }
.pw_expired i { font-size: 46px; color: var(--sale); display: block; margin-bottom: 14px; }
.pw_expired p { font-size: 14px; line-height: 1.7; color: var(--text-dark); margin-bottom: 20px; }

.login_links { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 20px; }
.login_links a { font-size: 13px; color: var(--text-muted); }
.login_links a:hover { color: var(--accent2); }
.login_links .bar { color: var(--border); }
