/* ================================================================
   account-auth.css — 로그인·회원가입·계정 찾기 전용 조각. 공통 모양은 core-ui.css
================================================================ */

.auth-main { max-width: 480px; padding-top: 48px; }

/* 제목 — 양식 바로 위 가운데에 "(심볼) Bibong.dev | 로그인" 한 줄, 아래에 한 줄 설명.
   심볼 높이를 글자 높이(28px 줄)에 맞춘다. 워드마크는 헤더와 같은 SUIT Variable */
.auth-head { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 24px; }
.auth-brand { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 28px; line-height: 36px; white-space: nowrap; }
.auth-brand img { width: auto; height: 34px; margin-right: -6px; }   /* 그림 위아래 여백을 빼면 글자 높이와 같다 */
.auth-word { font-weight: 700; letter-spacing: -.033em; }   /* 헤더·푸터 워드마크와 같은 굵기 */
.auth-word span { color: var(--muted); font-weight: 600; }
.auth-divider { width: 1.5px; height: 24px; margin: 0 6px; background: var(--border); }
.auth-head p { margin-top: 10px; font-size: 14px; color: var(--muted); word-break: keep-all; }
@media (max-width: 480px) {
  .auth-brand { font-size: 22px; line-height: 28px; gap: 8px; }
  .auth-brand img { height: 28px; margin-right: -4px; }
  .auth-divider { height: 20px; margin: 0 4px; }
}
.auth-main--wide { max-width: 560px; }
@media (max-width: 800px) { .auth-main { padding-top: 32px; } }
.auth-note { margin-bottom: 20px; }
/* 다른 서비스에서 넘어왔을 때의 연결 머리 — [서비스] ⇄ [Bibong.dev], 아래에 "○○에 로그인" (account-auth.js serviceNote) */
.auth-pair { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 20px; }
.auth-pair svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.auth-tile { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px; color: #fff; font-size: 24px; font-weight: 700; line-height: 1; flex: none; }
.auth-tile--bd { background: var(--surface); border: 1px solid var(--border); }
.auth-tile--bd img { width: 36px; height: auto; }
.auth-tile--icon { overflow: hidden; }
.auth-tile--icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.auth-head--service h1 { font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: -.02em; white-space: normal; }
@media (max-width: 480px) { .auth-head--service h1 { font-size: 21px; line-height: 28px; } }
.auth-form .field + .field { margin-top: 16px; }
.auth-form .button.primary { width: 100%; margin-top: 24px; }
.auth-section + .auth-section { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.auth-section > h2 { font-size: 16px; margin-bottom: 16px; }
.auth-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 16px; margin-top: 20px; font-size: 14px; color: var(--muted); }
.auth-links a { color: var(--focus); font-weight: 600; }
.auth-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* 로그인·회원가입: 질문 문구와 링크(묶음) 사이를 링크끼리보다 넓게 */
.auth-links--ask { gap: 6px 28px; align-items: center; }
.auth-link-group { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; }
.auth-form .radio-row { flex-direction: row; flex-wrap: wrap; gap: 0 20px; }
.auth-form .radio-row legend { margin-bottom: 0; }
.auth-form .field + .radio-row, .auth-form .radio-row + .field { margin-top: 16px; }
.opt { font-weight: 400; color: var(--muted); font-size: 12px; }

/* 동의 묶음 */
.auth-agree { border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 16px; }
.auth-agree .check-line + .check-line { border-top: 1px solid var(--border); }
.auth-agree .check-all { font-weight: 600; }
.auth-agree .check-line > span { flex: 1; display: flex; justify-content: space-between; gap: 12px; }
.auth-agree .check-line a { color: var(--muted); font-weight: 400; font-size: 12px; white-space: nowrap; }

/* 계정 찾기: 아이디 찾기 / 비밀번호 재설정 */
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.auth-tab { min-height: 40px; border: 0; border-radius: calc(var(--radius) - 4px); background: none; font-size: 14px; font-weight: 600; color: var(--muted); }
.auth-tab:hover { color: var(--text); }
.auth-tab[aria-selected="true"] { background: var(--panel); color: var(--focus); box-shadow: 0 0 0 1px var(--border); }
.auth-result { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 8px 0; }
.auth-result svg { width: 32px; height: 32px; color: var(--success); }
.auth-result.warn svg { color: var(--warning); }
.auth-result strong { font-size: 20px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; word-break: keep-all; }
.auth-result .actions { width: 100%; }
.auth-result .actions.single { justify-content: center; }   /* 버튼이 하나일 때(account-action 완료 화면) */
.auth-emails { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.auth-emails li { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; letter-spacing: .02em; }
.auth-inline { color: var(--focus); font-weight: 600; }
.auth-inline:hover { text-decoration: underline; text-underline-offset: 3px; }

/* 메일 링크 처리(account-action): 확인 중 · 재설정할 계정 */
.auth-spin { width: 28px; height: 28px; color: var(--focus); }
.auth-account { display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; padding: 12px 16px; border-radius: var(--radius); background: var(--surface); font-size: 14px; }
.auth-account strong { font-size: 16px; overflow-wrap: anywhere; }
/* 통합 로그인 연결(account-connect.html) */
.connect-account { margin: 20px 0; }
/* 연결 화면 — 서비스가 쓰는 정보 목록 (account-connect.html, sso.js SSO_CLIENTS.uses) */
.connect-uses { margin-top: 16px; }
.connect-uses-head { margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.connect-uses ul { list-style: none; margin: 0; padding: 0; }
.connect-uses li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.connect-uses li:last-child { border-bottom: 0; }
.connect-use-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); flex: none; }
.connect-use-icon svg { width: 18px; height: 18px; }
.connect-uses li strong { font-size: 15px; }
.connect-uses-never { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.connect-uses-never svg { width: 14px; height: 14px; flex: none; }
.connect-switch { margin: 16px 0 0; text-align: center; font-size: 14px; }
.connect-switch a { color: var(--focus); font-weight: 600; }

/* reCAPTCHA 안내 — 배지 대신 문구로 알린다(App Check 를 쓰는 계정 찾기·재설정 화면) */
.grecaptcha-badge { visibility: hidden; }
.auth-recaptcha { margin-top: 12px; text-align: center; font-size: 12px; line-height: 1.6; color: var(--muted); word-break: keep-all; }
.auth-recaptcha a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
