/* ============================================================
   auth.css — 인증·오류 공용 셸 (사이드바 없는 중앙 정렬)
   login.html + error-404/403/500.html 공유. console.css 토큰·
   .btn·.field·.card 위에 얹는 얇은 레이어. 애플풍 클린.
   ============================================================ */

.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}
.auth-inner { width: 100%; max-width: 400px; }

/* 상단 로고 존 */
.auth-brand {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 22px;
}
.auth-brand .logo-mark {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--primary); color: var(--primary-foreground);
}
.auth-brand .logo-name { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }

/* 카드 */
.auth-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 26px 24px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px rgba(15, 23, 42, 0.06);
}
.auth-h1 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.auth-sub { font-size: 13px; color: var(--muted-foreground); margin-top: 5px; line-height: 1.5; }
.auth-head { margin-bottom: 20px; }

/* 폭 100% 버튼 */
.btn-block { width: 100%; justify-content: center; }
.auth-card .field:last-of-type { margin-bottom: 18px; }
.auth-card .field input[type="email"],
.auth-card .field input[type="password"] {
  width: 100%; height: 40px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--card); color: var(--foreground);
  font-size: 14px; font-family: inherit;
}
.auth-card .field input:focus-visible { outline: 2px solid var(--ring); outline-offset: 0; border-color: transparent; }
.auth-card .field.invalid input { border-color: var(--destructive); }
.auth-card .field.invalid .err { display: flex; }

/* SSO 버튼 강조 아이콘 */
.sso-btn svg { flex: none; }

/* 구분선 */
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0; color: var(--muted-foreground); font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}

/* 하단 안내 */
.auth-foot { text-align: center; font-size: 12px; color: var(--muted-foreground); margin-top: 18px; line-height: 1.6; }
.auth-foot a { color: var(--primary); text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }

/* 우상단 테마 토글 */
.auth-theme {
  position: fixed; top: 18px; right: 18px;
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--border);
  color: var(--muted-foreground); cursor: pointer;
}
.auth-theme:hover { color: var(--foreground); }

/* ---------- 오류 페이지 ---------- */
.err-card { text-align: center; }
.err-code {
  font-family: var(--font-mono, ui-monospace, Menlo, monospace);
  font-size: 64px; line-height: 1; font-weight: 600;
  letter-spacing: -0.02em; color: var(--foreground);
}
.err-code .em { color: var(--destructive); }
.err-code .warnc { color: var(--warning); }
.err-badge {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 18px 0 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 500;
  font-family: var(--font-mono, ui-monospace, Menlo, monospace);
  background: var(--muted); color: var(--muted-foreground);
}
.err-title { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin-top: 10px; }
.err-desc { font-size: 14px; color: var(--muted-foreground); line-height: 1.6; margin: 8px auto 0; max-width: 320px; }
.err-actions { display: flex; gap: 8px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
