/* ==========================================================================
   zanzan member skin — 짠짠 SNS 회원 페이지 스타일
   ========================================================================== */
:root {
    --accent: #ef4e2b;
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-2: #f4f6f8;
    --text: #0f1318;
    --muted: #66717d;
    --border: #e7e9ec;
    --radius: 14px;
    --radius-sm: 10px;
    --font: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont,
        "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
}
[data-theme="dark"] {
    --accent: #ff5d3b;
    --bg: #0d1117;
    --surface: #161b22;
    --surface-2: #21262d;
    --text: #e6edf3;
    --muted: #7d8590;
    --border: #30363d;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

/* ───── 로고 ───── */
.zanzan-logo {
    display: flex; align-items: center; gap: 8px;
    text-decoration: none; color: var(--text);
    font-size: 20px; font-weight: 800; margin-bottom: 28px;
}
.zanzan-logo svg { width: 26px; height: 28px; color: var(--accent); }

/* ───── 카드 ───── */
.zanzan-card {
    width: 100%; max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 32px 32px;
}
.zanzan-card__title {
    font-size: 22px; font-weight: 800; margin-bottom: 24px;
}

/* ───── 폼 필드 ───── */
.zanzan-field {
    display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px;
}
.zanzan-field label {
    font-size: 13px; font-weight: 600; color: var(--muted);
}
.zanzan-field input,
.zanzan-field select,
.zanzan-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font: inherit; font-size: 15px;
    background: var(--surface-2);
    color: var(--text);
    outline: none;
    transition: border-color .14s;
}
.zanzan-field input:focus,
.zanzan-field select:focus,
.zanzan-field textarea:focus { border-color: var(--accent); background: var(--surface); }

/* ───── 버튼 ───── */
.zanzan-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 20px; border-radius: 999px;
    font: inherit; font-size: 15px; font-weight: 700;
    cursor: pointer; border: none; text-decoration: none;
    transition: opacity .14s;
}
.zanzan-btn:hover { opacity: .85; }
.zanzan-btn.zanzan-btn--solid,
button.zanzan-btn--solid { background: var(--accent) !important; color: #fff !important; }
.zanzan-btn--ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.zanzan-btn--full { width: 100%; }

/* ───── 링크 모음 ───── */
.zanzan-links {
    margin-top: 18px; display: flex; gap: 12px; flex-wrap: wrap;
    font-size: 13px;
}
.zanzan-links a { color: var(--accent); font-weight: 600; }

/* ───── 에러/알림 ───── */
.zanzan-msg { padding: 10px 14px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 14px; }
.zanzan-msg--error { background: rgba(239,78,43,.10); color: var(--accent); }
.zanzan-msg--info  { background: var(--surface-2); color: var(--muted); }

/* ───── 구분선 ───── */
.zanzan-divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

/* ───── 섹션 헤더 ───── */
.zanzan-section-title { font-size: 13px; font-weight: 700; color: var(--muted); margin: 20px 0 8px; text-transform: uppercase; letter-spacing: .06em; }

/* ───── 체크박스/라디오 ───── */
.zanzan-check { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; font-size: 14px; cursor: pointer; }
.zanzan-check input { margin-top: 2px; accent-color: var(--accent); }

/* ───── SNS 로그인 (zzan_snslogin 연동) ───── */
.zanzan-or {
    display: flex; align-items: center; text-align: center;
    color: var(--muted); font-size: 12px; margin: 22px 0 14px;
}
.zanzan-or::before, .zanzan-or::after {
    content: ""; flex: 1; border-top: 1px solid var(--border);
}
.zanzan-or span { padding: 0 12px; white-space: nowrap; }

/* 기본 login_buttons.html 의 폭/여백/모서리 제약을 카드 디자인에 맞게 재정의 */
.zanzan-card .zzan-sns-login { max-width: 100%; margin: 0; gap: 10px; }
.zanzan-card .btn-sns {
    border-radius: 999px;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 700;
}

@media (max-width: 480px) {
    .zanzan-card { padding: 28px 20px 24px; }
}
