/* 계정 모듈: 로그인·가입 카드, 설정 화면 */

/* ---------- 로그인 카드 ---------- */
.acc-auth-page { background: radial-gradient(1200px 600px at 50% -10%, var(--brand-50), transparent 70%), var(--bg); }
.acc-card .auth-logo a { display: block; line-height: 0; }
.acc-card .acc-sub { margin: 0; }
.acc-alert, .acc-notice { padding: 10px 12px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 14px; }
.acc-alert { background: #FDECEA; color: #b4261f; border: 1px solid #f6c9c5; }
.acc-notice { background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100); }
:root[data-theme="dark"] .acc-alert { background: #3a1f1d; color: #ffb4ab; border-color: #5a2a26; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .acc-alert { background: #3a1f1d; color: #ffb4ab; border-color: #5a2a26; } }
.acc-form .field { margin-bottom: 12px; }
.acc-row { display: flex; justify-content: flex-end; margin: -4px 0 14px; font-size: 13px; }
.acc-row a, .acc-foot a, .acc-legal a, .acc-check a { color: var(--brand); }
.acc-row a:hover, .acc-foot a:hover, .acc-legal a:hover, .acc-check a:hover { text-decoration: underline; }
.acc-foot { text-align: center; margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.acc-legal { text-align: center; margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.acc-lead { margin: -6px 0 16px; text-align: center; }
.acc-done { background: var(--surface-2); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 14px; font-size: 14px; }
.acc-done p { margin: 0 0 6px; }
.acc-done p:last-child { margin: 0; }
.acc-check { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text-2); margin: 4px 0 16px; cursor: pointer; }
.acc-check input { margin-top: 3px; accent-color: var(--brand); width: 16px; height: 16px; flex: none; }
.acc-pw { position: relative; display: block; }
.acc-pw input { padding-right: 64px; }
.acc-pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: var(--surface-2); color: var(--text-2); font-size: 12px; padding: 4px 9px; border-radius: 8px; cursor: pointer; }
.acc-pw-toggle:hover { color: var(--text); }

/* 소셜 버튼 */
.acc-social { gap: 10px; font-weight: 600; }
.acc-social svg { flex: none; }
.acc-social-google { background: var(--surface); }
.acc-social-naver { background: #03C75A; border-color: #03C75A; color: #fff; }
.acc-social-naver:hover { background: #02b351; }
.acc-social-kakao { background: #FEE500; border-color: #FEE500; color: rgba(0, 0, 0, .85); }
.acc-social-kakao:hover { background: #f4dc00; }

/* ---------- 설정 ---------- */
.acc-settings .acc-tabs { position: sticky; top: 0; z-index: 5; background: var(--bg); }
.acc-section { scroll-margin-top: 64px; transition: box-shadow .4s; }
.acc-section.acc-flash { box-shadow: 0 0 0 3px var(--brand-100); }
.acc-section h3 { font-size: 17px; }
.acc-sub-h { margin: 22px 0 10px; font-size: 14px; color: var(--text-2); }
.acc-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.acc-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.acc-span2 { grid-column: 1 / -1; }
.acc-meta { margin: -2px 0 6px; }
.acc-avatar-edit { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.acc-avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; overflow: hidden; flex: none; box-shadow: var(--shadow); }
.acc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.acc-avatar-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.acc-avatar-actions .acc-check { margin: 0; }
.acc-avatar-actions label.btn { cursor: pointer; }
.acc-links .list-row { gap: 10px; }
.acc-links form { margin: 0; }

.acc-theme { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.acc-theme-opt { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; background: var(--surface); }
.acc-theme-opt:hover { border-color: var(--border-2); }
.acc-theme-opt input { position: absolute; opacity: 0; pointer-events: none; }
.acc-theme-opt:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.acc-theme-opt input:focus-visible + .acc-swatch { outline: 2px solid var(--brand); outline-offset: 2px; }
.acc-theme-opt b { font-size: 13px; font-weight: 600; }
.acc-swatch { display: block; height: 54px; border-radius: 8px; border: 1px solid var(--border); }
.acc-swatch.is-light { background: linear-gradient(135deg, #FBFAF8 0 60%, #F3EFEB 60%); }
.acc-swatch.is-dark { background: linear-gradient(135deg, #1F1C19 0 60%, #161412 60%); }
.acc-swatch.is-system { background: linear-gradient(135deg, #FBFAF8 0 50%, #1F1C19 50%); }

.acc-danger { border-color: #f1c6c2; }
.acc-danger h3 { color: var(--danger); }
.acc-delete { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.acc-delete .field { flex: 1; min-width: 200px; margin-bottom: 0; }
.btn.btn-danger:not(:disabled) { border-color: var(--danger); }
.btn.btn-danger:not(:disabled):hover { background: var(--danger); color: #fff; }

.acc-legal-body h3 { margin: 18px 0 6px; font-size: 15px; }
.acc-legal-body h3:first-child { margin-top: 0; }
.acc-legal-body p { margin: 0 0 8px; color: var(--text-2); }

@media (max-width: 860px) {
  .acc-grid2 { grid-template-columns: 1fr; }
  .acc-theme { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .acc-swatch { height: 40px; }
}

/* 계정 바로 가기·로그아웃 (휴대폰 화면·앱용, 데스크톱에도 보인다) */
.acc-account { display: flex; flex-wrap: wrap; gap: 8px; }
.acc-account form { margin: 0; }
