/* =========================================================
   登录页
   深墨几何面板 + 羊皮纸登录卡（莱茵语言见于框架与交互）
   ========================================================= */
.login-body {
  min-height: 100vh;
  background-color: transparent;
  overflow-x: hidden;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
}

/* ---------- 左侧深墨面板 ---------- */
.login-hero {
  position: relative;
  overflow: hidden;
  color: var(--rail-ink);
  background:
    radial-gradient(120% 80% at 12% 0%, rgba(193, 82, 45, 0.16), transparent 55%),
    linear-gradient(160deg, #241f19 0%, #1b1712 60%, #14110d 100%);
  padding: 40px 52px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}

.hero-grid,
.hero-hatch,
.hero-hex,
.hero-cross {
  position: absolute;
  pointer-events: none;
}
.hero-grid {
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(243, 234, 217, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(243, 234, 217, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(120% 90% at 20% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 20% 0%, #000 20%, transparent 78%);
}
.hero-hatch {
  right: -60px;
  top: -60px;
  width: 340px;
  height: 340px;
  background: repeating-linear-gradient(45deg, rgba(243, 234, 217, 0.09) 0 1px, transparent 1px 9px);
  mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 68%);
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 68%);
  opacity: 0.8;
}
.hero-hex {
  right: -70px;
  bottom: 8%;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(201, 152, 122, 0.28);
  clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  background: linear-gradient(160deg, rgba(193, 82, 45, 0.12), transparent 60%);
  transform: rotate(18deg);
}
.hero-cross {
  width: 74px;
  height: 74px;
  opacity: 0.32;
}
.hero-cross::before,
.hero-cross::after {
  content: '';
  position: absolute;
  background: rgba(243, 234, 217, 0.5);
}
.hero-cross::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.hero-cross::after { top: 50%; left: 0; right: 0; height: 1px; }
.hero-cross-a { right: 84px; bottom: 28%; }
.hero-cross-b { left: 46%; top: 16%; width: 44px; height: 44px; opacity: 0.22; }

/* 顶部品牌 */
.login-hero .hero-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.login-hero .brand { display: flex; align-items: center; gap: 14px; }
.login-hero .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex: none;
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.5);
}
.login-hero .brand-text { display: flex; flex-direction: column; gap: 2px; }
.login-hero .brand-title { font-family: var(--serif); font-size: 19px; letter-spacing: 0.08em; color: var(--rail-ink); font-weight: 700; }
.login-hero .brand-sub { font-size: 11.5px; letter-spacing: 0.14em; color: var(--rail-ink-2); }


/* 主说明 */
.login-hero .hero-main { position: relative; z-index: 2; max-width: 640px; }
.hero-index {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--rail-ink-2);
}
.hero-index b {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.12em;
  padding: 2px 7px;
  border: 1px solid rgba(193, 82, 45, 0.45);
  border-radius: 4px;
  background: rgba(193, 82, 45, 0.12);
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(40px, 4.6vw, 62px);
  line-height: 1.14;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: #f7efdf;
  margin: 20px 0 18px;
}
.hero-desc {
  max-width: 560px;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--rail-ink-2);
}
.hero-features {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 34px;
  max-width: 620px;
}
.hero-features li {
  display: grid;
  grid-template-columns: 28px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: baseline;
  padding: 13px 0;
  border-top: 1px solid rgba(243, 234, 217, 0.13);
}
.hero-features .mono {
  grid-row: 1 / span 2;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  padding-top: 2px;
}
.hero-features b {
  font-size: 14.5px;
  font-weight: 600;
  color: #f2e8d6;
  letter-spacing: 0.04em;
}
.hero-features em {
  font-style: normal;
  font-size: 12px;
  line-height: 1.6;
  color: var(--rail-ink-2);
  margin-top: 3px;
}
.login-hero .hero-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(184, 171, 150, 0.75);
}
.hero-foot-line { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(243, 234, 217, 0.22), transparent); }

/* ---------- 右侧登录区 ---------- */
.login-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px 40px;
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(193, 82, 45, 0.07), transparent 60%),
    var(--paper);
}
.login-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(120, 102, 78, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(120, 102, 78, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 80% at 70% 40%, #000 10%, transparent 80%);
  -webkit-mask-image: radial-gradient(80% 80% at 70% 40%, #000 10%, transparent 80%);
}
.login-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg, 16px);
  box-shadow: var(--shadow-lg, 0 24px 60px -30px rgba(60, 44, 20, 0.4));
  padding: 34px 36px 26px;
}
.login-card:hover .corner { opacity: 0.9; }

.login-head { margin-bottom: 22px; }
.login-kicker { font-size: 10.5px; letter-spacing: 0.22em; color: var(--accent); }
.login-title { font-family: var(--serif); font-size: 27px; font-weight: 700; letter-spacing: 0.04em; margin: 8px 0 6px; }
.login-sub { margin: 0; font-size: 13px; color: var(--ink-3); }

/* 身份切换 */
.role-tabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 5px;
  background: var(--paper-3);
  border-radius: 12px;
  margin-bottom: 22px;
}
.role-tabs .slider {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc(50% - 7px);
  background: var(--paper-2);
  border-radius: 9px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--fx-spring, cubic-bezier(0.34, 1.4, 0.64, 1));
}
.role-tabs[data-role="doctor"] .slider { transform: translateX(calc(100% + 4px)); }
.role-tab {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 11px 12px;
  border: 0;
  background: transparent;
  border-radius: 9px;
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.25s var(--fx-ease, ease);
}
.role-tab small { font-size: 10.5px; letter-spacing: 0.06em; opacity: 0.7; }
.role-tab:hover:not(.active) { color: var(--ink-2); }
.role-tab.active { color: var(--ink); }

/* 表单 */
.login-form { display: grid; gap: 16px; }
.login-form .field { display: grid; gap: 7px; }
.login-form .field-label { font-size: 12.5px; color: var(--ink-2); letter-spacing: 0.02em; }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 42px; }
.pw-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
}
.pw-toggle.on,
.pw-toggle:hover { color: var(--accent); }
.login-submit { margin-top: 6px; }
.btn-block { width: 100%; }

.login-status {
  min-height: 20px;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.login-status.error { color: var(--red); }
.login-status.ok { color: var(--sage); }

.login-tips {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 11px 13px;
  border: 1px dashed var(--line-2);
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink-3);
  background: var(--paper);
}
.login-tips .mono { flex: none; font-size: 10.5px; letter-spacing: 0.12em; color: var(--accent); padding-top: 2px; }

.login-foot {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--ink-4);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .login-shell { grid-template-columns: minmax(0, 1fr) minmax(400px, 0.92fr); }
  .login-hero { padding: 34px 36px 26px; }
  .hero-features { grid-template-columns: 1fr; gap: 0; }
  .hero-features li:nth-child(n + 3) { display: none; }
}
@media (max-width: 820px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-hero { padding: 28px 22px 24px; gap: 20px; }
  .hero-title { font-size: 34px; margin: 14px 0 12px; }
  .hero-desc { font-size: 13px; line-height: 1.8; }
  .hero-features { display: none; }
  .hero-hex, .hero-cross { display: none; }
  .login-panel { padding: 26px 18px 40px; }
  .login-card { padding: 26px 22px 20px; }
  .login-card .corner { display: none; }
}

/* ---------- 登录页环境几何：与全站衬底呼应的弧线/角标 ---------- */
.login-panel::after {
  content: '';
  position: absolute;
  inset: -8% -12% auto auto;
  width: 760px;
  height: 760px;
  pointer-events: none;
  background-image: url('/assets/ambient-rhine.svg');
  background-repeat: no-repeat;
  background-position: right -120px top -60px;
  background-size: 1180px 740px;
  opacity: 0.75;
  z-index: 0;
}
.login-panel .login-card {
  z-index: 1;
}
.login-panel::before {
  z-index: 0;
}

/* 顶栏/账户/筛选等元素的涟漪裁切容器 */
.account-btn,
.filter,
.pager-btn,
.notif-item {
  position: relative;
  overflow: hidden;
}

/* 登录卡四角呼吸光：hover 时角标与卡片阴影联动 */
.login-card {
  transition: box-shadow 0.4s var(--fx-ease), border-color 0.3s var(--fx-ease), transform 0.4s var(--fx-out);
}
.login-card:hover {
  border-color: var(--line-2);
  box-shadow: 0 32px 72px -34px rgba(60, 44, 20, 0.45);
}

@media (max-width: 820px) {
  .login-panel::after {
    display: none;
  }
}

/* =====================================================================
   登录页 2026 精致化：更克制的排版 + 更浓郁的莱茵几何语言
   ===================================================================== */
.login-shell {
  grid-template-columns: minmax(0, 1.04fr) minmax(450px, 0.96fr);
}

/* 左侧深墨面板：更深的层次 + 内框 + 细刻度 */
.login-hero {
  padding: 40px 58px 46px;
  justify-content: flex-start;
  gap: 0;
  background:
    radial-gradient(90% 70% at 12% 2%, rgba(193, 82, 45, 0.2), transparent 58%),
    radial-gradient(70% 60% at 96% 98%, rgba(201, 152, 122, 0.1), transparent 62%),
    linear-gradient(158deg, #26201a 0%, #1c1712 55%, #13100c 100%);
  box-shadow: inset 0 0 0 1px rgba(243, 234, 217, 0.055), inset 0 0 180px rgba(0, 0, 0, 0.42);
}

.hero-grid {
  background-size: 64px 64px;
  opacity: 0.72;
  mask-image: radial-gradient(120% 90% at 18% 0%, #000 26%, transparent 82%);
  -webkit-mask-image: radial-gradient(120% 90% at 18% 0%, #000 26%, transparent 82%);
}

.hero-hatch {
  opacity: 0.66;
}

.hero-hex {
  right: -92px;
  bottom: 4%;
  width: 340px;
  height: 340px;
  opacity: 0.52;
  border-color: rgba(201, 152, 122, 0.2);
}

.hero-cross-a {
  right: 9%;
  bottom: 21%;
  opacity: 0.24;
}

.hero-cross-b {
  left: 52%;
  top: 14%;
  opacity: 0.16;
}

.hero-ticks-x {
  position: absolute;
  right: 58px;
  bottom: 26px;
  left: 58px;
  height: 12px;
  pointer-events: none;
  opacity: 0.5;
  background: repeating-linear-gradient(90deg, rgba(243, 234, 217, 0.32) 0 1px, transparent 1px 26px);
  mask-image: linear-gradient(90deg, #000 0%, transparent 84%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 84%);
}

.hero-ticks-y {
  position: absolute;
  top: 100px;
  right: 24px;
  bottom: 120px;
  width: 12px;
  pointer-events: none;
  opacity: 0.46;
  background: repeating-linear-gradient(180deg, rgba(243, 234, 217, 0.28) 0 1px, transparent 1px 30px);
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, transparent 92%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, transparent 92%);
}

/* 内联莱茵几何线稿 */
.hero-rhine {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.9;
}

.rhine-flow {
  animation: rhine-flow 24s linear infinite;
}

@keyframes rhine-flow {
  to {
    stroke-dashoffset: -1720;
  }
}

.rhine-nodes circle {
  animation: rhine-node 9s ease-in-out infinite;
}

.rhine-nodes circle:nth-child(2) {
  animation-delay: -3s;
}

.rhine-nodes circle:nth-child(3) {
  animation-delay: -6s;
}

.rhine-nodes circle:nth-child(4) {
  animation-delay: -1.5s;
}

@keyframes rhine-node {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.85;
  }
}

/* 品牌区：单行、细线分隔 */
.login-hero .hero-top {
  position: relative;
  z-index: 2;
  flex: none;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(243, 234, 217, 0.1);
}

.login-hero .brand-title {
  font-size: 20.5px;
  letter-spacing: 0.1em;
}

.login-hero .brand-sub {
  font-size: 11px;
  letter-spacing: 0.18em;
}

.hero-main {
  position: relative;
  z-index: 2;
  margin: auto 0;
  padding: 40px 0 16px;
  max-width: 660px;
}

.hero-main::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 12px;
  left: -26px;
  width: 1px;
  background: linear-gradient(180deg, rgba(193, 82, 45, 0.55), rgba(193, 82, 45, 0.08) 70%, transparent);
}

.hero-title {
  font-size: clamp(44px, 4.9vw, 68px);
  line-height: 1.08;
  letter-spacing: 0.055em;
  margin: 22px 0 20px;
}

.hero-desc {
  max-width: 570px;
  font-size: 14.5px;
  line-height: 1.95;
  color: rgba(205, 193, 174, 0.92);
}

.hero-features {
  margin-top: 40px;
  gap: 0 42px;
  max-width: 640px;
}

.hero-features li {
  padding: 15px 0;
  border-top-color: rgba(243, 234, 217, 0.12);
  transition: transform 0.32s var(--fx-out), border-color 0.32s var(--fx-ease);
}

.hero-features li:hover {
  border-top-color: rgba(193, 82, 45, 0.45);
  transform: translateX(3px);
}

.hero-features b {
  font-size: 14.5px;
  letter-spacing: 0.05em;
}

.hero-features em {
  font-size: 12.2px;
  color: rgba(184, 171, 150, 0.9);
}

/* ---------- 右侧登录区：更精致的纸面与几何环 ---------- */
.login-panel {
  padding: 58px 54px;
  overflow: hidden;
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(193, 82, 45, 0.09), transparent 62%),
    radial-gradient(70% 60% at 0% 100%, rgba(201, 152, 122, 0.1), transparent 60%),
    var(--paper);
}

.login-panel::before {
  background-size: 72px 72px;
  opacity: 0.78;
}

.login-panel::after {
  opacity: 0.62;
}

.login-geometry {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.login-geometry i {
  position: absolute;
  display: block;
  border: 1px solid rgba(120, 102, 78, 0.14);
  border-radius: 50%;
}

.login-geometry i:nth-child(1) {
  top: -220px;
  right: -170px;
  width: 560px;
  height: 560px;
}

.login-geometry i:nth-child(2) {
  top: -320px;
  right: -270px;
  width: 760px;
  height: 760px;
  border-color: rgba(193, 82, 45, 0.2);
  border-style: dashed;
  animation: login-ring 140s linear infinite;
}

.login-geometry i:nth-child(3) {
  left: -240px;
  bottom: -280px;
  width: 540px;
  height: 540px;
  border-style: dashed;
  border-color: rgba(120, 102, 78, 0.12);
}

.login-geometry::before,
.login-geometry::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  pointer-events: none;
}

.login-geometry::before {
  top: 46px;
  left: 46px;
  border-top: 1px solid rgba(193, 82, 45, 0.32);
  border-left: 1px solid rgba(193, 82, 45, 0.32);
}

.login-geometry::after {
  right: 46px;
  bottom: 46px;
  border-right: 1px solid rgba(193, 82, 45, 0.24);
  border-bottom: 1px solid rgba(193, 82, 45, 0.24);
}

@keyframes login-ring {
  to {
    transform: rotate(360deg);
  }
}

/* 登录卡：更薄的边框、纸面高光与内框 */
.login-card {
  width: min(472px, 100%);
  padding: 40px 42px 30px;
  background: linear-gradient(180deg, rgba(253, 250, 244, 0.99), var(--paper-2));
  border-color: rgba(203, 189, 163, 0.7);
  box-shadow: 0 30px 76px -40px rgba(60, 44, 20, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.login-card::before {
  content: '';
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(203, 189, 163, 0.32);
  border-radius: calc(var(--radius-lg, 16px) - 5px);
  pointer-events: none;
}

.login-head {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.login-head::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 58px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.login-kicker {
  letter-spacing: 0.26em;
}

.login-title {
  font-size: 30px;
  margin: 10px 0 8px;
}

.login-sub {
  font-size: 12.8px;
  letter-spacing: 0.02em;
}

/* 身份切换：更轻的容器 */
.role-tabs {
  padding: 4px;
  margin-bottom: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  gap: 3px;
}

.role-tabs .slider {
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 5.5px);
  border: 1px solid rgba(203, 189, 163, 0.55);
  box-shadow: 0 6px 16px -12px rgba(60, 44, 20, 0.45);
}

.role-tab {
  padding: 10px 10px;
  font-size: 13.5px;
  letter-spacing: 0.03em;
}

.role-tab small {
  font-size: 10px;
  letter-spacing: 0.08em;
}

.login-form {
  gap: 18px;
}

.login-submit {
  margin-top: 8px;
  height: 46px;
  letter-spacing: 0.3em;
}

.login-tips {
  margin-top: 20px;
  padding: 12px 13px;
  background: rgba(251, 248, 241, 0.65);
}

.login-foot {
  margin-top: 20px;
  padding-top: 14px;
  line-height: 1.7;
}

/* 响应式 */
@media (max-width: 1080px) {
  .login-shell {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.94fr);
  }
  .login-hero {
    padding: 34px 38px 38px;
  }
  .hero-features {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero-features li:nth-child(n + 3) {
    display: none;
  }
  .login-panel {
    padding: 44px 34px;
  }
}

@media (max-width: 820px) {
  .login-shell {
    grid-template-columns: 1fr;
  }
  .login-hero {
    padding: 28px 22px 30px;
  }
  .hero-top {
    padding-bottom: 18px;
  }
  .hero-main {
    padding: 28px 0 8px;
  }
  .hero-main::before,
  .hero-ticks-x,
  .hero-ticks-y,
  .hero-rhine {
    display: none;
  }
  .hero-title {
    font-size: 35px;
    margin: 16px 0 12px;
  }
  .hero-desc {
    font-size: 13px;
    line-height: 1.82;
  }
  .hero-features {
    display: none;
  }
  .hero-hex,
  .hero-cross {
    display: none;
  }
  .login-panel {
    padding: 28px 18px 42px;
  }
  .login-card {
    padding: 28px 22px 22px;
  }
  .login-card::before {
    inset: 7px;
  }
  .login-card .corner {
    display: none;
  }
  .login-geometry::before,
  .login-geometry::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rhine-flow,
  .rhine-nodes circle,
  .login-geometry i:nth-child(2) {
    animation: none !important;
  }
}

/* =====================================================================
   RHINE VISUAL LAYER / 2026
   更强的莱茵式几何、仪表与编辑排版；移除功能条目，保留留白
   ===================================================================== */
.login-hero {
  isolation: isolate;
  padding: 34px 56px 30px;
  background:
    radial-gradient(80% 64% at 16% 4%, rgba(193, 82, 45, 0.24), transparent 58%),
    radial-gradient(48% 48% at 92% 86%, rgba(201, 152, 122, 0.11), transparent 64%),
    linear-gradient(158deg, #29231c 0%, #1c1712 52%, #12100c 100%);
}

/* 内框 + 四角细线，建立莱茵实验室的图纸感 */
.login-hero::before {
  content: '';
  position: absolute;
  inset: 18px;
  z-index: 1;
  pointer-events: none;
  border: 1px solid rgba(243, 234, 217, 0.075);
  clip-path: polygon(0 0, 58px 0, 58px 1px, calc(100% - 58px) 1px, calc(100% - 58px) 0, 100% 0, 100% 100%, calc(100% - 58px) 100%, calc(100% - 58px) calc(100% - 1px), 58px calc(100% - 1px), 58px 100%, 0 100%);
}

.login-hero::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  top: 18px;
  height: 3px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(193, 82, 45, 0.85), rgba(193, 82, 45, 0.12) 18%, transparent 46%);
}

.hero-grid {
  background-size: 72px 72px;
  opacity: 0.6;
  mask-image: radial-gradient(105% 90% at 24% 14%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(105% 90% at 24% 14%, #000 20%, transparent 80%);
}

.hero-hatch {
  right: -90px;
  top: -90px;
  width: 400px;
  height: 400px;
  opacity: 0.5;
}

.hero-hex {
  right: -110px;
  bottom: 6%;
  width: 380px;
  height: 380px;
  opacity: 0.38;
  border-color: rgba(201, 152, 122, 0.24);
  transform: rotate(26deg);
}

.hero-rhine {
  opacity: 0.8;
}

/* 左下方大号图纸式准星 */
.hero-schematic {
  position: absolute;
  left: -108px;
  bottom: -182px;
  width: 640px;
  height: 640px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.72;
  filter: drop-shadow(0 0 18px rgba(193, 82, 45, 0.035));
}

.hero-schematic svg { width: 100%; height: 100%; overflow: visible; }
.hero-schematic circle[stroke-dasharray] { animation: rhineDash 26s linear infinite; }

@keyframes rhineDash {
  to { stroke-dashoffset: 220; }
}

/* 右侧竖向标尺 */
.hero-rail {
  position: absolute;
  z-index: 2;
  right: 20px;
  top: 94px;
  bottom: 104px;
  width: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  color: rgba(184, 171, 150, 0.52);
}

.hero-rail-label {
  writing-mode: vertical-rl;
  font-size: 8px;
  letter-spacing: 0.22em;
  white-space: nowrap;
}

.hero-rail-ticks {
  flex: 1;
  width: 1px;
  margin: 14px 0;
  background: repeating-linear-gradient(to bottom, rgba(243, 234, 217, 0.32) 0 1px, transparent 1px 14px);
}

.hero-rail-code {
  writing-mode: vertical-rl;
  color: rgba(193, 82, 45, 0.72);
  font-size: 8px;
  letter-spacing: 0.16em;
}

/* 顶部品牌下增加坐标标记 */
.login-hero .hero-top {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(243, 234, 217, 0.075);
}

.login-hero .brand-mark {
  border-radius: 4px;
  transform: rotate(45deg) scale(0.9);
  background: linear-gradient(135deg, #d06a43, #9d3d1f);
}

.login-hero .brand-mark::before,
.login-hero .brand-mark::after { background: #1d1813; }
.login-hero .brand-text { transform: translateX(2px); }
.login-hero .brand-title { letter-spacing: 0.12em; }
.login-hero .brand-sub { letter-spacing: 0.2em; color: rgba(184, 171, 150, 0.76); }

/* 主导排版 */
.login-hero .hero-main { position: relative; z-index: 3; max-width: 610px; }
.hero-index {
  gap: 12px;
  color: rgba(184, 171, 150, 0.72);
  font-size: 9.5px;
  letter-spacing: 0.22em;
}
.hero-index b {
  padding: 3px 8px;
  border-color: rgba(193, 82, 45, 0.58);
  background: rgba(193, 82, 45, 0.13);
  border-radius: 1px;
  color: #e98359;
  font-size: 10px;
}
.hero-title {
  position: relative;
  margin: 24px 0 22px;
  max-width: 560px;
  font-size: clamp(48px, 5.2vw, 76px);
  line-height: 1.08;
  letter-spacing: 0.075em;
  color: #faf1e2;
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.28);
}
.hero-title::after {
  content: '';
  position: absolute;
  left: 2px;
  bottom: -15px;
  width: 116px;
  height: 1px;
  background: linear-gradient(90deg, #c1522d 0%, rgba(193, 82, 45, 0.28) 48%, transparent 100%);
}
.hero-title::before {
  content: '';
  position: absolute;
  left: -18px;
  top: 4px;
  bottom: 2px;
  width: 1px;
  background: linear-gradient(180deg, rgba(193, 82, 45, 0.65), transparent 72%);
}
.hero-desc {
  max-width: 520px;
  font-size: 13px;
  line-height: 1.95;
  color: rgba(184, 171, 150, 0.9);
}

/* 系统遥测条：替代原来的四块说明 */
.hero-telemetry {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 34px;
  padding: 11px 0;
  border-top: 1px solid rgba(243, 234, 217, 0.1);
  border-bottom: 1px solid rgba(243, 234, 217, 0.07);
  max-width: 490px;
  color: rgba(184, 171, 150, 0.66);
  font-size: 8.5px;
  letter-spacing: 0.13em;
}
.hero-telemetry span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.hero-telemetry span + span { padding-left: 18px; border-left: 1px solid rgba(243, 234, 217, 0.11); }
.hero-telemetry i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c1522d;
  box-shadow: 0 0 0 4px rgba(193, 82, 45, 0.12);
  animation: rhinePulse 2.6s ease-in-out infinite;
}
@keyframes rhinePulse {
  0%, 100% { opacity: 0.55; box-shadow: 0 0 0 3px rgba(193, 82, 45, 0.1); }
  50% { opacity: 1; box-shadow: 0 0 0 6px rgba(193, 82, 45, 0.03); }
}

.login-hero .hero-foot {
  position: relative;
  z-index: 3;
  margin-top: auto;
  padding-top: 18px;
  color: rgba(184, 171, 150, 0.48);
  font-size: 8.5px;
  letter-spacing: 0.17em;
}
.hero-foot-line { background: linear-gradient(90deg, rgba(243, 234, 217, 0.22), rgba(243, 234, 217, 0.02)); }

/* 右侧：更强的图纸层次与登录卡框架 */
.login-panel {
  background:
    radial-gradient(70% 55% at 104% -4%, rgba(193, 82, 45, 0.1), transparent 62%),
    linear-gradient(160deg, #fcfaf4 0%, #f5f0e4 100%);
  overflow: hidden;
}
.login-panel::before {
  background-size: 72px 72px;
  opacity: 0.9;
  mask-image: radial-gradient(82% 82% at 65% 38%, #000 8%, transparent 76%);
  -webkit-mask-image: radial-gradient(82% 82% at 65% 38%, #000 8%, transparent 76%);
}

.login-orbit {
  position: absolute;
  z-index: 0;
  right: -18%;
  top: 50%;
  width: 780px;
  height: 780px;
  transform: translateY(-50%);
  pointer-events: none;
}
.login-orbit i {
  position: absolute;
  inset: 0;
  display: block;
  border: 1px solid rgba(120, 102, 78, 0.115);
  border-radius: 50%;
}
.login-orbit i:nth-child(1) { inset: 12%; border-style: dashed; border-color: rgba(193, 82, 45, 0.13); transform: rotate(18deg); }
.login-orbit i:nth-child(2) { inset: 27%; border-color: rgba(120, 102, 78, 0.1); }
.login-orbit i:nth-child(3) { inset: 43%; border-color: rgba(193, 82, 45, 0.1); border-style: dotted; }
.login-orbit::before,
.login-orbit::after {
  content: '';
  position: absolute;
  background: rgba(120, 102, 78, 0.13);
}
.login-orbit::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.login-orbit::after { top: 50%; left: 0; right: 0; height: 1px; }

.login-coord {
  position: absolute;
  z-index: 2;
  top: 30px;
  right: 38px;
  color: rgba(193, 82, 45, 0.72);
  font-size: 8.5px;
  letter-spacing: 0.18em;
}

.login-card {
  width: min(446px, 100%);
  padding: 34px 38px 26px;
  border-radius: 2px;
  border-color: rgba(120, 102, 78, 0.26);
  box-shadow:
    0 30px 80px -40px rgba(47, 36, 20, 0.38),
    0 0 0 1px rgba(251, 248, 241, 0.8) inset,
    0 0 0 5px rgba(251, 248, 241, 0.4);
}
.login-card::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, #c1522d 0%, rgba(193, 82, 45, 0.32) 34%, transparent 100%);
}
.login-card::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 14px;
  width: 34px;
  height: 34px;
  border-top: 1px solid rgba(193, 82, 45, 0.32);
  border-right: 1px solid rgba(193, 82, 45, 0.32);
  pointer-events: none;
}
.login-card .corner {
  width: 18px;
  height: 18px;
  border-color: rgba(193, 82, 45, 0.58);
}
.login-kicker { font-size: 9px; letter-spacing: 0.25em; color: #b94d2b; }
.login-title { font-size: 30px; letter-spacing: 0.08em; margin: 9px 0 7px; }
.login-sub { font-size: 12px; color: var(--ink-4); letter-spacing: 0.03em; }
.login-head { margin-bottom: 26px; padding-bottom: 15px; border-bottom: 1px solid rgba(120, 102, 78, 0.13); }
.login-form { gap: 17px; }
.login-form .field-label { font-size: 11.5px; letter-spacing: 0.08em; }
.login-submit {
  margin-top: 8px;
  height: 46px;
  border-radius: 2px;
  letter-spacing: 0.22em;
}
.login-tips { border-radius: 2px; border-color: rgba(120, 102, 78, 0.22); background: rgba(251, 248, 241, 0.56); }

/* 窄屏收敛 */
@media (max-width: 1080px) {
  .login-hero { padding: 32px 34px 28px; }
  .hero-schematic { left: -150px; bottom: -220px; opacity: 0.5; }
  .hero-rail { right: 10px; }
  .hero-title { font-size: clamp(44px, 5vw, 64px); }
}

@media (max-width: 820px) {
  .hero-schematic, .hero-rail, .hero-telemetry, .login-orbit, .login-coord { display: none; }
  .login-hero { padding: 24px 20px 22px; }
  .login-hero::before { inset: 10px; opacity: 0.55; }
  .login-hero::after { left: 10px; right: 10px; top: 10px; }
  .login-hero .hero-top { padding-bottom: 14px; }
  .hero-title { font-size: 36px; letter-spacing: 0.055em; margin: 18px 0 12px; }
  .hero-title::before { left: -10px; }
  .hero-desc { font-size: 12.5px; line-height: 1.8; }
  .hero-foot { margin-top: 24px; }
  .login-card { padding: 28px 22px 20px; }
}

/* 品牌十字恢复正置；菱形切角用裁切实现，避免旋转导致十字变 X */
.login-hero .brand-mark {
  transform: none;
  border-radius: 0;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}
.login-hero .brand-mark::before,
.login-hero .brand-mark::after { background: #f7efdf; }

/* 大号 RL 轮廓水印 */
.hero-monogram {
  position: absolute;
  z-index: 1;
  right: 56px;
  bottom: 70px;
  pointer-events: none;
  font-family: var(--serif);
  font-size: clamp(160px, 21vw, 310px);
  font-weight: 700;
  line-height: 0.75;
  letter-spacing: -0.08em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(243, 234, 217, 0.075);
  opacity: 0.9;
  user-select: none;
}

/* 让图纸准星更可读 */
.hero-schematic { opacity: 0.96; left: -76px; bottom: -154px; }
.hero-schematic svg > g:first-child { stroke-opacity: 0.23; }
.hero-schematic svg > g:nth-child(2) { stroke-opacity: 0.76; }
.hero-schematic svg text { fill-opacity: 0.42; }

/* 右下六边形、左上面板再增加少量强调 */
.login-hero .hero-hex { opacity: 0.54; }
.login-hero .hero-hex::after {
  content: '';
  position: absolute;
  inset: 22%;
  border: 1px solid rgba(193, 82, 45, 0.16);
  clip-path: inherit;
}

/* 右侧几何更清晰 */
.login-orbit i { border-color: rgba(120, 102, 78, 0.16); }
.login-orbit i:nth-child(1) { border-color: rgba(193, 82, 45, 0.2); }
.login-orbit i:nth-child(3) { border-color: rgba(193, 82, 45, 0.17); }
.login-panel::after { opacity: 0.9; }

/* 登录卡四角更锐利 */
.login-card { border-radius: 0; }
.login-card .corner {
  width: 16px;
  height: 16px;
  border-color: rgba(193, 82, 45, 0.62);
  opacity: 0.72;
}
.login-card .corner::before,
.login-card .corner::after { background: rgba(193, 82, 45, 0.36); }

/* 中等宽度收敛 */
@media (max-width: 1180px) {
  .hero-monogram { right: 24px; bottom: 46px; opacity: 0.7; }
  .hero-schematic { left: -130px; bottom: -190px; }
}
@media (max-width: 900px) {
  .hero-monogram { display: none; }
}
