/* ==========================================================================
   member.css — 회원 페이지 공용 카드 스타일
   로그인 페이지의 모던 디자인(#417690 블루 헤더)을 모든 회원 페이지에 통일 적용
   ========================================================================== */

/* 카드 컨테이너 */
.member-card {
    max-width: 480px;
    margin: 40px auto;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* 넓은 폼용 (회원가입, 정보수정) */
.member-card-wide {
    max-width: 720px;
}

/* 카드 헤더 */
.member-card-header {
    background: #417690;
    color: #ffc;
    text-align: center;
    padding: 16px 20px;
    font-size: 1.4em;
    font-weight: bold;
    letter-spacing: 0.02em;
}

/* 카드 바디 */
.member-card-body {
    padding: 28px 32px 20px;
}

/* 카드 푸터 */
.member-card-footer {
    text-align: center;
    padding: 16px 32px 24px;
    font-size: 13px;
    color: #666;
    border-top: 1px solid #eee;
}
.member-card-footer a {
    color: #417690;
    font-weight: 600;
    text-decoration: none;
}
.member-card-footer a:hover {
    text-decoration: underline;
}

/* 알림 메시지 */
.member-card .alert {
    margin: 16px 32px 0;
    border-radius: 4px;
}
.member-card-body .alert {
    margin: 0 0 16px;
}

/* ---------- 인풋 공용 ---------- */
.member-card-body input[type="text"],
.member-card-body input[type="password"],
.member-card-body input[type="email"],
.member-card-body input[type="tel"],
.member-card-body select,
.member-card-body textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    background: #f0f4f8;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.member-card-body input[type="text"]:focus,
.member-card-body input[type="password"]:focus,
.member-card-body input[type="email"]:focus,
.member-card-body input[type="tel"]:focus,
.member-card-body select:focus,
.member-card-body textarea:focus {
    border-color: #417690;
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(65,118,144,0.2);
}

/* 필드 그룹 */
.member-card .field_group {
    margin-bottom: 18px;
}

/* 필드 라벨 */
.member-card-body label.field_label,
.member-card-body .member-field > label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
    font-weight: 600;
}

/* 비밀번호 토글 래퍼 */
.member-card .pw_wrap {
    position: relative;
}
.member-card .pw_wrap .btn_toggle_pw {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #999;
    padding: 4px;
}
.member-card .pw_wrap .btn_toggle_pw:hover {
    color: #417690;
}

/* 옵션/링크 행 */
.member-card .login_options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 13px;
}
.member-card .login_options label {
    cursor: pointer;
    color: #555;
}
.member-card .login_options .login_links a {
    color: #417690;
    text-decoration: none;
    margin-left: 12px;
}
.member-card .login_options .login_links a:hover {
    text-decoration: underline;
}

/* ---------- 버튼 공용 ---------- */
.member-card .btn_submit,
.member-card .btn_login {
    display: block;
    width: 100%;
    padding: 12px;
    background: #417690;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}
.member-card .btn_submit:hover,
.member-card .btn_login:hover {
    background: #356580;
    color: #fff;
    text-decoration: none;
}

/* 인라인 버튼 (결과 페이지 등) */
.member-card .btn_submit_inline {
    display: inline-block;
    width: auto;
    padding: 10px 24px;
    background: #417690;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}
.member-card .btn_submit_inline:hover {
    background: #356580;
    color: #fff;
    text-decoration: none;
}
.member-card .btn_submit_inline.btn_secondary {
    background: #666;
}
.member-card .btn_submit_inline.btn_secondary:hover {
    background: #555;
}

/* 취소 버튼 */
.member-card .btn_cancel {
    display: inline-block;
    padding: 10px 24px;
    background: #999;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}
.member-card .btn_cancel:hover {
    background: #777;
    color: #fff;
    text-decoration: none;
}

/* 버튼 영역 */
.member-card .btn_confirm {
    text-align: center;
    padding: 20px 0 8px;
}
.member-card .btn_confirm .btn_submit {
    display: inline-block;
    width: auto;
    padding: 12px 40px;
}

/* ---------- 섹션 구분 (회원가입/정보수정 폼) ---------- */
.member-section {
    margin-bottom: 24px;
}
.member-section h2 {
    font-size: 1.1em;
    color: #417690;
    padding-bottom: 8px;
    border-bottom: 2px solid #417690;
    margin-bottom: 16px;
    margin-top: 0;
}

/* 폼 필드 */
.member-field {
    margin-bottom: 14px;
    list-style: none;
}
.member-field label.sound_only {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
    font-weight: 600;
    clip: unset;
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
}
.member-field label.sound_only strong {
    color: #e74c3c;
    font-size: 12px;
    margin-left: 4px;
}
.member-field .frm_input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    background: #f0f4f8;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.member-field .frm_input:focus {
    border-color: #417690;
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(65,118,144,0.2);
}
.member-field .half_input {
    width: 48%;
}
.member-field .frm_info {
    display: block;
    font-size: 12px;
    color: #417690;
    margin-top: 4px;
}
.member-field .frm_label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
    font-weight: 600;
}

/* 읽기전용 필드 */
.member-field .readonly {
    background: #f5f5f5 !important;
    color: #666;
    cursor: default;
    border-color: #ddd;
}

/* AJAX 검증 메시지 */
.member-field span[id^="msg_"] {
    display: block;
    font-size: 12px;
    margin-top: 4px;
}

/* 에러 메시지 */
.member-field .alert-danger {
    display: block;
    font-size: 12px;
    color: #e74c3c;
    margin-top: 4px;
    padding: 4px 8px;
    background: #fdf0ef;
    border: 1px solid #f5c6cb;
    border-radius: 3px;
}

/* 폼 리스트 초기화 */
.member-card-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 체크박스/라디오 인라인 */
.member-field input[type="checkbox"],
.member-field input[type="radio"] {
    width: auto;
    margin-right: 6px;
}

/* 파일 업로드 */
.member-field input[type="file"] {
    width: 100%;
    padding: 8px;
    font-size: 13px;
    border: 1px dashed #ccc;
    border-radius: 4px;
    background: #fafafa;
}

/* 주소 검색 버튼 */
.member-card .btn_frmline {
    display: inline-block;
    padding: 8px 16px;
    background: #417690;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    margin-left: 8px;
    vertical-align: middle;
    transition: background 0.2s;
}
.member-card .btn_frmline:hover {
    background: #356580;
}

/* ---------- 약관 동의 (register.html) ---------- */
.member-card .register-term-section {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}
.member-card .register-term-section h2 {
    font-size: 1em;
    color: #417690;
    padding: 12px 16px;
    margin: 0;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}
.member-card .register-term-section textarea {
    width: 100%;
    height: 140px;
    padding: 12px;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    resize: vertical;
    font-size: 13px;
    line-height: 1.6;
    background: #fff;
    box-sizing: border-box;
}
.member-card .register-term-section table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.member-card .register-term-section table th,
.member-card .register-term-section table td {
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    text-align: left;
}
.member-card .register-term-section table th {
    background: #f0f4f8;
    font-weight: 600;
    color: #333;
}
.member-card .register-term-section table td {
    background: #fff;
}
.member-card .fregister_agree {
    padding: 12px 16px;
    background: #f0f4f8;
    border: none;
}
.member-card .fregister_agree label {
    font-size: 14px;
    color: #333;
    cursor: pointer;
    font-weight: 600;
}
.member-card .fregister_agree input[type="checkbox"] {
    width: auto;
    margin-left: 8px;
    transform: scale(1.2);
    cursor: pointer;
}

/* 전체선택 */
.member-card .register-chkall {
    padding: 14px 0;
    margin-bottom: 16px;
    border-bottom: 1px solid #eee;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}
.member-card .register-chkall input[type="checkbox"] {
    width: auto;
    margin-left: 8px;
    transform: scale(1.3);
    cursor: pointer;
}
.member-card .register-chkall label {
    cursor: pointer;
}

/* 안내문구 */
.member-card .register-intro {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ---------- 비밀번호 확인 / 탈퇴 (소형 카드) ---------- */
.member-card .confirm-fieldset {
    border: none;
    padding: 0;
    margin: 0;
}
.member-card .confirm-row {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
    gap: 12px;
}
.member-card .confirm-row .confirm_id {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}
.member-card .confirm-row #mb_confirm_id {
    font-size: 15px;
    color: #417690;
    font-weight: bold;
}
.member-card .confirm-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}
.member-card .confirm-desc strong {
    color: #333;
}

/* ---------- 프로필 카드 ---------- */
.member-card .profile-icon {
    text-align: center;
    margin-bottom: 16px;
}
.member-card .profile-icon img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid #417690;
}
.member-card .profile-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.member-card .profile-table th,
.member-card .profile-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
}
.member-card .profile-table th {
    color: #417690;
    font-weight: 600;
    width: 35%;
    white-space: nowrap;
}
.member-card .profile-table td {
    color: #333;
}
.member-card .profile-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}
.member-card .profile-section h2 {
    font-size: 1em;
    color: #417690;
    margin-bottom: 8px;
    margin-top: 0;
}
.member-card .profile-section p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

/* ---------- 회원가입 결과 ---------- */
.member-card .result-icon {
    font-size: 48px;
    color: #417690;
    text-align: center;
    margin-bottom: 16px;
}
.member-card .result-message {
    text-align: center;
    font-size: 16px;
    color: #333;
    line-height: 1.8;
    margin-bottom: 16px;
}
.member-card .result-message strong {
    color: #417690;
}
.member-card .result-email {
    background: #f0f4f8;
    padding: 14px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 14px;
}
.member-card .result-email span {
    display: inline-block;
    font-weight: 600;
    color: #333;
    min-width: 80px;
}
.member-card .result-email strong {
    color: #417690;
}
.member-card .result-note {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    margin-bottom: 12px;
}

/* ---------- 탈퇴 경고 ---------- */
.member-card .leave-warning {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 20px;
}
.member-card .leave-warning strong {
    display: block;
    color: #e65100;
    margin-bottom: 8px;
    font-size: 14px;
}
.member-card .leave-warning ul {
    margin: 0;
    padding-left: 18px;
    list-style: disc;
}
.member-card .leave-warning li {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    list-style: disc;
}

/* 탈퇴 푸터 링크 */
.member-card .leave-link {
    font-size: 12px;
    color: #999;
    text-decoration: none;
}
.member-card .leave-link:hover {
    color: #e74c3c;
    text-decoration: underline;
}

/* ---------- 포인트 페이지 ---------- */
.point-summary {
    background: #ae99da;
    color: #fff;
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.point-summary .point-label { font-size: 1.1em; }
.point-summary .point-value { font-size: 1.3em; font-weight: bold; }
.point-positive { color: #00c4ac; font-weight: bold; }
.point-negative { color: #e74c3c; font-weight: bold; }
.point-expired { color: #aaa; }
.point-content-left { text-align: left; }
.point-empty { text-align: center; padding: 40px; color: #999; }
.point-pg_current {
    background: #ae99da;
    color: #fff;
    padding: 4px 10px;
    border-radius: 3px;
}

/* ---------- 모바일 반응형 ---------- */
@media (max-width: 576px) {
    .member-card,
    .member-card-wide {
        margin: 20px 10px;
    }
    .member-card-body {
        padding: 20px 16px 16px;
    }
    .member-card-header {
        font-size: 1.2em;
        padding: 12px 16px;
    }
    .member-card .alert {
        margin: 12px 16px 0;
    }
    .member-card .confirm-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .member-field .half_input {
        width: 100%;
    }
    .member-card .profile-table th,
    .member-card .profile-table td {
        display: block;
        width: 100%;
    }
    .member-card .profile-table th {
        border-bottom: none;
        padding-bottom: 2px;
    }
    .member-card .profile-table td {
        padding-top: 2px;
    }
}
