:root {
  color-scheme: light dark;
  --auth-bg: #f4f7fb;
  --auth-panel: rgba(255, 255, 255, .9);
  --auth-panel-solid: #fff;
  --auth-ink: #14233b;
  --auth-muted: #68778d;
  --auth-subtle: #8b98aa;
  --auth-border: #dce4ef;
  --auth-border-strong: #c8d4e4;
  --auth-primary: #315cf6;
  --auth-primary-hover: #2548ce;
  --auth-teal: #0c9f8a;
  --auth-danger: #c93e4c;
  --auth-danger-bg: #fff1f2;
  --auth-success: #097257;
  --auth-success-bg: #e9f8f2;
  --auth-shadow: 0 24px 72px rgba(30, 51, 83, .14), 0 2px 6px rgba(30, 51, 83, .04);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body.auth-page {
  margin: 0;
  min-width: 320px;
  color: var(--auth-ink);
  background: var(--auth-bg);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .38;
  background-image: radial-gradient(circle at 12% 10%, rgba(49, 92, 246, .11), transparent 32%), radial-gradient(circle at 92% 88%, rgba(12, 159, 138, .10), transparent 28%);
}
a { color: var(--auth-primary); text-decoration: none; }
a:hover { color: var(--auth-primary-hover); }

.auth-shell {
  display: grid;
  grid-template-columns: minmax(360px, 46%) minmax(480px, 1fr);
  min-height: 100vh;
  position: relative;
  isolation: isolate;
}
.auth-shell--admin { display: block; padding: 40px; }
.auth-shell--admin .auth-brand { display: none; }
.auth-shell--admin .auth-panel { max-width: 1180px; min-height: calc(100vh - 80px); margin: 0 auto; }
.auth-shell--admin .auth-panel-inner { max-width: none; }
.auth-brand {
  display: flex;
  position: relative;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(32px, 5vw, 76px);
  color: #edf4ff;
  background: #101b2d;
}
.auth-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .72;
  background: radial-gradient(circle at 25% 16%, rgba(62, 104, 246, .35), transparent 33%), radial-gradient(circle at 90% 88%, rgba(31, 207, 171, .28), transparent 28%);
}
.auth-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .34;
  background: linear-gradient(120deg, transparent 0 48%, rgba(255,255,255,.06) 48.2% 48.5%, transparent 48.7%);
  pointer-events: none;
}
.brand-panel-top, .brand-panel-foot, .brand-visual { position: relative; z-index: 1; }
.brand-panel-top .brand-lockup { color: #f7fbff; }
.brand-lockup { display: inline-flex; align-items: center; gap: 10px; width: fit-content; color: var(--auth-ink); }
.brand-lockup:hover { color: inherit; }
.brand-tagline { margin: 14px 0 0 46px; color: #aab9cf; font-size: 13px; letter-spacing: .08em; }
.brand-mark { width: 36px; height: 36px; flex: 0 0 auto; }
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: .08em; white-space: nowrap; }
.brand-product { margin-left: 2px; color: var(--auth-subtle); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10px; font-weight: 600; letter-spacing: .14em; }
.auth-brand .brand-product { color: #95a7c0; }
.brand-lockup--compact { display: none; margin-bottom: 34px; }
.brand-lockup--compact .brand-mark { width: 30px; height: 30px; }
.brand-lockup--compact .brand-name { font-size: 15px; }
.brand-visual { min-height: 380px; margin: 10vh -12% 4vh; opacity: .88; }
.visual-grid { position: absolute; inset: 2% 0 5%; animation: grid-breathe 16s ease-in-out infinite alternate; background-image: linear-gradient(rgba(151, 180, 217, .10) 1px, transparent 1px), linear-gradient(90deg, rgba(151, 180, 217, .10) 1px, transparent 1px); background-size: 48px 48px; transform: perspective(600px) rotateX(50deg) rotateZ(-10deg) scale(1.4); transform-origin: center bottom; mask-image: linear-gradient(to bottom, transparent, #000 26%, #000 72%, transparent); }
.visual-line { position: absolute; display: block; height: 72%; width: 130%; left: -10%; bottom: 8%; border-top: 3px solid #65dec2; transform: rotate(-17deg); filter: drop-shadow(0 0 12px rgba(46, 214, 176, .28)); }
.visual-line--one { animation: line-drift 12s ease-in-out infinite alternate; clip-path: polygon(0 88%, 12% 82%, 19% 84%, 31% 58%, 42% 67%, 53% 44%, 65% 47%, 76% 23%, 86% 31%, 100% 0, 100% 5%, 0 93%); background: linear-gradient(100deg, transparent, #2ed6b0 55%, #7c9bff); border: 0; }
.visual-line--two { bottom: 21%; left: 12%; width: 95%; height: 42%; border-top: 1px solid rgba(124, 155, 255, .50); transform: rotate(-12deg); opacity: .7; }
.visual-dot { position: absolute; width: 12px; height: 12px; border: 3px solid #101b2d; border-radius: 99px; background: #62e2c1; box-shadow: 0 0 0 5px rgba(98, 226, 193, .14), 0 0 20px rgba(98, 226, 193, .52); }
.visual-dot--one { right: 22%; top: 28%; animation: dot-pulse 4.8s ease-in-out infinite; }
.visual-dot--two { right: 9%; top: 13%; animation: dot-pulse 6.2s ease-in-out infinite reverse; background: #a7baff; box-shadow: 0 0 0 5px rgba(167, 186, 255, .14), 0 0 20px rgba(167, 186, 255, .52); }
.brand-panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; color: #7f91ab; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10px; letter-spacing: .14em; }
.brand-live { display: inline-flex; align-items: center; gap: 7px; color: #92a5be; }
.brand-live i { width: 6px; height: 6px; border-radius: 50%; background: #2ed6b0; box-shadow: 0 0 0 4px rgba(46, 214, 176, .12); }

.auth-panel { display: flex; align-items: center; justify-content: center; min-width: 0; padding: 56px clamp(26px, 7vw, 110px); background: var(--auth-panel); backdrop-filter: blur(18px); }
.auth-panel--narrow .auth-panel-inner { max-width: 440px; }
.auth-panel-inner { width: min(100%, 460px); }
.auth-eyebrow { margin-bottom: 12px; color: var(--auth-primary); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
h1 { margin: 0; color: var(--auth-ink); font-size: clamp(28px, 3vw, 38px); font-weight: 720; letter-spacing: -.035em; line-height: 1.15; }
.auth-lead { margin: 12px 0 28px; color: var(--auth-muted); font-size: 14px; }
.auth-form { display: grid; gap: 15px; }
.field { display: grid; gap: 7px; margin: 0; }
.field-label { color: var(--auth-ink); font-size: 12px; font-weight: 650; }
.field-input, select { width: 100%; min-height: 48px; border: 1px solid var(--auth-border); border-radius: 10px; outline: none; background: var(--auth-panel-solid); color: var(--auth-ink); font: inherit; padding: 0 14px; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.field-input::placeholder { color: #a1acbb; }
.field-input:hover, select:hover { border-color: var(--auth-border-strong); }
.field-input:focus, select:focus { border-color: var(--auth-primary); box-shadow: 0 0 0 2px rgba(49, 92, 246, .10); }
.field-input:user-invalid:not(:focus), select:user-invalid:not(:focus) { border-color: var(--auth-danger); background: var(--auth-danger-bg); }
.field-input:user-invalid:not(:focus)::placeholder { color: var(--auth-danger); }
.field-input:focus-visible, select:focus-visible, .otp-cell:focus-visible { outline: 1px solid rgba(49, 92, 246, .16); outline-offset: 1px; }
.field-help { margin: -3px 0 2px; color: var(--auth-subtle); font-size: 12px; line-height: 1.55; }
.auth-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; margin-top: 4px; border: 0; border-radius: 10px; cursor: pointer; background: var(--auth-primary); color: #fff; font: inherit; font-weight: 650; box-shadow: 0 8px 18px rgba(49, 92, 246, .20); transition: background .18s ease, transform .18s ease, box-shadow .18s ease; }
.auth-button:hover { background: var(--auth-primary-hover); box-shadow: 0 10px 24px rgba(49, 92, 246, .27); transform: translateY(-1px); }
.auth-button[aria-busy="true"] { cursor: wait; opacity: .84; transform: none; }
.auth-button[aria-busy="true"] .button-spinner { display: inline-block; }
.auth-button:disabled { pointer-events: none; }
.auth-button:active { transform: translateY(0); }
.auth-button:focus-visible, .table-button:focus-visible, .back-link:focus-visible, .auth-switch a:focus-visible { outline: 3px solid rgba(49, 92, 246, .28); outline-offset: 2px; border-radius: 4px; }
.auth-button--small { min-height: 40px; padding: 0 16px; font-size: 13px; white-space: nowrap; }
.button-spinner { display: none; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.auth-form:has(.field-input:invalid) .auth-button { box-shadow: none; }
.field-input:-webkit-autofill, select:-webkit-autofill { -webkit-text-fill-color: var(--auth-ink); -webkit-box-shadow: 0 0 0 1000px var(--auth-panel-solid) inset; transition: background-color 9999s ease-out; }
.field-input:disabled, select:disabled { cursor: not-allowed; opacity: .58; }
.security-status { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 18px; padding: 13px 14px; border: 1px solid var(--auth-border); border-radius: 11px; background: rgba(223, 231, 242, .32); }
.security-status--on { border-color: #b9eadc; background: var(--auth-success-bg); }
.security-status strong { display: block; color: var(--auth-ink); font-size: 13px; }
.security-status p { margin: 3px 0 0; color: var(--auth-muted); font-size: 12px; line-height: 1.45; }
.state-dot { display: block; flex: 0 0 9px; width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: var(--auth-subtle); box-shadow: 0 0 0 4px rgba(131, 146, 168, .14); }
.security-status--on .state-dot { background: var(--auth-success); box-shadow: 0 0 0 4px rgba(9, 114, 87, .13); }
.auth-alert { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 18px; padding: 11px 13px; border: 1px solid transparent; border-radius: 10px; font-size: 13px; line-height: 1.45; }
.auth-alert__icon { display: inline-grid; flex: 0 0 18px; width: 18px; height: 18px; place-items: center; border-radius: 50%; font-size: 11px; font-weight: 800; }
.auth-alert--error { border-color: #ffd0d4; background: var(--auth-danger-bg); color: var(--auth-danger); }
.auth-alert--error .auth-alert__icon { background: #f5bdc3; color: #8f1f2b; }
.auth-alert--success { border-color: #b9eadc; background: var(--auth-success-bg); color: var(--auth-success); }
.auth-alert--success .auth-alert__icon { background: #9ddfcb; color: #065642; }
.auth-alert--muted { border-color: var(--auth-border); background: rgba(223, 231, 242, .45); color: var(--auth-muted); }
.auth-switch { margin: 22px 0 0; color: var(--auth-muted); font-size: 13px; text-align: center; }
.auth-switch a { font-weight: 650; }
.auth-note { margin: 22px 0 0; color: var(--auth-subtle); font-size: 12px; text-align: center; }
.auth-form--otp { gap: 12px; }
.otp-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; margin: 4px 0 3px; }
.otp-cell { width: 100%; min-width: 0; height: 58px; border: 1px solid var(--auth-border); border-radius: 11px; outline: none; background: var(--auth-panel-solid); color: var(--auth-ink); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 23px; font-weight: 650; text-align: center; transition: border-color .18s ease, box-shadow .18s ease; }
.otp-cell:focus { border-color: var(--auth-primary); box-shadow: 0 0 0 2px rgba(49, 92, 246, .10); }
.qr-wrap { display: grid; min-height: 220px; place-items: center; margin: 8px 0 20px; padding: 15px; border: 1px solid var(--auth-border); border-radius: 14px; background: #fff; }
.qr-code { display: block; width: 190px; height: 190px; }
.qr-fallback { padding: 20px; color: var(--auth-muted); font-size: 13px; text-align: center; }
.secret-label { margin: 0 0 6px; color: var(--auth-muted); font-size: 12px; }
.secret-code { display: block; overflow-wrap: anywhere; margin: 0 0 18px; padding: 11px 13px; border: 1px solid var(--auth-border); border-radius: 9px; background: rgba(216, 226, 240, .42); color: var(--auth-ink); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; text-align: center; }

.admin-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.back-link { display: inline-flex; flex: 0 0 auto; align-items: center; min-height: 38px; padding: 0 13px; border: 1px solid var(--auth-border); border-radius: 9px; color: var(--auth-muted); font-size: 13px; }
.back-link:hover { border-color: var(--auth-border-strong); color: var(--auth-ink); }
.admin-section { margin-top: 18px; padding: 22px; border: 1px solid var(--auth-border); border-radius: 14px; background: rgba(255,255,255,.42); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.section-heading h2 { margin: 0 0 4px; font-size: 15px; letter-spacing: -.01em; }
.section-heading p { margin: 0; color: var(--auth-muted); font-size: 12px; }
.table-scroll { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th { color: var(--auth-subtle); font-size: 11px; font-weight: 650; letter-spacing: .04em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.admin-table th, .admin-table td { padding: 12px 10px; border-bottom: 1px solid var(--auth-border); text-align: left; vertical-align: middle; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.role-pill, .state-pill { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 99px; font-size: 11px; font-weight: 650; }
.role-pill { background: #edf2ff; color: #315cf6; }
.role-pill--admin { background: #e9f8f2; color: #08745b; }
.state-pill--on { background: #e9f8f2; color: #08745b; }
.state-pill--off { background: #fff1f2; color: #c93e4c; }
.table-actions { min-width: 510px; }
.inline-form { display: inline-flex; align-items: center; gap: 6px; margin: 0 5px 4px 0; vertical-align: middle; }
.inline-form select { width: auto; min-height: 34px; padding: 0 9px; font-size: 12px; }
.inline-form input { width: 112px; min-height: 34px; border: 1px solid var(--auth-border); border-radius: 8px; padding: 0 9px; background: var(--auth-panel-solid); color: var(--auth-ink); font: inherit; font-size: 12px; }
.table-button { min-height: 34px; border: 0; border-radius: 8px; padding: 0 10px; cursor: pointer; background: var(--auth-primary); color: #fff; font: inherit; font-size: 12px; font-weight: 600; }
.table-button--quiet { border: 1px solid var(--auth-border); background: transparent; color: var(--auth-muted); }
.table-button--quiet:hover { border-color: var(--auth-border-strong); color: var(--auth-ink); }
.empty-cell { color: var(--auth-subtle); text-align: center !important; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes grid-breathe { from { transform: perspective(600px) rotateX(50deg) rotateZ(-10deg) scale(1.4) translate3d(-1%, 0, 0); } to { transform: perspective(600px) rotateX(50deg) rotateZ(-10deg) scale(1.46) translate3d(1%, -1%, 0); } }
@keyframes line-drift { from { transform: rotate(-17deg) translate3d(-1%, 0, 0); } to { transform: rotate(-16deg) translate3d(1%, -1%, 0); } }
@keyframes dot-pulse { 0%, 100% { opacity: .72; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@media (prefers-color-scheme: dark) {
  :root { --auth-bg: #0b1322; --auth-panel: rgba(16, 27, 46, .92); --auth-panel-solid: #121f34; --auth-ink: #eef4ff; --auth-muted: #a6b3c6; --auth-subtle: #8392a8; --auth-border: #2a3b56; --auth-border-strong: #3a4f70; --auth-danger-bg: #351d28; --auth-success-bg: #13352f; --auth-shadow: 0 24px 72px rgba(0,0,0,.28); }
  body.auth-page::before { opacity: .54; }
  .auth-panel { background: var(--auth-panel); }
  .auth-brand { background: #09111f; }
  .brand-lockup--compact { display: inline-flex; }
  .auth-panel-inner > .brand-lockup--compact .brand-mark { content: url('/static/brand/mark-a.svg'); }
  .auth-panel-inner > .brand-lockup--compact .brand-product { color: #8798b1; }
  .field-input, select, .otp-cell, .inline-form input { background: #101c30; }
  .auth-alert--muted { background: rgba(42, 59, 86, .42); }
  .admin-section { background: rgba(18, 31, 52, .56); }
  .role-pill { background: #202c50; }
  .qr-wrap { background: #fff; }
  .secret-code { background: rgba(42, 59, 86, .55); }
}
@media (prefers-color-scheme: light) { .auth-panel-inner > .brand-lockup--compact .brand-mark { content: url('/static/brand/mark-a-light.svg'); } }
@media (min-width: 861px) { .auth-panel { box-shadow: inset 18px 0 40px rgba(30, 51, 83, .025); } }
@media (max-width: 860px) {
  .auth-shell { display: block; min-height: 100vh; }
  .auth-brand { min-height: 190px; padding: 28px 26px; }
  .brand-visual { position: absolute; inset: -145px -8% auto auto; width: 75%; min-height: 310px; margin: 0; opacity: .50; transform: scale(.72); transform-origin: right center; }
  .brand-panel-foot { margin-top: 42px; }
  .auth-panel { min-height: calc(100vh - 190px); padding: 58px 26px 54px; }
  /* 手机认证页从品牌区下方自然起排，避免表单被垂直居中推到屏幕中段。 */
  .auth-shell:not(.auth-shell--admin) .auth-panel { align-items: flex-start; }
  .brand-lockup--compact { display: none; }
  .auth-shell--admin { padding: 18px; }
  .auth-shell--admin .auth-panel { min-height: calc(100vh - 36px); }
}
@media (max-width: 520px) {
  /* 管理页在手机上按信息卡呈现，避免四列表格压成不可读的窄字。 */
  .auth-shell--admin .auth-panel { align-items: flex-start; }
  .auth-shell--admin .auth-panel-inner { width: 100%; }
  .auth-shell--admin .admin-section { overflow: hidden; }
  .auth-shell--admin .table-scroll { overflow: visible; }
  .auth-shell--admin .admin-table,
  .auth-shell--admin .admin-table tbody,
  .auth-shell--admin .admin-table tr,
  .auth-shell--admin .admin-table td { display: block; width: 100%; }
  .auth-shell--admin .admin-table thead { display: none; }
  .auth-shell--admin .admin-table tr { padding: 6px 0; border-bottom: 1px solid var(--auth-border); }
  .auth-shell--admin .admin-table tbody tr:last-child { border-bottom: 0; }
  .auth-shell--admin .admin-table td {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 38px;
    padding: 8px 0;
    border-bottom: 0;
    font-size: 13px;
    line-height: 1.4;
  }
  .auth-shell--admin .admin-table td::before {
    color: var(--auth-subtle);
    content: "信息";
    font-size: 11px;
    font-weight: 650;
  }
  .auth-shell--admin .admin-table td:nth-child(1)::before { content: "账号"; }
  .auth-shell--admin .admin-table td:nth-child(2)::before { content: "角色"; }
  .auth-shell--admin .admin-table td:nth-child(3)::before { content: "状态"; }
  .auth-shell--admin .admin-table td:nth-child(4)::before { content: "操作"; }
  .auth-shell--admin .admin-table td.empty-cell { display: block; padding: 16px 0; text-align: center !important; }
  .auth-shell--admin .admin-table td.empty-cell::before { display: none; }
  .auth-shell--admin .table-actions { display: flex; min-width: 0; align-items: stretch; flex-direction: column; gap: 8px; }
  /* td 的表格规则优先级更高，显式声明操作区为整行 flex，保证密码输入框可用。 */
  .auth-shell--admin .admin-table td.table-actions { display: flex; width: 100%; min-width: 0; align-items: stretch; flex-direction: column; gap: 8px; }
  .auth-shell--admin .inline-form { display: flex; width: 100%; align-items: center; margin: 0; }
  .auth-shell--admin .inline-form select,
  .auth-shell--admin .inline-form input { min-width: 0; flex: 1 1 auto; width: auto; }
  .auth-shell--admin .inline-form .table-button { flex: 0 0 auto; }

  /* 邀请表：ID、时间、状态、操作。 */
  .auth-shell--admin .admin-section:nth-of-type(3) .admin-table td:nth-child(1)::before { content: "邀请码"; }
  .auth-shell--admin .admin-section:nth-of-type(3) .admin-table td:nth-child(2)::before { content: "创建时间"; }
  .auth-shell--admin .admin-section:nth-of-type(3) .admin-table td:nth-child(3)::before { content: "状态"; }
  .auth-shell--admin .admin-section:nth-of-type(3) .admin-table td:nth-child(4)::before { content: "操作"; }
  /* 操作日志：时间、操作者、动作、对象。 */
  .auth-shell--admin .admin-section:nth-of-type(4) .admin-table td:nth-child(1)::before { content: "时间"; }
  .auth-shell--admin .admin-section:nth-of-type(4) .admin-table td:nth-child(2)::before { content: "操作者"; }
  .auth-shell--admin .admin-section:nth-of-type(4) .admin-table td:nth-child(3)::before { content: "动作"; }
  .auth-shell--admin .admin-section:nth-of-type(4) .admin-table td:nth-child(4)::before { content: "对象"; }
  .auth-brand { min-height: 166px; padding: 23px 20px; }
  .auth-brand .brand-mark { width: 32px; height: 32px; }
  .auth-brand .brand-name { font-size: 15px; }
  .auth-brand .brand-product { display: none; }
  .brand-tagline { margin: 11px 0 0 42px; font-size: 12px; letter-spacing: .06em; }
  .brand-panel-foot { margin-top: 30px; font-size: 9px; }
  .brand-panel-foot > span:first-child { display: none; }
  .auth-panel { min-height: calc(100vh - 166px); padding: 58px 20px 44px; }
  h1 { font-size: 29px; }
  .auth-lead { margin-bottom: 24px; }
  .otp-grid { gap: 6px; }
  .otp-cell { height: 52px; font-size: 20px; }
  .admin-head, .section-heading { align-items: flex-start; flex-direction: column; }
  .admin-section { padding: 16px; }
  .auth-shell--admin { padding: 10px; }
  .auth-shell--admin .auth-panel { min-height: calc(100vh - 20px); }
}

/* V2 认证页：Stripe / Linear 风格的单列居中卡；品牌资产保留在卡内，字段接口不变。 */
.auth-shell--centered{display:grid;grid-template-columns:minmax(0,560px);place-content:center;min-height:100vh;padding:48px 24px;background:var(--auth-bg)}
.auth-shell--centered .auth-brand{display:none}.auth-shell--centered .auth-panel{min-width:0;padding:0;background:transparent;backdrop-filter:none}.auth-shell--centered .auth-panel-inner{width:100%;max-width:560px;padding:40px;background:var(--auth-panel-solid);border:1px solid var(--auth-border);border-radius:18px;box-shadow:var(--auth-shadow)}
.auth-shell--centered .brand-lockup--compact{display:inline-flex;margin-bottom:32px}.auth-shell--centered .brand-lockup--compact .brand-mark{width:34px;height:34px}.auth-shell--centered .auth-panel-inner>h1{font-size:32px}.auth-shell--centered .auth-switch{text-align:left}
@media(max-width:600px){.auth-shell--centered{padding:20px 14px;align-items:center}.auth-shell--centered .auth-panel-inner{padding:28px 22px;border-radius:16px}.auth-shell--centered .auth-panel-inner>h1{font-size:28px}.auth-shell--centered .brand-lockup--compact{margin-bottom:26px}}

/* Unified professional shell for system pages (/users, /settings, /sessions). */
.auth-shell--unified { display:block; min-height:100vh; position:relative; isolation:isolate; }
.auth-shell--unified .auth-admin-main { min-width:0; padding:32px; background:var(--tj-bg, #f6f8fc); }
.auth-shell--unified .auth-admin-main > .auth-panel-inner { width:100%; max-width:none; }
.auth-shell--unified .admin-head { margin-bottom:24px; }
.auth-shell--unified .admin-section { margin-top:16px; background:var(--tj-surface, #fff); border-color:var(--tj-line, #e4e7ec); }
.auth-shell--unified .auth-lead { color:var(--tj-muted, #667085); }
.auth-shell--unified .auth-eyebrow { color:var(--tj-brand, #315cf6); }
.auth-shell--unified .back-link { border-color:var(--tj-line, #e4e7ec); color:var(--tj-muted, #667085); }
@media (max-width:760px) {
  .auth-shell--unified .auth-admin-main { padding:18px 12px 28px; }
  .auth-shell--unified .admin-head { gap:12px; margin-bottom:18px; }
  .auth-shell--unified .admin-head h1 { font-size:24px; }
  .auth-shell--unified .admin-section { padding:15px 12px; overflow:hidden; }
}
