/* ============================================================
   InfraTree v2 — 인증 화면 (login / signup / forgot / reset)
   tokens.css + components.css 위. 로직은 기존 auth-pages.js 그대로.
   ============================================================ */
.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--it-sp-5);
  box-sizing: border-box;
}
.auth-box { width: 100%; max-width: 400px; }

.auth-brand { text-align: center; margin-bottom: var(--it-sp-5); }
.auth-brand-name {
  display: inline-block;
  font-family: var(--it-mono);
  font-weight: 600;
  font-size: 26px;
  color: var(--it-text);
  text-decoration: none;
}
.auth-brand-name .it-accent { color: var(--it-accent); }
.auth-brand-sub {
  font-size: var(--it-fs-sm);
  color: var(--it-text-2);
  margin: 8px 0 0;
  line-height: var(--it-lh);
}

.auth-card { display: grid; gap: var(--it-sp-3); }

/* 구분선 (소셜 / 이메일) */
.auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--it-muted);
  font-size: var(--it-fs-xs);
  margin: 4px 0;
}
.auth-or::before,
.auth-or::after { content: ""; flex: 1; height: 1px; background: var(--it-border); }

.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: var(--it-fs-sm);
}
.auth-links a { color: var(--it-text-2); text-decoration: none; }
.auth-links a:hover { color: var(--it-text); text-decoration: underline; }

.auth-foot {
  margin: var(--it-sp-4) 0 0;
  text-align: center;
  font-size: var(--it-fs-xs);
  color: var(--it-muted);
  line-height: var(--it-lh);
}
.auth-foot a { color: var(--it-text-2); }

/* ---- auth-pages.js가 주입/제어하는 레거시 마크업 호환 ---- */
.auth-shell .form-status {
  margin: 0;
  font-size: var(--it-fs-sm);
  line-height: var(--it-lh);
  color: var(--it-text-2);
}
.auth-shell .form-status:empty { display: none; }
.auth-shell .form-status.is-error { color: var(--it-st-danger); }
.auth-shell .form-status.is-success { color: var(--it-accent); }
.auth-shell .form-status a { color: var(--it-accent); }
.auth-shell .form-note {
  margin: 0;
  font-size: var(--it-fs-xs);
  color: var(--it-muted);
  line-height: var(--it-lh);
}
.auth-shell .form-note:empty { display: none; }

/* 소셜 공급자 카드 (auth-pages.js renderSocialProviders) */
.auth-social { display: grid; gap: var(--it-sp-3); }
.auth-social-summary { font-size: var(--it-fs-xs); color: var(--it-muted); }
.social-auth-grid { display: grid; gap: var(--it-sp-3); }
.social-auth-grid:empty { display: none; }
.social-auth-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  box-sizing: border-box;
  background: var(--it-panel-2);
  color: var(--it-text);
  border: 1px solid var(--it-border-2);
  border-radius: var(--it-radius-sm);
  font-size: var(--it-fs-base);
  font-weight: 600;
  text-decoration: none;
}
.social-auth-card:hover { background: var(--it-panel); border-color: var(--it-accent-line); }
.social-auth-icon { font-family: var(--it-mono); font-size: var(--it-fs-sm); }
.social-auth-grid .empty-state {
  padding: 10px 12px;
  border: 1px dashed var(--it-border-2);
  border-radius: var(--it-radius-sm);
  color: var(--it-muted);
  font-size: var(--it-fs-sm);
}
.social-auth-grid .empty-state strong { font-weight: 500; }
