@font-face {
  font-family: "DingTalk JinBuTi";
  src: url("?asset=settings-brand-font&v=66c14be874b13a0c") format('woff');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --canvas: #090909;
  --surface: #171717;
  --ink: #f5f5f5;
  --muted: #aaa6a6;
  --accent: #df1728;
  --accent-hover: #c81323;
  --line: #323030;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button, a, input { outline-offset: 5px; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid #ff7882; }

.auth-screen {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(72px + env(safe-area-inset-top, 0px)) 48px 28px;
}
.auth-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 100%;
  max-width: 1040px;
  margin: auto;
}
.brand-art {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  padding: 24px 72px 24px 16px;
  border-right: 1px solid var(--line);
}
.brand-symbol {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 236px;
  aspect-ratio: 508 / 864;
  overflow: hidden;
  mix-blend-mode: screen;
}
/* Display a close crop of the supplied image without changing its pixels. */
.brand-symbol img {
  position: absolute;
  width: 246.8504%;
  height: auto;
  max-width: none;
  left: -73.4252%;
  top: -19.4444%;
}
.auth-card { width: 100%; max-width: 400px; margin-left: auto; padding-left: 0; }
.brand-hero { margin-bottom: 42px; }
.brand-title {
  margin: 0 0 14px;
  font-family: "DingTalk JinBuTi", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 400;
  font-synthesis: none;
  font-size: 68px;
  line-height: 1.16;
  letter-spacing: .04em;
  color: var(--ink);
  white-space: nowrap;
}
.brand-intro { margin: 0; color: var(--muted); font-size: 20px; line-height: 1.6; letter-spacing: .04em; }
.brand-mobile { display: none; }
.system-switch { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; margin: 24px 0 0; padding: 14px 18px; border: 1px solid #f5f5f5; border-radius: 6px; background: #f5f5f5; color: #171717; font-size: 18px; font-weight: 650; line-height: 1.5; transition: background 180ms ease, border-color 180ms ease; }
.system-switch:hover { background: #fff; border-color: #fff; }
.system-switch svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.system-switch-icon { width: 24px; height: 24px; color: var(--accent); }
.system-switch-arrow { width: 22px; height: 22px; margin-left: auto; transition: transform 180ms ease; }
.system-switch:hover .system-switch-arrow { transform: translateX(3px); }
.auth-card form { display: flex; flex-direction: column; gap: 18px; margin: 0; }
.label { display: block; margin-bottom: 11px; font-size: 13px; line-height: 1.5; color: #d8d5d5; }
.password-field {
  display: flex;
  align-items: stretch;
  border: 1px solid #656060;
  border-radius: 6px;
  background: var(--surface);
  transition: border-color 180ms ease;
}
.password-field:focus-within { border-color: #ff7882; outline: 2px solid #ff7882; outline-offset: 3px; }
.password-field input {
  min-width: 0;
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  outline: none;
  color: var(--ink);
  font-size: 16px;
}
.password-field input::placeholder { color: #aaa6a6; font-size: 14px; }
.password-field button {
  min-width: 64px;
  padding: 0 16px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #c6c1c1;
  font-size: 13px;
  transition: color 180ms ease;
}
.password-field button:hover { color: #fff; }
.remember-password-row { display: flex; align-items: center; gap: 9px; min-height: 44px; margin: -10px 0; color: #c0bbbb; font-size: 12px; line-height: 1.6; cursor: pointer; }
.remember-password-row input { width: 16px; height: 16px; flex: 0 0 auto; margin: 0; accent-color: var(--accent); }
.remember-note { color: var(--muted); }
.auth-card button.primary {
  min-height: 56px;
  width: 100%;
  margin-top: 4px;
  padding: 12px 20px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: .12em;
  transition: background 180ms ease, transform 180ms ease;
}
.auth-card button.primary:hover { background: var(--accent-hover); }
.auth-card button.primary:active { transform: translateY(1px); }
.auth-card button.primary:disabled { cursor: wait; background: #8d252f; color: #f4dfe1; }
.trial-button { min-height: 44px; border: 1px solid #656060; border-radius: 6px; background: transparent; color: var(--ink); }
.auth-error { color: #ff9da6; font-size: 13px; line-height: 1.6; }
.auth-error:empty { display: none; }
.password-field:has(input[aria-invalid="true"]) { border-color: #ff9da6; }
.auth-download {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 80px;
  margin-top: 27px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: color 180ms ease;
}
.download-tv { width: 25px; height: 25px; flex: 0 0 auto; color: #c6c1c1; }
.download-copy { display: flex; flex-direction: column; gap: 5px; }
.download-copy strong { font-size: 18px; line-height: 1.5; font-weight: 550; }
.download-copy small { font-size: 11px; line-height: 1.4; color: var(--muted); }
.download-arrow { width: 20px; height: 20px; margin-left: auto; color: #c6c1c1; transition: transform 180ms ease; }
.auth-download:hover { color: #ff919b; }
.auth-download:hover .download-arrow { transform: translateY(2px); color: #ff919b; }
.auth-download svg, .auth-guide-link svg { fill: none; stroke: currentColor; stroke-width: 1.5; }
.auth-links { display: flex; justify-content: flex-end; margin-top: 14px; }
.auth-guide-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-size: 12px; color: var(--muted); transition: color 180ms ease; }
.auth-guide-link svg { width: 14px; height: 14px; }
.auth-guide-link:hover { color: var(--ink); }
.auth-footer { margin-top: 48px; text-align: center; color: #9d9797; font-size: 11px; line-height: 1.5; }
.auth-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.auth-footer a:hover { color: var(--ink); }

@media (max-width: 1050px) {
  .auth-main { column-gap: 48px; }
  .brand-art { padding-right: 48px; }
  .brand-symbol { width: 190px; }
  .brand-title { font-size: 60px; }
}
@media (max-width: 760px) {
  .auth-screen { padding: calc(48px + env(safe-area-inset-top, 0px)) 28px 18px; }
  .auth-main { display: block; max-width: 400px; }
  .brand-art { display: none; }
  .auth-card { max-width: none; }
  .brand-hero { display: flex; align-items: center; gap: 25px; margin-bottom: 38px; }
  .brand-mobile { display: block; width: 49px; }
  .brand-title { font-size: 53px; margin-bottom: 8px; letter-spacing: .015em; }
  .brand-intro { font-size: 18px; letter-spacing: .02em; }
  .auth-footer { margin-top: 42px; }
}
@media (max-width: 359px) {
  .auth-screen { padding: calc(32px + env(safe-area-inset-top, 0px)) 22px 16px; }
  .brand-hero { gap: 20px; margin-bottom: 32px; }
  .brand-mobile { width: 42px; }
  .brand-title { font-size: 45px; }
  .brand-intro { font-size: 18px; letter-spacing: 0; }
  .remember-password-row { gap: 7px; font-size: 11px; }
}
@media (max-height: 700px) and (min-width: 761px) {
  .auth-screen { padding-top: calc(36px + env(safe-area-inset-top, 0px)); padding-bottom: 16px; }
  .brand-hero { margin-bottom: 24px; }
  .auth-footer { margin-top: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
