/* Premium public portal — intentionally isolated from the role workspaces. */
:root {
  --portal-bg: #050b09;
  --portal-panel: #07140f;
  --portal-card: #f5f3ec;
  --portal-gold: #c5a36b;
  --portal-gold-light: #e1c998;
  --portal-mint: #a8c7b7;
  --portal-line: rgba(255, 255, 255, .12);
}

* { box-sizing: border-box; }

html { background: var(--portal-bg); scroll-behavior: smooth; }

body.landing {
  min-height: 100vh;
  margin: 0;
  padding: clamp(18px, 2.2vw, 38px);
  overflow-x: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 14% 18%, rgba(45, 104, 77, .22), transparent 28%),
    radial-gradient(circle at 88% 82%, rgba(197, 163, 107, .12), transparent 24%),
    linear-gradient(145deg, #030806 0%, #08100d 55%, #040706 100%);
}

.landing .noise { opacity: .032; z-index: 10; }

.ambient {
  position: fixed;
  border-radius: 999px;
  filter: blur(2px);
  pointer-events: none;
  opacity: .55;
}

.ambient-one {
  width: 460px;
  height: 460px;
  top: -300px;
  right: 8%;
  border: 1px solid rgba(197, 163, 107, .2);
  box-shadow: 0 0 120px rgba(197, 163, 107, .07), inset 0 0 100px rgba(197, 163, 107, .04);
}

.ambient-two {
  width: 240px;
  height: 240px;
  bottom: -150px;
  left: 2%;
  border: 1px solid rgba(168, 199, 183, .13);
}

.login-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(390px, .75fr);
  width: min(1480px, 100%);
  min-height: calc(100vh - clamp(84px, 8vw, 130px));
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 34px;
  background: var(--portal-panel);
  box-shadow: 0 42px 120px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .05);
}

.brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: clamp(32px, 4.5vw, 72px);
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 49.85%, rgba(255, 255, 255, .025) 50%, transparent 50.15%),
    linear-gradient(0deg, transparent 49.85%, rgba(255, 255, 255, .02) 50%, transparent 50.15%),
    radial-gradient(circle at 10% 12%, rgba(51, 126, 91, .32), transparent 31%),
    radial-gradient(circle at 96% 92%, rgba(197, 163, 107, .12), transparent 30%),
    linear-gradient(150deg, #0c2d20 0%, #071710 55%, #06100c 100%);
  background-size: 120px 120px, 120px 120px, auto, auto, auto;
}

.brand-panel::before {
  content: "B";
  position: absolute;
  right: -4%;
  bottom: -14%;
  font: italic 520px/.8 Georgia, serif;
  color: transparent;
  -webkit-text-stroke: 1px rgba(197, 163, 107, .065);
  pointer-events: none;
}

.brand-panel::after {
  content: "";
  position: absolute;
  top: 14%;
  right: -100px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(197, 163, 107, .09);
  border-radius: 50%;
  pointer-events: none;
}

.brand-header,
.brand-lockup,
.login-topline,
.card-footer,
.accounts-heading,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-header { position: relative; z-index: 1; align-items: flex-start; }

.brand-lockup { justify-content: flex-start; gap: 16px; }
.brand-lockup { color: inherit; text-decoration: none; }

.mark {
  position: relative;
  width: 54px;
  height: 54px;
  margin: 0;
  border: 1px solid rgba(197, 163, 107, .68);
  border-radius: 50%;
  color: var(--portal-gold-light);
  font: italic 31px/1 Georgia, serif;
}

.mark::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(197, 163, 107, .17);
  border-radius: inherit;
}

.mark span {
  position: absolute;
  right: -3px;
  bottom: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--portal-gold);
  box-shadow: 0 0 15px var(--portal-gold);
}

.wordmark {
  font: 600 16px/1.1 Georgia, serif;
  letter-spacing: .12em;
}

.wordmark small {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, .48);
  font: 600 7px/1 Inter, sans-serif;
  letter-spacing: .24em;
}

.system-live {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 999px;
  color: rgba(255, 255, 255, .55);
  background: rgba(0, 0, 0, .12);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .16em;
}

.system-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #77c99d;
  box-shadow: 0 0 12px #77c99d;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: clamp(48px, 8vh, 100px) 0 clamp(36px, 6vh, 72px);
}

.landing .eyebrow {
  margin: 0 0 18px;
  color: var(--portal-gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .3em;
}

.hero-copy h1 {
  max-width: 720px;
  margin: 0;
  color: #f2f5f1;
  font: 400 clamp(52px, 5.3vw, 88px)/.98 Georgia, "Songti SC", serif;
  letter-spacing: -.055em;
}

.hero-copy h1 em {
  color: var(--portal-gold-light);
  font-weight: 400;
}

.lead {
  max-width: 610px;
  margin: 30px 0 0;
  color: rgba(225, 236, 229, .68);
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: .025em;
}

.portal-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.portal-list a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  padding: 16px 17px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, .035);
  backdrop-filter: blur(10px);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.portal-list a:hover {
  transform: translateY(-3px);
  border-color: rgba(197, 163, 107, .52);
  background: rgba(197, 163, 107, .09);
}

.portal-no {
  color: var(--portal-gold);
  font: 600 9px/1 Georgia, serif;
  letter-spacing: .08em;
}

.portal-list b,
.portal-list small { display: block; }

.portal-list b {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
}

.portal-list small {
  margin-top: 6px;
  overflow: hidden;
  color: rgba(205, 222, 212, .52);
  font-size: 9px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-list i {
  color: rgba(255, 255, 255, .38);
  font-size: 14px;
  transition: color .25s ease, transform .25s ease;
}

.portal-list a:hover i { color: var(--portal-gold-light); transform: translate(2px, -2px); }

.warning {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.warning-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(197, 163, 107, .42);
  border-radius: 50%;
  color: var(--portal-gold-light);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .08em;
}

.warning div { display: grid; gap: 4px; }
.warning b { color: #e5d2a9; font-size: 11px; letter-spacing: .05em; }
.warning span:not(.warning-icon) { color: rgba(255, 255, 255, .43); font-size: 9px; letter-spacing: .05em; }

.login-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: clamp(34px, 4.5vw, 76px);
  overflow: hidden;
  color: #111713;
  background:
    radial-gradient(circle at 100% 0, rgba(197, 163, 107, .16), transparent 32%),
    linear-gradient(145deg, #f7f5ef 0%, #eeeae0 100%);
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(11, 38, 28, .08);
  border-radius: 20px;
  pointer-events: none;
}

.login-topline,
.login-heading,
.login-card form,
.demo-accounts,
.card-footer { position: relative; z-index: 1; }

.login-topline {
  margin-bottom: clamp(62px, 9vh, 108px);
  color: #748078;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .2em;
}

.secure-chip {
  padding: 8px 10px;
  border: 1px solid rgba(15, 58, 42, .12);
  border-radius: 999px;
  color: #315a48;
  background: rgba(255, 255, 255, .42);
  font-size: 7px;
}

.login-heading .eyebrow { color: #9b7740; }

.login-card h2 {
  margin: 8px 0 14px;
  color: #101b16;
  font: 400 clamp(34px, 3vw, 48px)/1.05 Georgia, "Songti SC", serif;
  letter-spacing: -.04em;
}

.login-card .muted {
  margin: 0;
  color: #6d776f;
  font-size: 12px;
  line-height: 1.7;
}

.login-card form { display: grid; gap: 18px; margin-top: 34px; }

.login-card form label {
  display: grid;
  gap: 9px;
  color: #3e4841;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}

.login-card input {
  width: 100%;
  height: 54px;
  padding: 0 17px;
  border: 1px solid rgba(13, 45, 33, .13);
  border-radius: 12px;
  outline: none;
  color: #15221c;
  background: rgba(255, 255, 255, .72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.login-card input:focus {
  border-color: rgba(34, 91, 65, .52);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(26, 91, 63, .07), 0 12px 30px rgba(11, 35, 25, .06);
}

.login-card button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  margin-top: 2px;
  padding: 0 19px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #0d3928, #071e16);
  box-shadow: 0 16px 35px rgba(11, 49, 34, .22);
  letter-spacing: .05em;
}

.login-card button i { color: var(--portal-gold-light); font-size: 17px; }
.login-card button:disabled { cursor: wait; opacity: .75; }
.login-card button.is-loading span::after { content: " · 验证中"; color: #b8ccbf; }
.login-card .error { min-height: 17px; margin: -7px 0 0; font-size: 11px; }

.auth-switch {
  position: relative;
  z-index: 1;
  margin: 18px 0 0;
  color: #6d776f;
  font-size: 11px;
  text-align: center;
}

.auth-switch a { color: #245d45; font-weight: 800; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }
.register-card { justify-content: center; }
.register-card .login-topline { margin-bottom: 36px; }
.register-card form { gap: 13px; margin-top: 24px; }
.register-card input { height: 49px; }
.registration-note {
  position: relative;
  z-index: 1;
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(155, 119, 64, .2);
  border-radius: 10px;
  color: #6f654f;
  background: rgba(225, 201, 152, .14);
  font-size: 10px;
  line-height: 1.7;
}

.demo-accounts {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(11, 42, 30, .1);
}

.accounts-heading p { margin: 0; color: #35433b; font-size: 10px; font-weight: 700; }
.accounts-heading span { color: #8b938e; font-size: 8px; letter-spacing: .08em; }

.account-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}

.account-grid code {
  min-width: 0;
  padding: 10px 9px;
  overflow: hidden;
  border: 1px solid rgba(11, 42, 30, .08);
  border-radius: 9px;
  color: #59635d;
  background: rgba(255, 255, 255, .48);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-grid code small {
  display: block;
  margin-bottom: 6px;
  color: #a07b42;
  font: 800 6px/1 Inter, sans-serif;
  letter-spacing: .18em;
}

.card-footer {
  margin-top: auto;
  padding-top: clamp(34px, 7vh, 80px);
  color: #929992;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .12em;
}

.site-footer {
  position: relative;
  z-index: 1;
  width: min(1480px, 100%);
  margin: 18px auto 0;
  padding: 0 8px;
  color: rgba(255, 255, 255, .28);
  font-size: 7px;
  letter-spacing: .18em;
}

@media (max-width: 1100px) {
  .login-shell { grid-template-columns: 1fr; }
  .brand-panel { min-height: 780px; }
  .login-card { min-height: 720px; }
  .login-topline { margin-bottom: 70px; }
  .hero-copy { margin: 70px 0 52px; }
}

@media (max-width: 680px) {
  body.landing { padding: 0; }
  .login-shell { border: 0; border-radius: 0; }
  .brand-panel { min-height: 100svh; padding: 28px 22px; }
  .brand-header { align-items: center; }
  .system-live { padding: 8px; font-size: 0; }
  .system-live::after { content: "LIVE"; font-size: 7px; }
  .wordmark { font-size: 14px; }
  .mark { width: 46px; height: 46px; font-size: 27px; }
  .hero-copy { margin: 58px 0 40px; }
  .hero-copy h1 { font-size: clamp(44px, 14vw, 66px); }
  .lead { font-size: 12px; }
  .portal-list { grid-template-columns: 1fr; }
  .portal-list a { min-height: 66px; }
  .warning { margin-top: 18px; }
  .login-card { min-height: 760px; padding: 58px 32px 42px; }
  .login-card::before { inset: 10px; }
  .login-topline { margin-bottom: 70px; }
  .account-grid { grid-template-columns: 1fr; }
  .account-grid code { font-size: 9px; }
  .card-footer { padding-top: 45px; }
  .site-footer { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
