/* =========================================================
   아이디 · 비밀번호 찾기 (member/searchid, searchpw, findid, findpw)
   - 로그인 화면(login.css)과 같은 톤: 골드 #9e8621, 5px 연회색 박스
   - 모든 스타일은 .mf_wrap 하위로 한정
   ========================================================= */
.mf_wrap {
    width: 480px;
    max-width: 100%;
    margin: 0 auto;
    color: #333;
    word-break: keep-all;
}
.mf_wrap .mf_box {
    padding: 0 50px 40px;
    border: 5px solid #f0f0f0;
    background: #fff;
    box-sizing: border-box;
}

/* ---------- 탭 ---------- */
.mf_wrap .mf_tabs {
    display: flex;
    margin: 0 -50px 36px;
    border-bottom: 1px solid #eee;
}
.mf_wrap .mf_tabs a {
    position: relative;
    flex: 1 1 50%;
    padding: 20px 0 18px;
    font-size: 17px;
    font-weight: 500;
    color: #999;
    text-align: center;
    transition: color .15s ease-in-out;
}
.mf_wrap .mf_tabs a:hover { color: #333; }
.mf_wrap .mf_tabs a.is_on { color: #333; }
.mf_wrap .mf_tabs a.is_on::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: #9e8621;
}

/* ---------- 안내 ---------- */
.mf_wrap .mf_guide {
    display: flex;
    gap: 10px;
    margin: 0 0 24px;
    padding: 14px 16px;
    background: #f8f5ea;
    font-size: 14px;
    line-height: 21px;
    color: #6f6a55;
}
.mf_wrap .mf_guide svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; color: #9e8621; }
.mf_wrap .mf_guide b { font-weight: 500; color: #9e8621; }

/* ---------- 입력 필드 ---------- */
.mf_wrap .mf_field {
    position: relative;
    margin-bottom: 10px;
}
.mf_wrap .mf_field .mf_ico {
    position: absolute;
    left: 18px;
    top: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    color: #b5b5b5;
    pointer-events: none;
    transition: color .15s ease-in-out;
}
.mf_wrap .mf_field input {
    display: block;
    width: 100%;
    height: 58px;
    padding: 0 18px 0 50px;
    border: 1px solid #e3e3e3;
    border-radius: 0;
    background: #fff;
    font-size: 17px;
    color: #333;
    box-sizing: border-box;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .15s ease-in-out;
}
.mf_wrap .mf_field input::placeholder { color: #aaa; font-size: 16px; }
.mf_wrap .mf_field input:focus { border-color: #9e8621; }
.mf_wrap .mf_field input:focus ~ .mf_ico { color: #9e8621; }
.mf_wrap .mf_field.is_error input { border-color: #d9534f; }
.mf_wrap .mf_field.is_error .mf_ico { color: #d9534f; }
.mf_wrap .mf_sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* 오류 메시지 */
.mf_wrap .mf_error {
    display: none;
    gap: 6px;
    margin: 4px 0 0;
    font-size: 14px;
    line-height: 20px;
    color: #d9534f;
}
.mf_wrap .mf_error.is_show { display: flex; }
.mf_wrap .mf_error svg { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 2px; }

/* ---------- 버튼 ---------- */
.mf_wrap .mf_btn {
    display: block;
    width: 100%;
    margin-top: 24px;
    padding: 0;
    border: 1px solid #9e8621;
    background: #9e8621;
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    line-height: 58px;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color .15s ease-in-out, color .15s ease-in-out;
}
.mf_wrap .mf_btn:hover { background: #8c761b; border-color: #8c761b; color: #fff; }
.mf_wrap .mf_btn:focus-visible { outline: 2px solid rgba(158,134,33,.45); outline-offset: 2px; }
.mf_wrap .mf_btn[disabled] { background: #b9a865; border-color: #b9a865; cursor: default; }
.mf_wrap .mf_btn.is_line { background: #fff; color: #9e8621; }
.mf_wrap .mf_btn.is_line:hover { background: #9e8621; color: #fff; }
.mf_wrap .mf_btn + .mf_btn { margin-top: 10px; }
.mf_wrap .mf_btn .mf_spin {
    display: none;
    width: 16px;
    height: 16px;
    margin: -3px 8px 0 0;
    border: 2px solid rgba(255,255,255,.5);
    border-top-color: #fff;
    border-radius: 50%;
    vertical-align: middle;
    animation: mf_spin .7s linear infinite;
}
.mf_wrap .mf_btn.is_loading .mf_spin { display: inline-block; }
@keyframes mf_spin { to { transform: rotate(360deg); } }

/* ---------- 결과 ---------- */
.mf_wrap .mf_result {
    padding-top: 8px;
    text-align: center;
}
.mf_wrap .mf_badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: #f8f5ea;
    color: #9e8621;
}
.mf_wrap .mf_badge svg { width: 42px; height: 42px; }
.mf_wrap .mf_badge.is_fail { background: #f5f5f5; color: #999; }
.mf_wrap .mf_badge .ck_circle { stroke-dasharray: 120; stroke-dashoffset: 120; animation: mf_draw .5s ease-out forwards; }
.mf_wrap .mf_badge .ck_mark { stroke-dasharray: 30; stroke-dashoffset: 30; animation: mf_draw .35s .4s ease-out forwards; }
@keyframes mf_draw { to { stroke-dashoffset: 0; } }
.mf_wrap .mf_result_title {
    margin: 18px 0 0;
    font-size: 22px;
    font-weight: 500;
    line-height: 30px;
    color: #333;
}
.mf_wrap .mf_result_desc {
    margin: 10px 0 0;
    font-size: 15px;
    line-height: 24px;
    color: #777;
}
.mf_wrap .mf_result_desc b { font-weight: 500; color: #9e8621; }

/* 찾은 아이디 */
.mf_wrap .mf_idbox {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
    padding: 18px 18px 18px 22px;
    border: 1px solid #e9e2c6;
    background: #fdfcf7;
    text-align: left;
}
.mf_wrap .mf_idbox .label { display: block; font-size: 13px; color: #999; }
.mf_wrap .mf_idbox .value {
    display: block;
    margin-top: 2px;
    font-size: 22px;
    font-weight: 600;
    color: #333;
    word-break: break-all;
}
.mf_wrap .mf_idbox .sub { display: block; margin-top: 2px; font-size: 13px; color: #999; }
.mf_wrap .mf_copy {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 14px;
    border: 1px solid #ccc;
    background: #fff;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all .15s ease-in-out;
}
.mf_wrap .mf_copy:hover { border-color: #9e8621; color: #9e8621; }
.mf_wrap .mf_copy.is_done { border-color: #9e8621; background: #9e8621; color: #fff; }
.mf_wrap .mf_copy svg { width: 15px; height: 15px; }

/* ---------- 하단 ---------- */
.mf_wrap .mf_links {
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    text-align: center;
    font-size: 0;
}
.mf_wrap .mf_links li {
    position: relative;
    display: inline-block;
    padding: 0 16px;
    font-size: 15px;
}
.mf_wrap .mf_links li + li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 12px;
    margin-top: -6px;
    background: #e1e1e1;
}
.mf_wrap .mf_links a { color: #777; }
.mf_wrap .mf_links a:hover { color: #9e8621; }
.mf_wrap .mf_help {
    margin: 28px 0 0;
    padding-top: 22px;
    border-top: 1px solid #eee;
    font-size: 13px;
    line-height: 20px;
    color: #999;
    text-align: center;
}

/* ---------- 모바일 ---------- */
@media (max-width: 768px) {
    .mf_wrap { width: 100%; margin-top: 25px; }
    .mf_wrap .mf_box { padding: 0 18px 26px; border-width: 3px; }
    .mf_wrap .mf_tabs { margin: 0 -18px 24px; }
    .mf_wrap .mf_tabs a { padding: 15px 0 13px; font-size: 15px; }

    .mf_wrap .mf_guide { margin-bottom: 18px; padding: 12px; font-size: 13px; line-height: 19px; }
    .mf_wrap .mf_field input { height: 52px; padding-left: 44px; font-size: 16px; }
    .mf_wrap .mf_field input::placeholder { font-size: 15px; }
    .mf_wrap .mf_field .mf_ico { left: 15px; width: 18px; height: 18px; margin-top: -9px; }
    .mf_wrap .mf_error { font-size: 13px; line-height: 18px; }

    .mf_wrap .mf_btn { margin-top: 20px; font-size: 17px; line-height: 50px; }

    .mf_wrap .mf_result { padding-top: 22px; }
    .mf_wrap .mf_badge { width: 68px; height: 68px; }
    .mf_wrap .mf_badge svg { width: 34px; height: 34px; }
    .mf_wrap .mf_result_title { margin-top: 14px; font-size: 18px; line-height: 26px; }
    .mf_wrap .mf_result_desc { font-size: 13px; line-height: 20px; }
    .mf_wrap .mf_idbox { margin-top: 18px; padding: 14px; }
    .mf_wrap .mf_idbox .value { font-size: 18px; }
    .mf_wrap .mf_copy { height: 34px; padding: 0 10px; font-size: 13px; }

    .mf_wrap .mf_links { margin-top: 20px; }
    .mf_wrap .mf_links li { padding: 0 12px; font-size: 13px; }
    .mf_wrap .mf_help { margin-top: 20px; padding-top: 16px; font-size: 12px; line-height: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .mf_wrap *, .mf_wrap *::before, .mf_wrap *::after { animation: none !important; transition: none !important; }
    .mf_wrap .mf_badge .ck_circle, .mf_wrap .mf_badge .ck_mark { stroke-dashoffset: 0; }
}

/* ---------- 버튼 효과 ---------- */
.mf_wrap .mf_btn:not(.is_line) {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ad942c 0%, #9e8621 55%, #8f7819 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 4px 12px rgba(158,134,33,.28);
    text-shadow: 0 1px 1px rgba(0,0,0,.12);
    letter-spacing: .02em;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.mf_wrap .mf_btn:not(.is_line)::before {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.28) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    pointer-events: none;
}
.mf_wrap .mf_btn:not(.is_line):hover:not([disabled]) {
    background: linear-gradient(180deg, #b69c33 0%, #a68d25 55%, #937b1b 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 8px 20px rgba(158,134,33,.36);
    transform: translateY(-1px);
}
.mf_wrap .mf_btn:not(.is_line):hover:not([disabled])::before { left: 130%; transition: left .6s ease; }
.mf_wrap .mf_btn:not(.is_line):active:not([disabled]) {
    transform: translateY(1px);
    box-shadow: inset 0 2px 4px rgba(0,0,0,.18), 0 2px 6px rgba(158,134,33,.25);
}
.mf_wrap .mf_btn:not(.is_line)[disabled] { box-shadow: none; text-shadow: none; transform: none; }
.mf_wrap .mf_btn:not(.is_line)[disabled]::before { display: none; }
.mf_wrap .mf_btn.is_line, .mf_wrap .mf_copy {
    box-shadow: 0 2px 6px rgba(0,0,0,.05);
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}
.mf_wrap .mf_btn.is_line:hover:not([disabled]), .mf_wrap .mf_copy:hover:not([disabled]) {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(158,134,33,.22);
}
.mf_wrap .mf_btn.is_line:active:not([disabled]), .mf_wrap .mf_copy:active:not([disabled]) { transform: translateY(1px); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
@media (prefers-reduced-motion: reduce) {
    .mf_wrap button, .mf_wrap a, .mf_wrap label { transition: none !important; transform: none !important; }
    .mf_wrap *::before { transition: none !important; }
}

/* ---------- 비밀번호 재설정 (member/resetpw) ---------- */
.mf_wrap .mf_account {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    padding: 14px 16px;
    background: #f8f5ea;
    font-size: 14px;
    line-height: 20px;
    color: #6f6a55;
}
.mf_wrap .mf_account svg { flex: 0 0 auto; width: 18px; height: 18px; color: #9e8621; }
.mf_wrap .mf_account b { font-weight: 600; color: #333; letter-spacing: .02em; }
.mf_wrap .mf_field.has_eye input { padding-right: 50px; }
.mf_wrap .mf_field.is_ok input { border-color: #3c9a5f; }
.mf_wrap .mf_eye {
    position: absolute;
    right: 8px;
    top: 50%;
    width: 38px;
    height: 38px;
    margin-top: -19px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #aaa;
    cursor: pointer;
}
.mf_wrap .mf_eye:hover { color: #666; }
.mf_wrap .mf_eye svg { width: 20px; height: 20px; }
.mf_wrap .mf_eye .ico_hide { display: none; }
.mf_wrap .mf_eye.is_show .ico_show { display: none; }
.mf_wrap .mf_eye.is_show .ico_hide { display: inline; }
.mf_wrap .mf_meter {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin: 0 0 8px;
}
.mf_wrap .mf_meter span { height: 4px; background: #eee; transition: background-color .2s ease; }
.mf_wrap .mf_meter.lv1 span:nth-child(1) { background: #d9534f; }
.mf_wrap .mf_meter.lv2 span:nth-child(-n+2) { background: #e0a030; }
.mf_wrap .mf_meter.lv3 span { background: #3c9a5f; }
.mf_wrap .mf_rules {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}
.mf_wrap .mf_rules li {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #aaa;
    transition: color .15s ease;
}
.mf_wrap .mf_rules li::before {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid #ccc;
    box-sizing: border-box;
    background: #fff center / 9px no-repeat;
}
.mf_wrap .mf_rules li.is_ok { color: #3c9a5f; }
.mf_wrap .mf_rules li.is_ok::before {
    border-color: #3c9a5f;
    background-color: #3c9a5f;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.mf_wrap .mf_match { min-height: 18px; margin: -4px 0 4px; font-size: 13px; color: #999; }
.mf_wrap .mf_match.is_ok { color: #3c9a5f; }
.mf_wrap .mf_match.is_bad { color: #d9534f; }
.mf_wrap .mf_box.is_plain { padding-top: 40px; }
@media (max-width: 768px) {
    .mf_wrap .mf_account { font-size: 13px; padding: 12px; }
    .mf_wrap .mf_rules li { font-size: 12px; }
    .mf_wrap .mf_box.is_plain { padding-top: 26px; }
}
