/* 기존 두 서비스의 단색 지면과 공통 입력 토큰으로 인증 화면을 구성합니다. */
.aside-auth {
    --text-primary: var(--ref-ink);
    --text-secondary: var(--k-text-gray);
    --text-muted: var(--k-text-gray);
    --bg-app: var(--k-bg-white);
    --bg-surface: var(--k-bg-white);
    --bg-hover: var(--k-bg-gray-light);
    --border-default: var(--k-color-gray-ddd);
    --action: var(--ref-ink);
    --action-hover: var(--ref-ink);
    --danger: var(--fm-color-danger);
    --danger-soft: var(--fm-color-danger-soft);
    --success: var(--fm-color-success);
    --success-soft: var(--fm-color-success-soft);
    --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; }
.aside-auth-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}
.aside-auth {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
    max-width: 1120px;
    margin: auto;
    padding: 0 40px;
}
.aside-auth a { color: inherit; text-underline-offset: 4px; }
.aside-auth button, .aside-auth input { font: inherit; }
.aside-auth button, .aside-auth input:not([type="checkbox"]) { min-height: 44px; border: 1px solid var(--border-default); border-radius: var(--radius-sm); }
.aside-auth button { padding: 10px 16px; background: var(--bg-surface); color: var(--text-primary); cursor: pointer; }
.aside-auth button:hover { background: var(--bg-hover); }
.aside-auth button:disabled, .aside-auth fieldset:disabled { opacity: .65; cursor: wait; }
.aside-auth :focus-visible { outline: 2px solid var(--text-primary); outline-offset: 4px; }
.aside-auth-header { display: flex; justify-content: space-between; gap: 20px; align-items: center; min-height: 92px; border-bottom: 1px solid var(--border-default); }
.aside-auth-header a { text-decoration: none; }
.aside-auth-header a:first-child { font-weight: 700; letter-spacing: .08em; }
.aside-auth-main {
    display: grid;
    flex: 1;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 80px;
    padding: 72px 0;
    align-items: start;
}
/* 가입 화면은 소개 없이 입력 폼만 중앙에 배치합니다. */
.aside-auth[data-mode="join"] .aside-auth-intro,
.aside-auth[data-mode="join"] [data-social] {
    display: none;
}
.aside-auth[data-mode="join"] .aside-auth-main {
    grid-template-columns: minmax(0, 420px);
    justify-content: center;
}
.aside-auth-panel {
    min-width: 0;
}
.aside-auth-intro { position: sticky; top: 60px; }
.aside-auth-eyebrow { color: var(--text-secondary); font-size: 13px; }
.aside-auth h1 { font-size: 38px; line-height: 1.35; font-weight: 600; text-wrap: balance; margin: 18px 0 24px; }
.aside-auth-intro > p:not(.aside-auth-eyebrow) { color: var(--text-secondary); line-height: 1.9; }
.aside-auth-services { margin: 44px 0 24px; border-top: 1px solid var(--border-default); }
.aside-auth-services a { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--border-default); text-decoration: none; }
.aside-auth-services a span:first-child { color: var(--text-muted); font-size: 12px; }
.aside-auth-services a span:last-child { margin-left: auto; }
.aside-auth-caption { font-size: 12px; }
.aside-auth-panel h2 { font-size: 24px; margin: 0 0 10px; }
.aside-auth-panel > p { color: var(--text-secondary); margin: 0 0 24px; }
.aside-auth-social { display: grid; gap: 10px; margin: 28px 0; padding-bottom: 28px; border-bottom: 1px solid var(--border-default); }
/* 소셜별 기존 색상 토큰과 로고를 사용하고 버튼 문구는 중앙에 맞춥니다. */
.aside-auth-social button {
    position: relative;
    min-height: 48px;
    padding: 10px 48px;
}
.aside-auth-social img {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    object-fit: contain;
}
.aside-auth-social [data-provider="kakao"],
.aside-auth-social [data-provider="kakao"]:hover {
    border-color: var(--fm-color-social-kakao);
    background: var(--fm-color-social-kakao);
}
.aside-auth-social [data-provider="naver"],
.aside-auth-social [data-provider="naver"]:hover {
    border-color: var(--fm-color-social-naver);
    background: var(--fm-color-social-naver);
    color: var(--k-bg-white);
}
.aside-auth fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.aside-auth label:not(.aside-auth-check) { display: grid; gap: 14px; margin-bottom: 22px; font-weight: 500; }
.aside-auth input:not([type="checkbox"]) { width: 100%; padding: 10px 12px; background: var(--bg-surface); color: var(--text-primary); }
.aside-auth-check { display: flex; align-items: start; gap: 10px; margin: 14px 0; font-size: 13px; }
.aside-auth-check input { flex: 0 0 auto; width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--action); }
.aside-auth-check a { margin-left: auto; flex-shrink: 0; }
.aside-auth-consents { border-top: 1px solid var(--border-default); padding: 14px 0; margin-top: 26px; }
.aside-auth .aside-auth-submit { width: 100%; margin-top: 18px; color: var(--bg-surface); background: var(--action); border-color: var(--action); }
.aside-auth .aside-auth-submit:hover { background: var(--action-hover); }
.aside-auth-verification { display: grid; gap: 14px; margin-bottom: 22px; }
.aside-auth-verification label { margin: 0 !important; }
.aside-auth-panel .aside-auth-error { color: var(--danger); background: var(--danger-soft); padding: 14px; overflow-wrap: anywhere; }
.aside-auth-panel .aside-auth-message { color: var(--success); background: var(--success-soft); padding: 14px; }
.aside-auth-panel .aside-auth-switch { margin-top: 24px; margin-bottom: 14px; }
.aside-auth-sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* PC 인증 헤더만 두 서비스와 같은 높이를 사용합니다. */
@media (min-width: 1024px) {
    .aside-auth-header {
        height: 70px;
        min-height: 70px;
        flex-shrink: 0;
    }
}
@media (max-width: 760px) {
    .aside-auth { padding: 0 22px; }
    .aside-auth-main { grid-template-columns: 1fr; gap: 36px; padding: 32px 0 48px; }
    .aside-auth-intro { position: static; }
    .aside-auth h1 { font-size: 28px; }
    .aside-auth-services { margin-top: 24px; }
    .aside-auth-header { min-height: 72px; font-size: 12px; }
}
