@charset "utf-8";

/* ===========================
   m_member.css — 모바일 회원 페이지 전용
   로그인, 회원가입, 아이디/비밀번호 찾기
   .contents가 좌우 16px padding 제공
   =========================== */


/* ========================================
   로그인
   ======================================== */

.login_section {
    padding: 0;
}

.login_card {
    width: 100%;
}

/* 타이틀 */
.login_title {
    font-size: var(--heading-medium);
    font-weight: 700;
    color: var(--gray-95);
    text-align: center;
    margin: 0 0 24px 0;
}

/* 입력 필드 */
.login_inputs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.login_inputs input {
    width: 100%;
    height: 47px;
    padding: 0 16px;

    font-size: var(--body-small);
    font-weight: 400;
    color: var(--gray-95);
    border: 1px solid var(--gray-10);
    border-radius: var(--radius-lg);
    box-sizing: border-box;
    outline: none;
}
.login_inputs input:focus {
    border-color: var(--main);
}
.login_inputs input::placeholder {
    color: var(--gray-30);
}

/* 아이디 저장 / 찾기 */
.login_options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
}
.save_label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: var(--label-xsmall);
    font-weight: 400;
    color: var(--gray-95);
}
.save_label input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    border: 1px solid var(--gray-10);
    border-radius: 4px;
    background: #fff;
    position: relative;
    flex-shrink: 0;
}
.save_label input[type="checkbox"]:checked {
    background-color: var(--main);
    border-color: var(--main);
}
.save_label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.find_links {
    display: flex;
    align-items: center;
    gap: 4px;
}
.find_links a,
.find_links span {
    font-size: var(--body-xsmall);
    font-weight: 400;
    color: var(--gray-60);
    text-decoration: none;
}

/* 로그인 버튼 */
.login_btn {
    display: block;
    width: 100%;
    height: 47px;
    line-height: 47px;
    margin-top: 24px;
    background-color: var(--main);
    color: #fff;

    font-size: var(--body-small);
    font-weight: 500;
    text-align: center;
    border: none;
    border-radius: var(--radius-lg);
    box-sizing: border-box;
    cursor: pointer;
}
.login_btn:active {
    background-color: var(--main-hover);
}

/* SNS 로그인 */
.sns_divider {
    display: flex;
    align-items: center;
    margin: 24px 0 20px;
    gap: 12px;
}
.sns_divider .line {
    flex: 1;
    height: 1px;
    background-color: var(--gray-10);
}
.sns_divider span:not(.line) {
    font-size: var(--label-xsmall);
    font-weight: 400;
    color: var(--gray-40);
    white-space: nowrap;
}
.sns_icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.sns_icons a {
    display: block;
    text-decoration: none;
    line-height: 0;
    cursor: pointer;
}
.sns_icons .sns_naver {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sns_icons svg {
    width: 40px;
    height: 40px;
}

/* 회원가입 버튼 */
.join_btn {
    display: block;
    width: 100%;
    height: 47px;
    line-height: 47px;
    margin-top: 20px;
    background-color: #fff;
    color: var(--gray-80);

    font-size: var(--body-small);
    font-weight: 500;
    text-align: center;
    border: 1px solid var(--gray-20);
    border-radius: var(--radius-lg);
    box-sizing: border-box;
    text-decoration: none;
}
.join_btn:active {
    background-color: var(--gray-5);
}


/* ========================================
   아이디 / 비밀번호 찾기
   ======================================== */

.find_section {
    padding: 0;
}
.find_card {
    width: 100%;
}

/* 타이틀 */
.find_title {
    font-size: var(--heading-medium);
    font-weight: 700;
    color: var(--gray-95);
    text-align: center;
    margin: 0 0 20px 0;
}

/* 탭 */
.find_tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}
.find_tabs a {
    font-size: var(--body-small);
    font-weight: 400;
    color: var(--gray-40);
    text-decoration: none;
}
.find_tabs a.active {
    color: var(--main);
    font-weight: 500;
}
.find_tabs .tab_divider {
    width: 1px;
    height: 14px;
    background-color: var(--gray-20);
}

/* 폼 필드 */
.find_field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}
.find_field .field_label {
    font-size: var(--body-xsmall);
    font-weight: 400;
    color: var(--gray-95);
}
.find_field input {
    width: 100%;
    height: 47px;
    padding: 0 16px;

    font-size: var(--body-small);
    font-weight: 400;
    color: var(--gray-95);
    border: 1px solid var(--gray-10);
    border-radius: var(--radius-lg);
    box-sizing: border-box;
    outline: none;
}
.find_field input:focus {
    border-color: var(--main);
}
.find_field input::placeholder {
    color: var(--gray-40);
}

/* 검색 결과 */
.search_inf {
    margin-top: 8px;
}
.search_inf .member_msg {
    font-size: var(--body-small);
    font-weight: 500;
    color: var(--gray-80);
    text-align: center !important;
    line-height: 1.6;
    margin: 0;
    background-color: var(--gray-5);
    border-radius: var(--radius-lg);
    padding: 20px;
}

/* 확인 버튼 */
.find_btn {
    display: block;
    width: 100%;
    height: 47px;
    margin-top: 20px;
    background-color: var(--main);
    color: #fff;

    font-size: var(--body-small);
    font-weight: 500;
    text-align: center;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
}
.find_btn:active {
    background-color: var(--main-hover);
}
.find_btn_pw {
    margin-top: 14px;
    height: 42px;
    font-size: var(--body-small);
    background-color: var(--main);
}
.find_btn_pw:active {
    background-color: var(--main-hover);
}

.find_btn_login {
    display: block;
    margin-top: 10px;
    height: 42px;
    line-height: 42px;
    font-size: var(--body-small);
    text-align: center;
    text-decoration: none;
    color: #fff;
    background-color: var(--main);
}
.find_btn_login:active {
    background-color: var(--main-hover);
}

/* 비밀번호 찾기 성공 메시지 */
.findpw_success_title {
    display: block;
    font-size: var(--body-medium);
    font-weight: 500;
    color: var(--gray-95);
    margin: 0 0 16px 0;
}
.findpw_success_desc {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: var(--gray-60);
    line-height: 1.7;
    margin: 0;
}

/* 아이디/비밀번호 찾기 — 연락처 인증 */
.find_field .field_with_btn {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 0;
    border: 1px solid var(--gray-10);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.find_field .field_with_btn:focus-within { border-color: var(--main); }
.find_field .field_with_btn input {
    flex: 1;
    min-width: 0;
    border: none !important;
}
.find_field .verify_timer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 36px;
    margin-right: 8px;
    padding: 0 6px;
    font-size: var(--body-xsmall);
    font-weight: 500;
    color: var(--main);
    background: var(--main-surface);
    border-radius: var(--radius-lg);
}
.find_field input[readonly] {
    background-color: var(--gray-5);
    color: var(--gray-60);
}


/* ========================================
   회원가입
   ======================================== */

.join_section {
    padding: 0;
}
.join_card {
    width: 100%;
}

/* 타이틀 */
.join_title {
    font-size: var(--heading-medium);
    font-weight: 700;
    color: var(--gray-95);
    text-align: center;
    margin: 0 0 20px 0;
}

/* 폼 필드 */
.join_field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}
.join_field .field_label {
    font-size: var(--body-xsmall);
    font-weight: 400;
    color: var(--gray-95);
}
.join_field input[type="text"],
.join_field input[type="password"],
.join_field input[type="tel"] {
    width: 100%;
    height: 47px;
    padding: 0 16px;

    font-size: var(--body-small);
    font-weight: 400;
    color: var(--gray-95);
    border: 1px solid var(--gray-10);
    border-radius: var(--radius-lg);
    box-sizing: border-box;
    outline: none;
}
.join_field input:focus {
    border-color: var(--main);
}
.join_field input::placeholder {
    color: var(--gray-40);
}

/* 인라인 버튼 (이메일 + 중복확인) */
.join_field .field_with_btn {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 0;
    border: 1px solid var(--gray-10);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.join_field .field_with_btn:focus-within {
    border-color: var(--main);
}
.join_field .field_with_btn input {
    flex: 1;
    min-width: 0;
    border: none !important;
}
.btn_dup {
    flex-shrink: 0;
    height: 36px;
    width: 80px;
    margin-right: 8px;

    font-size: var(--body-xsmall);
    font-weight: 400;
    color: var(--main);
    background: var(--main-surface);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    white-space: nowrap;
}
.btn_dup:disabled {
    background: var(--gray-5);
    color: var(--gray-40);
    cursor: not-allowed;
}

/* 발송 버튼 로딩 스피너 */
@keyframes join_btn_spin { to { transform: rotate(360deg); } }
.btn_dup.is_loading {
    background: var(--main-surface);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn_dup .btn_spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid var(--main);
    border-top-color: transparent;
    border-radius: 50%;
    animation: join_btn_spin 0.8s linear infinite;
}

/* 이메일 인증 타이머 */
.join_field .verify_timer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 36px;
    margin-right: 8px;
    padding: 0 6px;
    font-size: var(--body-xsmall);
    font-weight: 500;
    color: var(--main);
    background: var(--main-surface);
    border-radius: var(--radius-lg);
}
.join_field input[readonly] {
    background-color: var(--gray-5);
    color: var(--gray-60);
}

/* 경고 메시지 */
.join_card .member_msg {
    font-size: var(--body-xsmall) !important;
    color: var(--accent);
    margin: -8px 0 16px 0;
    text-align: left !important;
}

/* 생년월일 커스텀 드롭다운 */
.join_field .birth_selects {
    display: flex;
    gap: 6px;
}
.birth_select_wrap {
    position: relative;
    flex: 1;
    min-width: 0;
}
.birth_trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 47px;
    padding: 0 10px;
    border: 1px solid var(--gray-10);
    border-radius: var(--radius-lg);
    background: #fff;

    font-size: var(--body-small);
    font-weight: 400;
    color: var(--gray-40);
    cursor: pointer;
    box-sizing: border-box;
}
.birth_trigger.has_value {
    color: var(--gray-95);
}
.birth_trigger:active,
.birth_select_wrap.is_open .birth_trigger {
    border-color: var(--main);
}
.birth_trigger_text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.birth_trigger_arrow {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    color: var(--gray-40);
    transition: transform 0.2s ease;
}
.birth_select_wrap.is_open .birth_trigger_arrow {
    transform: rotate(180deg);
}
.birth_dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background: var(--gray-0);
    border-radius: var(--radius-lg);
    padding: 6px;
    box-sizing: border-box;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.12);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.birth_select_wrap.is_open .birth_dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.birth_dropdown::-webkit-scrollbar {
    width: 4px;
}
.birth_dropdown::-webkit-scrollbar-track {
    background: transparent;
}
.birth_dropdown::-webkit-scrollbar-thumb {
    background-color: var(--gray-10);
    border-radius: 2px;
}
.birth_option {
    padding: 8px 10px;

    font-size: var(--body-small);
    font-weight: 400;
    color: var(--gray-95);
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}
.birth_option:active {
    background-color: var(--gray-5);
}
.birth_option.selected {
    color: var(--main);
    font-weight: 600;
}

/* 성별 */
.gender_group {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}
.btn_gender {
    flex: 1;
    height: 47px;

    font-size: var(--body-small);
    font-weight: 400;
    color: var(--gray-40);
    background: var(--gray-0);
    border: 1px solid var(--gray-10);
    border-radius: var(--radius-lg);
    cursor: pointer;
}
.btn_gender.active {
    color: var(--main);
    background-color: var(--main-surface);
    border-color: var(--main);
    font-weight: 500;
}

/* 이용약관 동의 */
.join_agree_section {
    margin-top: 24px;
    padding: 16px;
    background: transparent;
    border: 1px solid var(--gray-10);
    border-radius: var(--radius-lg);
}
.join_agree_section .agree_all {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--body-small);
    font-weight: 600;
    color: var(--gray-95);
    cursor: pointer;
}
.join_agree_section .agree_divider {
    height: 1px;
    background: var(--gray-10);
    margin: 12px 0;
}
.join_agree_section .agree_item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--body-xsmall);
    font-weight: 400;
    color: var(--gray-95);
    cursor: pointer;
    margin-bottom: 10px;
}
.join_agree_section .agree_item:last-child {
    margin-bottom: 0;
}
.join_agree_section .agree_item em {
    font-style: normal;
    color: var(--accent);
    font-size: var(--body-xsmall);
}
.join_agree_section .agree_item em.optional {
    color: var(--gray-40);
}
.join_agree_section .agree_view {
    margin-left: auto;
    font-size: var(--body-xsmall);
    color: var(--gray-40);
    text-decoration: underline;
    cursor: pointer;
}
.join_agree_section input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 1px solid var(--gray-10);
    border-radius: var(--radius-md);
    background-color: var(--gray-0);
    cursor: pointer;
    margin: 0;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s;
}
.join_agree_section input[type="checkbox"]:checked {
    background-color: var(--main);
    border-color: var(--main);
}
.join_agree_section input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M10.28 2.28a.75.75 0 0 1 0 1.06l-5.5 5.5a.75.75 0 0 1-1.06 0l-2.5-2.5a.75.75 0 0 1 1.06-1.06L4.5 7.44l4.97-4.97a.75.75 0 0 1 1.06 0Z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* 회원가입 버튼 */
.join_submit_btn {
    display: block;
    width: 100%;
    height: 47px;
    margin-top: 20px;
    background-color: var(--main);
    color: #fff;

    font-size: var(--body-small);
    font-weight: 500;
    text-align: center;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
}
.join_submit_btn:active {
    background-color: var(--main-hover);
}

/* ===== 회원가입 완료 팝업 ===== */
.join_complete_popup {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}
.join_complete_popup.is_active {
    display: flex;
}
.join_complete_popup__dim {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
}
.join_complete_popup__box {
    position: relative;
    width: calc(100% - 40px);
    max-width: 360px;
    background: #fff;
    border-radius: 16px;
    padding: 36px 20px 24px;
    text-align: center;
    box-sizing: border-box;
}
.join_complete_popup__close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-50);
    padding: 0;
}
.join_complete_popup__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--main);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.join_complete_popup__icon svg {
    width: 23px;
    height: 23px;
}
.join_complete_popup__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-95);
    margin: 0 0 6px 0;
}
.join_complete_popup__desc {
    font-size: 14px;
    font-weight: 400;
    color: var(--gray-50);
    margin: 0 0 20px 0;
}
.join_complete_popup__btn {
    display: block;
    width: 100%;
    height: 47px;
    background: var(--main);
    color: #fff;
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--body-small);
    font-weight: 500;
    cursor: pointer;
}

/* 마이페이지용 birth_selects (join_field 스코프 밖) */
.join_inp .birth_selects {
    display: flex;
    gap: 6px;
}
