/* =========================================================
   笔触隅 · 登录页
   Editorial architecture hero + focused workspace access
   ========================================================= */

:root {
  --ink-950: #07120f;
  --ink-900: #0a1a16;
  --ink-800: #10251f;
  --paper-50: #fbf9f3;
  --paper-100: #f5f1e7;
  --paper-200: #e8e2d4;
  --text: #17201c;
  --muted: #6d756f;
  --line: #dcd8cc;
  --emerald: #0b6b62;
  --emerald-bright: #28a792;
  --gold: #e5bd7c;
  --rust: #d95d3f;
  --white: #fbfaf6;
  --font-sans: "Noto Sans SC", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", "Cascadia Mono", "Consolas", monospace;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

.auth-body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--ink-950);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.auth-body button,
.auth-body input { font: inherit; }

.auth-body button { -webkit-tap-highlight-color: transparent; }

.login-shell {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--ink-950);
}

/* ---------------- left / architectural showcase ---------------- */
.login-showcase {
  position: relative;
  isolation: isolate;
  min-width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  padding: 44px 52px 34px;
  color: var(--white);
  background:
    radial-gradient(900px 760px at 62% 82%, rgba(24, 112, 92, .13), transparent 72%),
    radial-gradient(620px 540px at 8% 2%, rgba(101, 126, 103, .06), transparent 78%),
    linear-gradient(126deg, #06130f 0%, #081a15 51%, #0a211a 100%);
}

.login-showcase::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 15, 12, .78) 0%, rgba(5, 15, 12, .38) 31%, rgba(5, 15, 12, .04) 66%, transparent 82%),
    linear-gradient(0deg, rgba(4, 13, 10, .58) 0%, transparent 26%, transparent 80%, rgba(4, 13, 10, .18) 100%);
}

.login-showcase::after { display: none; }

.showcase-grid {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .26;
  background-image:
    linear-gradient(rgba(169, 198, 183, .10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 198, 183, .10) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 56% 58%, #000 0%, rgba(0,0,0,.46) 48%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 56% 58%, #000 0%, rgba(0,0,0,.46) 48%, transparent 78%);
}

.showcase-grid::after {
  content: "";
  position: absolute;
  top: 12%;
  left: 52px;
  width: 1px;
  height: 61%;
  background: linear-gradient(180deg, transparent, rgba(229, 189, 124, .28), transparent);
}

.showcase-glow {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(5px);
}

.glow-top {
  top: -320px;
  left: 12%;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(42, 145, 121, .08), transparent 70%);
}

.glow-side {
  right: -260px;
  bottom: -330px;
  width: 760px;
  height: 760px;
  background: radial-gradient(circle, rgba(25, 133, 112, .13), transparent 69%);
}

.showcase-grain {
  position: absolute;
  z-index: 5;
  inset: 0;
  opacity: .085;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.showcase-header {
  position: relative;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--white);
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 2px;
  background: var(--paper-50);
  box-shadow: 0 13px 32px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .75);
}

.brand-mark img {
  width: 26px;
  height: 26px;
  display: block;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-copy b {
  font-size: 19px;
  font-weight: 550;
  line-height: 1;
  letter-spacing: .26em;
}

.brand-copy small {
  color: rgba(234, 239, 232, .46);
  font-family: var(--font-mono);
  font-size: 7.5px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .28em;
}


.hero-copy {
  position: relative;
  z-index: 6;
  max-width: 710px;
  margin-top: clamp(74px, 11.5vh, 122px);
  pointer-events: none;
}

.platform-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
  color: #b7ccbf;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .34em;
}

.platform-label > span { color: var(--gold); }

.platform-label i {
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, rgba(229,189,124,.66), rgba(229,189,124,.04));
}

.platform-label small {
  color: rgba(208, 220, 211, .38);
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: .22em;
}

.hero-copy h1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .11em;
  margin: 0;
  color: #f4f1e8;
  font-family: var(--font-sans);
  font-size: clamp(46px, 4vw, 67px);
  font-weight: 300;
  line-height: 1.36;
  letter-spacing: .07em;
  text-shadow: 0 3px 32px rgba(0, 0, 0, .18);
}

.hero-copy h1 span { display: block; }

.hero-copy h1 span:nth-child(2) {
  margin-left: clamp(28px, 2.3vw, 40px);
}

.hero-copy h1 .accent-line {
  margin-top: .08em;
  margin-left: .12em;
  color: var(--gold);
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: .2em;
  text-shadow: 0 4px 34px rgba(229, 189, 124, .07);
}

.manifesto {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 30px 0 0;
  color: rgba(234, 237, 230, .58);
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: .25em;
}

.manifesto span {
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, rgba(217, 93, 63, .82), rgba(217, 93, 63, .08));
  box-shadow: 0 0 14px rgba(217, 93, 63, .18);
}

/* A quiet architectural motif replaces the former model image. */
.spatial-motif {
  position: absolute;
  z-index: 2;
  right: -1%;
  bottom: -23%;
  width: min(67vw, 950px);
  aspect-ratio: 1;
  pointer-events: none;
  opacity: .74;
  transform-origin: 58% 54%;
  animation: motif-arrive 1.2s cubic-bezier(.2, .7, .2, 1) both;
}

.spatial-motif::before {
  content: "";
  position: absolute;
  top: 22%;
  right: 21%;
  width: 47%;
  height: 47%;
  border-top: 1px solid rgba(229, 189, 124, .12);
  border-right: 1px solid rgba(229, 189, 124, .08);
  transform: rotate(11deg);
}

.spatial-motif::after {
  content: "";
  position: absolute;
  top: 18%;
  right: 13%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(229, 189, 124, .58);
  box-shadow: 0 0 0 8px rgba(229, 189, 124, .025);
}

.motif-orbit,
.motif-axis,
.motif-stroke,
.motif-dot { position: absolute; display: block; }

.motif-orbit {
  border-radius: 50%;
  border: 1px solid rgba(186, 210, 194, .12);
  transform-origin: center;
}

.motif-orbit-outer {
  inset: 3%;
  border-top-color: rgba(229, 189, 124, .32);
  border-right-color: rgba(229, 189, 124, .12);
  transform: rotate(-17deg) scaleY(.9);
}

.motif-orbit-inner {
  inset: 21%;
  border-color: rgba(176, 204, 188, .08);
  border-left-color: rgba(229, 189, 124, .24);
  transform: rotate(28deg) scaleY(.82);
}

.motif-axis {
  background: rgba(186, 210, 194, .11);
}

.motif-axis-main {
  top: 3%;
  bottom: 3%;
  left: 54%;
  width: 1px;
  transform: rotate(8deg);
  background: linear-gradient(180deg, transparent, rgba(186, 210, 194, .15) 26%, rgba(229, 189, 124, .12) 72%, transparent);
}

.motif-axis-cross {
  top: 57%;
  right: 2%;
  left: 9%;
  height: 1px;
  transform: rotate(-4deg);
  background: linear-gradient(90deg, transparent, rgba(186, 210, 194, .12) 35%, rgba(229, 189, 124, .16) 72%, transparent);
}

.motif-stroke {
  top: 24%;
  left: 15%;
  width: 69%;
  height: 49%;
  border-top: 1.5px solid rgba(229, 189, 124, .56);
  border-radius: 50%;
  transform: rotate(-27deg);
  filter: drop-shadow(0 5px 12px rgba(229, 189, 124, .08));
}

.motif-stroke::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 7%;
  width: 86%;
  height: 100%;
  border-top: 1px solid rgba(157, 190, 171, .16);
  border-radius: 50%;
  transform: rotate(3deg);
}

.motif-dot {
  top: 52%;
  left: 53%;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(229, 189, 124, .65);
  border-radius: 50%;
  background: var(--ink-900);
  box-shadow: 0 0 0 7px rgba(229, 189, 124, .035), 0 0 24px rgba(229, 189, 124, .14);
}


.showcase-footer {
  position: absolute;
  z-index: 7;
  right: 46px;
  bottom: 30px;
  left: 46px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  pointer-events: none;
}

.showcase-signature {
  color: rgba(231, 236, 228, .38);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: .22em;
  white-space: nowrap;
}

.showcase-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: rgba(222, 230, 220, .44);
  font-size: 9.5px;
  letter-spacing: .14em;
  white-space: nowrap;
}

.showcase-note i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------------- right / access panel ---------------- */
.login-panel {
  position: absolute;
  z-index: 10;
  isolation: isolate;
  top: 50%;
  right: clamp(28px, 3.2vw, 52px);
  display: flex;
  width: clamp(456px, 33vw, 488px);
  height: min(768px, calc(100svh - 64px));
  min-height: 0;
  flex-direction: column;
  padding: 30px clamp(38px, 3.7vw, 58px) 24px;
  overflow: hidden;
  transform: translateY(-50%);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, .56);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .54) 0%, rgba(255, 255, 255, 0) 34%),
    radial-gradient(480px 380px at 102% -3%, rgba(29, 105, 86, .065), transparent 72%),
    radial-gradient(420px 340px at 5% 102%, rgba(194, 151, 91, .05), transparent 76%),
    linear-gradient(118deg, rgba(247, 244, 236, .985), rgba(242, 237, 226, .97));
  box-shadow:
    0 46px 118px rgba(0, 0, 0, .40),
    0 13px 32px rgba(0, 0, 0, .16),
    inset 0 1px 0 rgba(255, 255, 255, .78),
    inset 0 0 0 1px rgba(255, 255, 255, .12);
  backdrop-filter: blur(20px) saturate(.92);
  -webkit-backdrop-filter: blur(20px) saturate(.92);
}

.login-panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .055;
  pointer-events: none;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.34'/%3E%3C/svg%3E");
}

.login-panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -385px;
  bottom: -255px;
  width: 610px;
  height: 610px;
  border: 1px solid rgba(11, 107, 98, .055);
  border-top-color: rgba(183, 145, 85, .13);
  border-radius: 50%;
  box-shadow:
    0 0 0 44px rgba(11, 107, 98, .006),
    0 0 0 45px rgba(11, 107, 98, .028);
  pointer-events: none;
}

.panel-topline {
  display: flex;
  width: 100%;
  max-width: 390px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(49, 70, 58, .10);
  color: #899088;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: .23em;
}

.panel-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: .1em;
  white-space: nowrap;
}

.panel-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--emerald-bright);
  box-shadow: 0 0 0 3px rgba(40, 167, 146, .1);
}

.login-card {
  position: relative;
  width: 100%;
  max-width: 390px;
  margin: auto;
  padding: 12px 0;
}

.login-heading .eyebrow {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 11px;
  margin: 0 0 17px;
  color: #967342;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .36em;
}

.login-heading .eyebrow::after {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, rgba(150, 115, 66, .52), transparent);
}

.login-heading h2 {
  margin: 0;
  color: #17241e;
  font-family: var(--font-serif);
  font-size: clamp(35px, 2.42vw, 42px);
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: .11em;
  font-feature-settings: "palt" 1;
  text-wrap: balance;
}

.login-heading h2::after {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  margin-top: 21px;
  background: linear-gradient(90deg, rgba(183, 145, 85, .78), rgba(183, 145, 85, .06));
}

.login-heading > p:last-child {
  margin: 18px 0 0;
  color: #647069;
  font-size: 11.5px;
  line-height: 1.85;
  letter-spacing: .075em;
}

.auth-tabs {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 44px;
  margin: 35px 0 29px;
  border-bottom: 1px solid rgba(86, 91, 83, .16);
}

.auth-tabs button {
  position: relative;
  flex: 0 0 auto;
  padding: 0 1px 14px;
  border: 0;
  cursor: pointer;
  color: #8b918a;
  background: transparent;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  transition: color .18s ease;
}

.auth-tabs button::after {
  content: "";
  position: absolute;
  right: auto;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, #a77f48, rgba(167, 127, 72, .28));
  opacity: 0;
  transform: scaleX(.2);
  transform-origin: left center;
  transition: opacity .18s ease, transform .18s ease;
}

.auth-tabs button:hover { color: var(--text); }

.auth-tabs button.active { color: #23342b; }

.auth-tabs button.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-group > label,
.field-label-row label {
  color: #35463d;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .15em;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.field-label-row span {
  color: #8b918a;
  font-size: 8.5px;
  letter-spacing: .045em;
}

.input-shell {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  border: 1px solid rgba(74, 82, 73, .14);
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .13));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .56);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.input-shell:hover {
  border-color: rgba(74, 82, 73, .27);
  background: linear-gradient(180deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, .20));
}

.input-shell:focus-within {
  border-color: rgba(158, 119, 65, .58);
  background: rgba(255, 255, 255, .56);
  box-shadow:
    0 0 0 3px rgba(158, 119, 65, .075),
    inset 0 1px 0 rgba(255, 255, 255, .72);
}

.field-icon {
  width: 18px;
  height: 18px;
  margin-left: 14px;
  flex: 0 0 17px;
  color: #8e9891;
  transition: color .18s ease;
}

.input-shell:focus-within .field-icon { color: #9b7641; }

.input-shell input {
  width: 100%;
  min-width: 0;
  height: 54px;
  padding: 0 12px 0 10px;
  border: 0;
  outline: none;
  color: #1b2821;
  background: transparent;
  font-size: 13px;
  letter-spacing: .055em;
}

.input-shell input::placeholder { color: #a5aaa4; }

.input-shell input:-webkit-autofill,
.input-shell input:-webkit-autofill:hover,
.input-shell input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  border-radius: 8px;
  box-shadow: 0 0 0 1000px #f8f4ea inset;
  transition: background-color 9999s ease-out;
}

.password-toggle {
  width: 42px;
  height: 42px;
  margin-right: 5px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  color: #8a938d;
  background: transparent;
}

.password-toggle:hover { color: var(--emerald); background: rgba(11,107,98,.05); }
.password-toggle svg { width: 18px; height: 18px; }
.password-toggle .eye-closed { display: none; }
.password-toggle.is-visible .eye-open { display: none; }
.password-toggle.is-visible .eye-closed { display: block; }

.auth-msg {
  min-height: 0;
  margin: -3px 0 -1px;
  color: #b5412c;
  font-size: 10.5px;
  line-height: 1.45;
}

.auth-msg:empty { display: none; }
.auth-msg.ok { color: var(--emerald); }

.btn-submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  width: 100%;
  min-height: 57px;
  margin-top: 7px;
  overflow: hidden;
  border: 1px solid rgba(9, 27, 21, .62);
  border-radius: 9px;
  cursor: pointer;
  color: #f7f3e9;
  background: linear-gradient(135deg, #173a2e 0%, #102c24 58%, #0d261f 100%);
  box-shadow:
    0 16px 34px rgba(17, 43, 35, .16),
    inset 0 1px 0 rgba(255, 255, 255, .075),
    inset 0 -1px 0 rgba(229, 189, 124, .07);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .24em;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn-submit svg { color: var(--gold); }

.btn-submit::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(229, 189, 124, .08));
  opacity: .62;
  transition: opacity .18s ease;
}

.btn-submit:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #1c4234 0%, #123128 58%, #0e2b22 100%);
  box-shadow:
    0 19px 40px rgba(17, 43, 35, .20),
    inset 0 1px 0 rgba(255, 255, 255, .09),
    inset 0 -1px 0 rgba(229, 189, 124, .12);
}

.btn-submit:hover::before { opacity: 1; }
.btn-submit:active { transform: translateY(0); }
.btn-submit svg { width: 17px; height: 17px; transition: transform .18s ease; }
.btn-submit:hover svg { transform: translateX(3px); }
.btn-submit:disabled { cursor: wait; opacity: .84; transform: none; }

.btn-submit.loading::after {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,.28);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .72s linear infinite;
}

.btn-submit.loading svg { display: none; }

.auth-helper {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 19px;
  padding: 15px 0 0;
  border: 0;
  border-top: 1px solid rgba(74, 88, 78, .10);
  border-radius: 0;
  color: #68776f;
  background: transparent;
  font-size: 8.5px;
  line-height: 1.7;
  letter-spacing: .06em;
}

.helper-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: grid;
  place-items: center;
  color: var(--emerald);
}

.helper-icon svg { width: 17px; height: 17px; }

.panel-footer {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 390px;
  align-items: center;
  justify-content: space-between;
  gap: 11px;
  margin: 8px auto 0;
  color: #8d948d;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: .075em;
  white-space: nowrap;
}

.panel-footer p { margin: 0; }

.footer-mark {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--rust);
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(40, 167, 146, .58);
  outline-offset: 3px;
}

@keyframes motif-arrive {
  from { opacity: 0; transform: translate3d(12px, 18px, 0) scale(.985); }
  to { opacity: .78; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- responsive ---------------- */
@media (max-width: 1180px) {
  .login-showcase { padding-right: 38px; padding-left: 38px; }
  .showcase-grid::after { left: 38px; }
  .showcase-footer { right: 38px; left: 38px; }
  .hero-copy h1 { font-size: clamp(47px, 4.8vw, 66px); }
  .spatial-motif { right: -7%; width: min(74vw, 850px); opacity: .66; }
  .login-panel {
    right: 24px;
    width: min(440px, calc(100vw - 48px));
    padding-right: 34px;
    padding-left: 34px;
  }
}

@media (max-width: 960px) {
  .login-shell { overflow: visible; }

  .login-showcase {
    min-height: 620px;
    height: 74svh;
    padding: 30px 32px 25px;
  }

  .login-showcase::before {
    background:
      linear-gradient(90deg, rgba(5, 15, 12, .70) 0%, rgba(5, 15, 12, .24) 56%, transparent 84%),
      linear-gradient(0deg, rgba(4, 13, 10, .60) 0%, transparent 37%);
  }

  .hero-copy { margin-top: 58px; }
  .hero-copy h1 { font-size: clamp(43px, 6.6vw, 58px); letter-spacing: .035em; }
  .hero-copy h1 span:nth-child(2) { margin-left: .45em; }
  .hero-copy h1 .accent-line { margin-left: .06em; }
  .manifesto { margin-top: 23px; font-size: 13px; }
  .showcase-footer { display: none; }
  .spatial-motif {
    right: -10%;
    bottom: -20%;
    width: min(92vw, 720px);
    opacity: .48;
  }

  .login-panel {
    position: relative;
    top: auto;
    right: auto;
    width: calc(100% - 48px);
    max-width: 560px;
    height: auto;
    margin: -104px auto 30px;
    padding: 38px 42px 27px;
    border-radius: 20px;
    transform: none;
    box-shadow:
      0 34px 80px rgba(0, 0, 0, .30),
      0 8px 22px rgba(0, 0, 0, .13),
      inset 0 1px 0 rgba(255, 255, 255, .62);
  }

  .login-card { max-width: 400px; padding: 17px 0 18px; }
  .login-heading h2 { font-size: 35px; }
  .panel-topline { max-width: 400px; }
  .panel-footer { max-width: 400px; margin-top: 21px; }
}

@media (max-width: 640px) {
  .login-showcase {
    min-height: 420px;
    height: 50svh;
    padding: 22px 20px 20px;
  }

  .login-showcase::before {
    background:
      linear-gradient(180deg, rgba(4, 13, 10, .72) 0%, rgba(4, 13, 10, .30) 42%, transparent 76%),
      linear-gradient(90deg, rgba(5, 15, 12, .68) 0%, rgba(5, 15, 12, .26) 62%, transparent 92%),
      linear-gradient(0deg, rgba(4, 13, 10, .58) 0%, transparent 34%);
  }

  .showcase-grid { background-size: 48px 48px; opacity: .2; }
  .showcase-grid::after { top: 13%; left: 20px; height: 58%; }

  .brand-mark { width: 39px; height: 39px; flex-basis: 39px; border-radius: 2px; }
  .brand-mark img { width: 23px; height: 23px; }
  .brand-copy b { font-size: 17px; }
  .brand-copy small { font-size: 7px; }

  .hero-copy { margin-top: 42px; }
  .platform-label { gap: 9px; margin-bottom: 15px; font-size: 9.5px; letter-spacing: .2em; }
  .platform-label i { width: 26px; }
  .platform-label small { display: none; }
  .hero-copy h1 {
    gap: .09em;
    font-size: clamp(33px, 9.35vw, 39px);
    line-height: 1.34;
    letter-spacing: .055em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .42);
  }
  .hero-copy h1 span:nth-child(2) { margin-left: .52em; }
  .hero-copy h1 .accent-line { margin-top: .1em; margin-left: 0; letter-spacing: .15em; }
  .manifesto {
    margin-top: 18px;
    font-size: 12px;
    letter-spacing: .18em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .58);
  }
  .manifesto span { width: 20px; }

  .spatial-motif {
    right: -35%;
    bottom: -10%;
    width: 480px;
    opacity: .3;
  }

  .login-panel {
    width: calc(100% - 24px);
    margin: -64px auto 16px;
    padding: 22px 20px 18px;
    border-color: rgba(255, 255, 255, .62);
    border-radius: 20px;
  }

  .login-panel::after { right: -395px; bottom: -310px; opacity: .75; }

  .panel-topline {
    display: flex;
    max-width: none;
    padding-bottom: 10px;
    font-size: 7px;
    letter-spacing: .17em;
  }
  .panel-status { font-size: 8.5px; letter-spacing: .07em; }
  .login-card { max-width: none; padding: 12px 0 10px; }
  .login-heading .eyebrow { margin-bottom: 11px; }
  .login-heading h2 { font-size: 31px; }
  .login-heading h2::after { margin-top: 13px; }
  .login-heading > p:last-child { margin-top: 12px; font-size: 11px; }
  .auth-tabs { margin: 19px 0; }
  .auth-form { gap: 15px; }
  .input-shell { min-height: 54px; }
  .input-shell input { height: 52px; }
  .auth-helper { margin-top: 15px; }
  .panel-footer { max-width: none; margin-top: 18px; padding-bottom: env(safe-area-inset-bottom); }
}

@media (max-width: 390px) {
  .login-showcase { min-height: 410px; height: 49svh; }
  .hero-copy { margin-top: 34px; }
  .hero-copy h1 { font-size: 35px; }
  .spatial-motif { right: -43%; width: 460px; opacity: .27; }

  .login-panel { padding-right: 15px; padding-left: 15px; }
  .login-heading h2 { font-size: 29px; }
}

@media (max-height: 760px) and (min-width: 961px) {
  .login-showcase { min-height: 100svh; padding-top: 29px; }
  .hero-copy { margin-top: 42px; }
  .hero-copy h1 { font-size: clamp(43px, 3.8vw, 59px); }
  .manifesto { margin-top: 18px; }
  .spatial-motif { bottom: -27%; width: min(64vw, 760px); }
  .login-panel { padding-top: 24px; padding-bottom: 18px; }
  .login-card { padding-top: 3px; padding-bottom: 3px; }
  .auth-tabs { margin-top: 27px; margin-bottom: 23px; }
  .auth-form { gap: 15px; }
  .login-heading h2 { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .spatial-motif,
  .btn-submit.loading::after { animation: none !important; }
  .btn-submit,
  .btn-submit svg,
  .auth-tabs button::after,
  .input-shell { transition: none !important; }
}

/* =========================================================
   2026-10-29 · 手机号 / 微信登录扩展
   ========================================================= */
[hidden] { display: none !important; }

.login-panel { overflow-x: hidden; overflow-y: auto; }

.auth-panel { min-width: 0; }

.auth-msg.info { color: #5d7066; }

.code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 124px;
  gap: 10px;
  align-items: stretch;
}

.code-row .input-shell { min-width: 0; }

.code-btn {
  min-height: 56px;
  padding: 0 10px;
  border: 1px solid rgba(74, 82, 73, .17);
  border-radius: 9px;
  cursor: pointer;
  color: #345046;
  background: rgba(255, 255, 255, .32);
  font-size: 10px;
  font-weight: 550;
  letter-spacing: .06em;
  white-space: nowrap;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.code-btn:hover:not(:disabled) {
  color: var(--emerald);
  border-color: rgba(11, 107, 98, .32);
  background: rgba(255, 255, 255, .58);
}

.code-btn:disabled {
  cursor: default;
  color: #949b95;
  border-color: rgba(74, 82, 73, .10);
  background: rgba(255, 255, 255, .16);
}

.wechat-entry {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px 17px;
  align-items: center;
  padding: 21px;
  border: 1px solid rgba(56, 95, 76, .13);
  border-radius: 12px;
  background:
    radial-gradient(220px 140px at 100% 0%, rgba(40, 167, 146, .08), transparent 72%),
    linear-gradient(145deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, .12));
}

.wechat-qr-mark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(32, 108, 81, .20);
  border-radius: 12px;
  color: #1b8d65;
  background: rgba(246, 252, 248, .72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}

.wechat-qr-mark svg { width: 44px; height: 44px; }
.wechat-copy { min-width: 0; }

.wechat-copy h3 {
  margin: 0;
  color: #21372d;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .08em;
}

.wechat-copy p {
  margin: 8px 0 0;
  color: #6d776f;
  font-size: 10px;
  line-height: 1.75;
  letter-spacing: .04em;
}

.wechat-btn {
  grid-column: 1 / -1;
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(15, 126, 80, .42);
  border-radius: 9px;
  cursor: pointer;
  color: #f7fff9;
  background: linear-gradient(135deg, #20a665, #118653);
  box-shadow: 0 12px 25px rgba(16, 120, 76, .14), inset 0 1px 0 rgba(255, 255, 255, .18);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  transition: transform .18s ease, filter .18s ease;
}

.wechat-btn:hover { filter: brightness(1.04); transform: translateY(-1px); }
.wechat-btn:active { transform: translateY(0); }
.wechat-btn:disabled { cursor: wait; opacity: .72; transform: none; }
.wechat-btn svg { width: 19px; height: 19px; }

.wechat-bind-form { gap: 16px; }

.bind-intro {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 15px;
  border-left: 2px solid rgba(183, 145, 85, .68);
  color: #5f6c64;
  background: rgba(255, 255, 255, .24);
  font-size: 10px;
  line-height: 1.65;
}

.bind-intro strong {
  color: #2b4035;
  font-size: 11px;
  letter-spacing: .1em;
}

.link-btn {
  align-self: center;
  padding: 2px 8px;
  border: 0;
  cursor: pointer;
  color: #6e7e74;
  background: transparent;
  font-size: 10px;
  letter-spacing: .08em;
  text-decoration: underline;
  text-decoration-color: rgba(110, 126, 116, .34);
  text-underline-offset: 4px;
}

.link-btn:hover { color: var(--emerald); }

.enterprise-intro {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 20px;
  padding: 14px;
  border: 1px solid rgba(157, 119, 64, .18);
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(255, 251, 240, .64), rgba(238, 245, 239, .44));
}
.enterprise-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 8px;
  color: #9c7439;
  background: rgba(229, 189, 124, .16);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .13em;
}
.enterprise-intro strong { color: #27382f; font-size: 11px; letter-spacing: .08em; }
.enterprise-intro p { margin: 5px 0 0; color: #718077; font-size: 9.5px; line-height: 1.7; }
.enterprise-activation { margin-top: 2px; }
.enterprise-activation-copy { display: grid; gap: 5px; padding: 3px 0 2px; }
.enterprise-activation-copy strong { color: #27382f; font-family: var(--font-serif); font-size: 16px; }
.enterprise-activation-copy span { color: #718077; font-size: 9.5px; line-height: 1.7; }
.enterprise-activation .link-btn { margin-top: -4px; }
@media (max-width: 480px) {
  .auth-tabs { gap: 24px; }
  .auth-tabs button { font-size: 10px; letter-spacing: .13em; }
}

.legacy-login {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(74, 88, 78, .10);
}

.legacy-login summary {
  width: fit-content;
  cursor: pointer;
  color: #768078;
  font-size: 9.5px;
  letter-spacing: .075em;
  list-style: none;
}

.legacy-login summary::-webkit-details-marker { display: none; }
.legacy-login summary::after {
  content: "+";
  display: inline-block;
  margin-left: 7px;
  color: #a07b47;
}
.legacy-login[open] summary::after { content: "−"; }
.legacy-login summary:hover { color: var(--text); }
.legacy-login .auth-form { margin-top: 16px; }
.legacy-submit { min-height: 52px; }

@media (max-width: 640px) {
  .code-row { grid-template-columns: minmax(0, 1fr) 112px; gap: 8px; }
  .code-btn { min-height: 54px; font-size: 9px; }
  .wechat-entry { padding: 17px; grid-template-columns: 60px minmax(0, 1fr); }
  .wechat-qr-mark { width: 60px; height: 60px; }
  .wechat-qr-mark svg { width: 37px; height: 37px; }
  .wechat-copy h3 { font-size: 16px; }
}

@media (max-width: 390px) {
  .code-row { grid-template-columns: minmax(0, 1fr); }
  .code-btn { min-height: 45px; }
  .wechat-entry { grid-template-columns: 54px minmax(0, 1fr); gap: 12px; }
  .wechat-qr-mark { width: 54px; height: 54px; }
  .wechat-qr-mark svg { width: 33px; height: 33px; }
}
