:root {
  --bg: #f6f7f9; --surface: #ffffff; --line: #e2e5ea; --text: #1b1f24; --muted: #5d6673;
  --brand: #2456d6; --brand-ink: #ffffff; --fail: #b42318; --fail-bg: #fdeceb;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", sans-serif; }

/* 카드가 하나라 화면 가운데에 두고, 카드 자체를 넓고 여유 있게 */
.wrap { width: min(400px, 100% - 32px); min-height: 100dvh; margin: 0 auto; padding: 40px 0; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.06); }

/* 카드 1 */
.main-card { padding: 56px 44px 40px; display: flex; flex-direction: column; align-items: center; }
.wordmark { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 30px; font-weight: 800; letter-spacing: -0.5px; }
.logo { display: block; width: 44px; height: 44px; border-radius: 11px; }
.tagline { margin: 14px 0 36px; text-align: center; font-size: 15px; color: var(--muted); line-height: 1.55; }

.error { width: 100%; margin: -12px 0 16px; padding: 10px 12px; border-radius: 8px; background: var(--fail-bg); color: var(--fail);
  font-size: 13px; line-height: 1.5; white-space: pre-line; text-align: center; word-break: keep-all; }

.sso { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.sso-btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: 10px;
  font-size: 15.5px; font-weight: 600; text-decoration: none; }
.sso-btn svg { position: absolute; left: 16px; }
.sso-btn:focus-visible { outline: 3px solid rgba(36, 86, 214, .35); outline-offset: 2px; }
/* 카카오 로그인 버튼 가이드: 배경 #FEE500, 글자 검정 85% */
.kakao { background: #FEE500; color: rgba(0, 0, 0, .85); }
.kakao:hover { background: #f5dc00; }
/* 구글 버튼 가이드: 흰 배경 + 회색 테두리 */
.google { background: #fff; color: #1f1f1f; border: 1px solid #dadce0; }
.google:hover { background: #f8f9fa; }

.divider { width: 100%; display: flex; align-items: center; gap: 16px; margin: 28px 0 20px; color: var(--muted); font-size: 13px; font-weight: 600; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.guest { color: var(--brand); font-size: 15px; font-weight: 600; text-decoration: none; }
.guest:hover { text-decoration: underline; }

.privacy { margin: 4px 0 0; text-align: center; font-size: 12px; color: var(--muted); line-height: 1.6; }
.privacy b { color: var(--text); }

@media (max-width: 400px) {
  .wrap { padding: 24px 0; }
  .main-card { padding: 44px 24px 32px; }
  .wordmark { font-size: 27px; }
}
