/* Authorization surface follows the legacy console language without importing app behavior. */
:root {
  --portal-bg: #f3f6fb;
  --portal-panel: #fff;
  --portal-line: #e2e8f0;
  --portal-text: #132238;
  --portal-muted: #64748b;
  --portal-blue: #2563eb;
  --portal-blue-dark: #1d4ed8;
  font-family: Inter, "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}
body {
  background: var(--portal-bg);
  color: var(--portal-text);
}
.portal-header {
  min-height: 72px;
  padding: 0 28px;
  background: #0f1f38;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.portal-brand { gap: 12px; font-weight: 800; }
.portal-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--portal-blue);
  box-shadow: 0 8px 18px rgba(37,99,235,.35);
}
.portal-header-note { color: #92a8c8; }
.auth-layout {
  min-height: calc(100vh - 72px);
  grid-template-columns: minmax(300px, 440px) minmax(360px, 500px);
  gap: 56px;
  padding: 36px 28px;
}
.auth-intro h1 { color: var(--portal-text); font-size: 38px; font-weight: 850; }
.auth-intro > p { color: var(--portal-muted); }
.admin-contact {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--portal-line);
}
.admin-contact-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}
.admin-contact-heading strong { font-size: 16px; }
.admin-contact-heading span { color: var(--portal-muted); font-size: 12px; }
.admin-contact-list { display: grid; gap: 9px; margin: 0; }
.admin-contact-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  min-height: 42px;
  overflow: hidden;
  border: 1px solid var(--portal-line);
  border-radius: 10px;
  background: #fff;
}
.admin-contact-item dt {
  align-self: stretch;
  display: grid;
  place-items: center;
  margin: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.admin-contact-item dd {
  min-width: 0;
  margin: 0;
  padding: 9px 12px;
  color: var(--portal-text);
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
  user-select: all;
}
.wechat-contact dt { background: #168f54; }
.qq-contact dt { background: #315f91; }
.auth-panel {
  border: 1px solid var(--portal-line);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 12px 34px rgba(15,35,70,.08);
}
.tabs { border-bottom-color: var(--portal-line); }
.tab.active { color: var(--portal-blue-dark); border-bottom-color: var(--portal-blue); }
.tab:focus-visible {
  outline: 3px solid rgba(37,99,235,.2);
  outline-offset: -3px;
  border-radius: 6px 6px 0 0;
}
.auth-panel input, .auth-panel select {
  min-height: 46px;
  border-color: #d7e0eb;
  border-radius: 10px;
}
.auth-panel input:focus, .auth-panel select:focus {
  border-color: #8cb0ff;
  box-shadow: 0 0 0 3px rgba(37,99,235,.09);
}
.auth-panel .primary { background: var(--portal-blue); border-radius: 12px; box-shadow: 0 8px 18px rgba(37,99,235,.18); }
.auth-panel .primary:hover { background: var(--portal-blue-dark); }
.auth-panel .secondary, .auth-panel .danger-button { border-radius: 12px; }
@media (max-width: 820px) {
  .portal-header { min-height: 70px; padding: 12px 18px; }
  .auth-layout {
    min-height: calc(100vh - 70px);
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    align-items: start;
    gap: 18px;
    padding: 22px 14px;
  }
  .auth-intro, .auth-panel { width: 100%; min-width: 0; }
  .auth-intro h1 { font-size: 30px; }
  .admin-contact { margin-top: 18px; padding-top: 14px; }
  .auth-panel { border-radius: 18px; padding: 22px 18px; }
}

@media (max-width: 430px) {
  .auth-layout { gap: 16px; padding-top: 18px; }
  .auth-intro h1 { margin-bottom: 8px; font-size: 28px; }
  .auth-intro > p { line-height: 1.6; }
  .admin-contact-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
}
