/* 누리툴 auth & verification pages — composes ds.css primitives */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); }
.auth-main { display: flex; flex-direction: column; padding: 28px 40px; background: var(--surface); }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-brand { display: flex; align-items: center; gap: 10px; }
.auth-form { width: min(400px, 100%); margin: auto; padding: 48px 0; }
.auth-form.wide { width: min(640px, 100%); }
.auth-form h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.3; }
.auth-form .lead { font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.65; }
.auth-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.auth-foot a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.or { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); margin: 20px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.auth-side { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 56px; background: var(--bg-2); border-left: 1px solid var(--border); }
.auth-side h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.35; max-width: 16ch; }
.auth-side .side-sub { font-size: 15px; color: var(--fg-2); max-width: 38ch; line-height: 1.65; }
.side-stack { position: relative; display: grid; gap: 10px; max-width: 440px; }
.side-stack .tcard { min-height: 0; pointer-events: none; box-shadow: var(--shadow-sm); }
.side-stack .tcard:nth-child(2) { margin-left: 28px; }
.side-stack .tcard:nth-child(3) { margin-left: 56px; }
.side-trust { display: grid; gap: 10px; font-size: 13px; color: var(--fg-2); }
.side-trust span { display: flex; gap: 10px; align-items: center; }
.side-trust .ic { width: 16px; height: 16px; color: var(--success); }
.who { display: flex; flex-wrap: wrap; gap: 6px; }

/* steps */
.steps { display: flex; gap: 6px; margin-bottom: 28px; list-style: none; padding: 0; }
.steps li { flex: 1; display: flex; flex-direction: column; gap: 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.steps li::before { content: ''; height: 3px; border-radius: 99px; background: var(--border); }
.steps li.is-done::before { background: var(--success); }
.steps li.is-current { color: var(--fg); }
.steps li.is-current::before { background: var(--fg); }

/* status timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding-bottom: 22px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ''; position: absolute; left: 13px; top: 28px; bottom: 2px; width: 2px; background: var(--border); }
.timeline li:last-child::before { display: none; }
.timeline .tl-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); color: var(--muted); border: 1px solid var(--border); position: relative; z-index: 1; }
.timeline .tl-dot .ic { width: 14px; height: 14px; }
.timeline .is-done .tl-dot { background: var(--success-soft); color: var(--success); border-color: oklch(88% .06 155); }
.timeline .is-done::before { background: oklch(84% .08 155); }
.timeline .is-current .tl-dot { background: var(--fg); color: var(--surface); border-color: var(--fg); }
.timeline .is-warn .tl-dot { background: var(--warning-soft); color: var(--warning); border-color: oklch(88% .06 75); }
.timeline b { font-size: 14px; display: block; }
.timeline .t-meta { margin-top: 2px; }
.pulse { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }

@media (max-width: 960px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
}
@media (max-width: 720px) {
  .auth-main { padding: 18px 16px; }
  .auth-form { padding: 32px 0; }
  .auth-form h1 { font-size: 22px; }
}

[data-theme="dark"] .timeline .is-done .tl-dot { border-color: color-mix(in srgb, var(--success) 40%, transparent); }
[data-theme="dark"] .timeline .is-done::before { background: color-mix(in srgb, var(--success) 45%, transparent); }
[data-theme="dark"] .timeline .is-warn .tl-dot { border-color: color-mix(in srgb, var(--warning) 40%, transparent); }

/* Google 로그인 버튼 — Google 브랜드 가이드(Sign in with Google) 규격: 공식 'G' 로고 20px, 밝은 테마 흰 바탕 #747775 테두리, 어두운 테마 #131314 바탕 #8E918F 테두리, Roboto 500 */
.btn-google { gap: 12px; background: #fff; color: #1f1f1f; border: 1px solid #747775; font-family: Roboto, "Noto Sans KR", var(--font-sans, system-ui), sans-serif; font-weight: 500; letter-spacing: .25px; }
.btn-google:hover { background: #f5f5f5; box-shadow: 0 1px 2px rgba(60, 64, 67, .3); }
.btn-google:active { background: #ececec; }
.btn-google .g-logo { width: 20px; height: 20px; flex: none; }
[data-theme="dark"] .btn-google { background: #131314; color: #e3e3e3; border-color: #8e918f; }
[data-theme="dark"] .btn-google:hover { background: #1f1f20; }
[data-theme="dark"] .btn-google:active { background: #2a2a2b; }
