/* 회원 입력과 소셜 인증에 커뮤니티의 지면·글자·버튼 토큰을 적용합니다. */
.community-auth {
    --text-primary: var(--community-text);
    --text-secondary: var(--community-muted);
    --text-muted: var(--community-muted);
    --bg-surface: var(--community-surface);
    --bg-hover: var(--community-tint);
    --border-default: var(--community-line);
    --action: var(--community-primary);
    --action-hover: var(--community-primary);
    --danger: var(--community-danger);
    --danger-soft: var(--community-surface);
    --success: var(--community-accent);
    --success-soft: var(--community-tint);
    --font-sans: var(--k-font-primary), sans-serif;
    --radius-sm: 8px;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ref-ink); background: var(--k-bg-white); font: 14px/1.6 var(--k-font-primary), sans-serif; }
.community-auth-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}
/* 로그인과 회원가입은 공통 탐색 열 없이 전체 폭에서 인증 본문을 가운데 정렬합니다. */
.community-auth-page .community-shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
}
.community-auth-page .community-content {
    grid-column: 1;
}
.community-auth {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
    max-width: 1120px;
    margin: auto;
    padding: 0 40px;
}
.community-auth a { color: inherit; text-underline-offset: 4px; }
.community-auth button, .community-auth input { font: inherit; }
.community-auth button, .community-auth input:not([type="checkbox"]) { min-height: 44px; border: 1px solid var(--border-default); border-radius: var(--radius-sm); }
.community-auth button { padding: 10px 16px; background: var(--bg-surface); color: var(--text-primary); cursor: pointer; }
.community-auth button:hover { background: var(--bg-hover); }
.community-auth button:disabled, .community-auth fieldset:disabled { opacity: .65; cursor: wait; }
.community-auth :focus-visible { outline: 2px solid var(--text-primary); outline-offset: 4px; }
.community-auth-main {
    display: grid;
    flex: 1;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 80px;
    padding: 72px 0;
    align-items: start;
}
/* 가입 화면은 소개 없이 입력 폼만 중앙에 배치합니다. */
.community-auth[data-mode="join"] .community-auth-intro,
.community-auth[data-mode="join"] [data-social] {
    display: none;
}
.community-auth[data-mode="join"] .community-auth-main {
    grid-template-columns: minmax(0, 420px);
    justify-content: center;
}
.community-auth-panel {
    min-width: 0;
}
.community-auth-intro { position: sticky; top: 60px; }
.community-auth-eyebrow { color: var(--text-secondary); font-size: 13px; }
.community-auth h1 { font-size: var(--type-title); line-height: 1.35; font-weight: 600; text-wrap: balance; margin: 18px 0 24px; }
.community-auth-intro > p:not(.community-auth-eyebrow) { color: var(--text-secondary); line-height: 1.9; }
.community-auth-services { margin: 44px 0 24px; border-top: 1px solid var(--border-default); }
.community-auth-services a { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--border-default); text-decoration: none; }
.community-auth-services a span:first-child { color: var(--text-muted); font-size: 12px; }
.community-auth-services a span:last-child { margin-left: auto; }
.community-auth-caption { font-size: 12px; }
.community-auth-panel h2 { font-size: var(--type-section); margin: 0 0 10px; }
.community-auth-panel > p { color: var(--text-secondary); margin: 0 0 24px; }
.community-auth-social { display: grid; gap: 10px; margin: 28px 0; padding-bottom: 28px; border-bottom: 1px solid var(--border-default); }
/* 소셜별 기존 색상 토큰과 로고를 사용하고 버튼 문구는 중앙에 맞춥니다. */
.community-auth-social button {
    position: relative;
    min-height: 48px;
    padding: 10px 48px;
}
.community-auth-social img {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    object-fit: contain;
}
.community-auth-social [data-provider="kakao"],
.community-auth-social [data-provider="kakao"]:hover {
    color: var(--ref-ink);
    border-color: var(--fm-color-social-kakao);
    background: var(--fm-color-social-kakao);
}
.community-auth-social [data-provider="naver"],
.community-auth-social [data-provider="naver"]:hover {
    border-color: var(--fm-color-social-naver);
    background: var(--fm-color-social-naver);
    color: var(--k-bg-white);
}
.community-auth fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.community-auth label:not(.community-auth-check) { display: grid; gap: 14px; margin-bottom: 22px; font-weight: 500; }
.community-auth input:not([type="checkbox"]) { width: 100%; padding: 10px 12px; background: var(--bg-surface); color: var(--text-primary); }
.community-auth-check { display: flex; align-items: start; gap: 10px; margin: 14px 0; font-size: 13px; }
.community-auth-check input { flex: 0 0 auto; width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--action); }
.community-auth-check a { margin-left: auto; flex-shrink: 0; }
.community-auth-consents { border-top: 1px solid var(--border-default); padding: 14px 0; margin-top: 26px; }
.community-auth .community-auth-submit { width: 100%; margin-top: 18px; color: var(--community-on-primary); background: var(--action); border-color: var(--action); }
.community-auth .community-auth-submit:hover { background: var(--action-hover); }
.community-auth-verification { display: grid; gap: 14px; margin-bottom: 22px; }
.community-auth-verification label { margin: 0 !important; }
.community-auth-panel .community-auth-error { color: var(--danger); background: var(--danger-soft); padding: 14px; overflow-wrap: anywhere; }
.community-auth-panel .community-auth-message { color: var(--success); background: var(--success-soft); padding: 14px; }
.community-auth-panel .community-auth-switch { margin-top: 24px; margin-bottom: 14px; }
.community-auth-sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* 태블릿과 모바일은 공통 메뉴 옆에 남는 폭을 입력 폼에 사용합니다. */
@media (max-width: 1023px) {
    .community-auth { padding: 0 22px; }
    .community-auth-main { grid-template-columns: 1fr; gap: 36px; padding: 32px 0 48px; }
    .community-auth-intro { position: static; }
    .community-auth-services { margin-top: 24px; }
}
