:root {
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1d1732;
  background: #fff;
  --purple: #6845f7;
  --muted: #665f78;
  --subtle: #88829c;
  --line: #ebe7f2;
  --soft: #f0ebff;
  --sidebar: #faf9fc;
  --gutter: clamp(18px, 2.25vw, 36px);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
button, input, select { font: inherit; color: inherit; }
button, input, select { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 8px 12px; }
button { cursor: pointer; }
button:disabled { opacity: .48; cursor: default; }
/* Keep keyboard focus visible without drawing an outer ring. */
:focus { outline: none; }
button:focus-visible, summary:focus-visible {
  text-decoration: underline;
  text-underline-offset: .22em;
  filter: brightness(.92);
}
input:not([type=checkbox]):not([type=radio]):focus, textarea:focus, select:focus { background-color: #f7f3fd; }
input:is([type=checkbox],[type=radio]):focus-visible { filter: brightness(.78); }
button svg, .search-field svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.primary { background: var(--purple); border-color: transparent; color: white; font-weight: 650; }
h1, h2, p { margin: 0; }

.login-layout { display: grid; grid-template-columns: 1fr 1fr; flex: 1; min-height: 540px; }
.login-art { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; color: #fff; }
.login-brand { display: flex; align-items: center; }
.login-pane { display: grid; place-items: center; }
#login, dialog form { display: grid; gap: 14px; }
#login { width: min(100%, 380px); }
#login p { color: var(--muted); }
#login label { display: grid; font-weight: 600; }
#login input { width: 100%; min-width: 0; font-weight: 400; }
#login .primary { min-height: 44px; margin-top: 4px; }
#login #login-error {
  margin: 0;
  padding: 10px 12px;
  color: #8a382d;
  background: #fcf0ec;
  border: 1px solid #e8c3b9;
  border-radius: 9px;
  overflow-wrap: anywhere;
}
.password-field button { color: #5934d2; border: none; }
#login .login-options label { display: flex; gap: 7px; align-items: center; margin: 0; font-weight: 400; color: var(--muted); }
#login .login-options input { width: 17px; flex: 0 0 17px; }
/* Login artwork and form spacing follow the operations assistant. */
.login-art { position: relative; isolation: isolate; overflow: hidden; padding: 32px 24px 32px 16%; gap: 28px; background: #161022; }
.login-backdrop { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.login-brand { font-size: 20px; gap: 16px; }
.login-brand small { display: block; margin-top: 5px; letter-spacing: 2.2px; font-size: 9px; color: #d7cce9; }
.login-logo-art { position: relative; flex: none; display: block; overflow: hidden; width: clamp(64px,7vw,96px); aspect-ratio: 1; border-radius: 24%; box-shadow: 0 0 18px color(srgb .66 .35 1 / .48); }
.login-logo-art img { display: block; width: 100%; height: 100%; border-radius: 0; }
.login-logo-sweep { position: absolute; pointer-events: none; width: 42%; height: 155%; left: 29%; top: -27.5%; background: linear-gradient(90deg, transparent, #e0c2ff70, #ffffffb8, transparent); transform: translateX(-238%) rotate(25deg); animation: login-icon-sweep 950ms ease-out 250ms forwards; }
@keyframes login-icon-sweep { to { transform: translateX(238%) rotate(25deg); } }
.login-art p { color: #ffffffa6; font-size: 14px; line-height: 1.57; }
.login-art .login-headline { color: white; font-size: 34px; font-weight: 650; line-height: 1.4; margin: 42px 0 0; }
.login-pane { padding: 48px 40px; }
#login { gap: 22px; }
.login-form-heading { padding-bottom: 8px; }
.login-form-heading small { font-size: 9px; letter-spacing: 2px; color: var(--muted); }
.login-form-heading h1 { font-size: 27px; line-height: 1.35; margin: 12px 0; }
.login-form-heading p { font-size: 13px; }
#login label { gap: 9px; }
#login label:first-of-type { margin: 0; }
.login-field { display: flex; align-items: center; gap: 8px; padding: 11px 12px; min-height: 45px; border: 1px solid #e3dbea; border-radius: 8px; background: #fff; }
.login-field:focus-within { background-color: #f7f3fd; }
#login .login-field input { min-height: 0; padding: 0; border: 0; outline: 0; background: transparent; }
.login-field button { position: static; flex: none; display: inline-grid; place-items: center; padding: 4px; }
.login-field button svg { width: 16px; height: 16px; }
.login-field button[aria-pressed=false] .eye-strike { display: none; }
#login .login-options { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.login-submit { display: flex; align-items: center; justify-content: center; gap: 7px; }
.login-submit svg { width: 15px; height: 15px; }
.login-spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #ffffff66; border-right-color: #fff; animation: login-spinner 750ms linear infinite; }
@keyframes login-spinner { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .login-logo-sweep { display: none; }
  .login-spinner { animation: none; }
}
#login .login-options label:has(input:disabled) { color: #a6a0b4; cursor: default; }
#login .login-options input:disabled { opacity: .45; cursor: default; }