/* ============================================
   회원 페이지 CSS (로그인, 회원가입, 프로필)
   맑은 흰색 계열 + 빨간색 포인트
   ============================================ */

.member-wrap {
    max-width: 480px;
    margin: 0 auto;
    padding: 80px 24px 120px;
}

.member-title {
    font-size: 28px;
    font-weight: 600;
    color: #222;
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.member-subtitle {
    font-size: 14px;
    color: #888;
    text-align: center;
    margin-bottom: 48px;
}

/* ── 폼 ── */

.member-form {
    width: 100%;
}

.member-field {
    margin-bottom: 24px;
}

.member-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
}

.member-required {
    color: #e53935;
}

.member-input {
    width: 100%;
    height: 48px;
    border: none;
    border-bottom: 1px solid #ddd;
    background: transparent;
    font-size: 15px;
    color: #333;
    padding: 0 4px;
    transition: border-color 0.25s ease;
    box-sizing: border-box;
}

.member-input:focus {
    outline: none;
    border-bottom-color: #e53935;
}

.member-input::placeholder {
    color: #bbb;
}

.member-input-readonly {
    color: #999;
    background: #fafafa;
}

/* ── 입력 + 버튼 인라인 ── */

.member-input-row {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.member-input-row .member-input {
    flex: 1;
}

.member-btn-sm {
    flex-shrink: 0;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #ddd;
    background: #fff;
    color: #555;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.member-btn-sm:hover {
    border-color: #e53935;
    color: #e53935;
}

.member-btn-sm:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ── 필드 메시지 ── */

.member-field-msg {
    font-size: 12px;
    margin-top: 6px;
    min-height: 16px;
}

.member-field-msg.success {
    color: #2e7d32;
}

.member-field-msg.error {
    color: #e53935;
}

/* ── 에러 메시지 ── */

.member-error {
    font-size: 13px;
    color: #e53935;
    text-align: center;
    margin-bottom: 16px;
    min-height: 20px;
}

/* ── 주요 버튼 (빨간색) ── */

.member-btn {
    display: block;
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 4px;
    background: #e53935;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease;
    letter-spacing: 0.5px;
}

.member-btn:hover {
    background: #c62828;
}

.member-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ── 아웃라인 버튼 ── */

.member-btn-outline {
    background: #fff;
    color: #e53935;
    border: 1px solid #e53935;
}

.member-btn-outline:hover {
    background: #fbe9e7;
}

/* ── 텍스트 버튼 ── */

.member-btn-text {
    background: none;
    border: none;
    color: #999;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    padding: 8px 0;
}

.member-btn-text:hover {
    color: #e53935;
}

/* ── 구분선 ── */

.member-divider {
    display: flex;
    align-items: center;
    margin: 32px 0;
}

.member-divider::before,
.member-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e8e8e8;
}

.member-divider span {
    padding: 0 16px;
    font-size: 12px;
    color: #bbb;
    white-space: nowrap;
}

/* ── 소셜 로그인 ── */

.member-social-area {
    text-align: center;
    margin-bottom: 32px;
}

.member-social-placeholder {
    font-size: 13px;
    color: #ccc;
    padding: 16px 0;
    border: 1px dashed #e8e8e8;
    border-radius: 4px;
}

/* ── 카카오 버튼 ── */

.member-btn-kakao {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 6px;
    background: #FEE500;
    color: #191919;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.25s ease;
    box-sizing: border-box;
}

.member-btn-kakao:hover {
    background: #F0D900;
}

.member-btn-kakao .kakao-logo {
    flex-shrink: 0;
}

/* ── 안내 박스 ── */

.member-notice {
    font-size: 13px;
    line-height: 1.6;
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 24px;
}

.member-notice-warn {
    background: #FFF8E1;
    border: 1px solid #FFE082;
    color: #6D4C00;
}

/* ── 필드 힌트 ── */

.member-field-hint {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

/* ── 하단 링크 ── */

.member-link-area {
    text-align: center;
    margin-top: 32px;
    font-size: 14px;
    color: #888;
}

.member-link {
    color: #e53935;
    font-weight: 600;
    margin-left: 6px;
    text-decoration: none;
}

.member-link:hover {
    text-decoration: underline;
}

/* ── 동의 체크박스 ── */

.member-agree-field {
    margin-top: 32px;
}

.member-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
}

.member-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #e53935;
}

/* ── 프로필 섹션 (레거시 — 로그인/회원가입 페이지용) ── */

.member-section {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid #f0f0f0;
}

.member-section:last-of-type {
    border-bottom: none;
}

.member-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 24px;
}

/* ── 마이페이지 헤더 ── */

.mypage-header {
    text-align: center;
    padding: 32px 0;
    margin-bottom: 32px;
    background: #f9f9f9;
    border-radius: 8px;
}

.mypage-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    background: #e8e8e8;
}

.mypage-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mypage-avatar-initial {
    font-size: 28px;
    font-weight: 600;
    color: #999;
}

.mypage-greeting {
    font-size: 22px;
    font-weight: 600;
    color: #222;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.mypage-email {
    font-size: 14px;
    color: #999;
    margin-bottom: 8px;
}

.mypage-provider-badge {
    margin-bottom: 8px;
}

.provider-badge-kakao {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #191919;
    background: #FEE500;
    border-radius: 12px;
}

.mypage-meta {
    font-size: 12px;
    color: #bbb;
}

/* ── 마이페이지 메뉴 리스트 ── */

.mypage-menu-list {
    border-top: 1px solid #e8e8e8;
}

.mypage-menu-item {
    border-bottom: 1px solid #e8e8e8;
}

.mypage-menu-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 4px;
    border: none;
    background: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.mypage-menu-btn:hover {
    background: #fafafa;
}

.mypage-menu-label {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.mypage-menu-chevron {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid #999;
    border-bottom: 1.5px solid #999;
    transform: rotate(-45deg);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.mypage-menu-item.is-open .mypage-menu-chevron {
    transform: rotate(45deg);
}

/* ── 아코디언 본체 ── */

.mypage-menu-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 4px;
}

.mypage-menu-item.is-open .mypage-menu-body {
    max-height: 600px;
    padding: 16px 4px 32px;
}

/* ── 액션 메뉴 (로그아웃/탈퇴) ── */

.mypage-menu-action .mypage-menu-label {
    font-weight: 400;
    color: #888;
}

.mypage-menu-danger .mypage-menu-label {
    color: #ccc;
    font-size: 13px;
}

.mypage-menu-danger:hover .mypage-menu-label {
    color: #e53935;
}

/* ── 반응형 ── */

@media (max-width: 600px) {
    .member-wrap {
        padding: 60px 20px 100px;
    }

    .member-title {
        font-size: 24px;
    }

    .member-btn {
        height: 48px;
        font-size: 15px;
    }

    .mypage-header {
        padding: 24px 16px;
        margin-bottom: 24px;
    }

    .mypage-greeting {
        font-size: 20px;
    }
}