:root {
  color-scheme: dark;
  --bg: #071321;
  --panel: #0d1d2f;
  --panel2: #12263d;
  --line: #243a50;
  --text: #eef5fc;
  --muted: #91a4b9;
  --gold: #e3ad3d;
  --blue: #3587ff;
  --green: #44c391;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background:
    radial-gradient(circle at 24% 18%, #102947 0, transparent 36%), var(--bg);
  color: var(--text);
  min-height: 100vh;
}
.site-header {
  height: 76px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(28px, calc((100vw - 1440px) / 2));
  background: rgba(7, 19, 33, 0.88);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}
.brand > span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: #071321;
  font-weight: 900;
}
.brand b {
  font-size: 20px;
}
.brand small {
  color: var(--muted);
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
.account-state {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
}
main {
  max-width: 1440px;
  margin: auto;
  padding: 32px 28px 64px;
}
.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.65fr);
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(9, 25, 42, 0.82);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}
.login-story {
  padding: 54px 6%;
  background: linear-gradient(
    135deg,
    rgba(53, 135, 255, 0.14),
    transparent 55%
  );
}
.eyebrow {
  display: block;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.14em;
  font-weight: 800;
  margin-bottom: 14px;
}
.login-story h1 {
  font-size: clamp(34px, 3.2vw, 50px);
  line-height: 1.15;
  margin: 0 0 22px;
  max-width: 680px;
}
.login-story > p {
  font-size: 17px;
  line-height: 1.7;
  color: #b4c4d4;
  max-width: 680px;
}
.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 36px;
}
.promise-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(7, 19, 33, 0.58);
}
.promise-grid b,
.promise-grid span {
  display: block;
}
.promise-grid span {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 8px;
}
.login-card {
  align-self: center;
  margin: 30px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
}
h2 {
  margin: 0 0 12px;
  font-size: 28px;
}
.login-card > p {
  color: var(--muted);
  line-height: 1.7;
}
.login-card form > p,
.modal-copy {
  color: var(--muted);
  line-height: 1.7;
}
.login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 22px 0 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #091929;
}
.login-tabs button {
  background: transparent;
  color: var(--muted);
  padding: 10px 12px;
}
.login-tabs button.active {
  background: #19334f;
  color: var(--text);
}
.login-card label,
.modal-card label {
  display: grid;
  gap: 9px;
  margin: 24px 0;
  color: #c6d4e2;
  font-weight: 700;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #304a63;
  border-radius: 12px;
  background: #0b1c2e;
  color: var(--text);
  padding: 15px 16px;
  font: inherit;
}
.password-field {
  position: relative;
  display: block;
}
.password-field input {
  padding-right: 52px;
}
.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 40px;
  height: 40px;
  padding: 9px;
  transform: translateY(-50%);
  background: transparent;
  color: var(--muted);
  border-radius: 9px;
}
.password-toggle:hover,
.password-toggle:focus-visible,
.password-toggle[aria-pressed="true"] {
  color: var(--text);
  background: #162c43;
}
.password-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.password-toggle::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 2px;
  left: 8px;
  top: 19px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(-42deg);
}
.password-toggle[aria-pressed="true"]::after {
  display: none;
}
button,
.secondary {
  border: 0;
  border-radius: 12px;
  padding: 14px 20px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
button:disabled {
  cursor: wait;
  opacity: 0.62;
}
.primary {
  background: var(--gold);
  color: #081522;
}
.secondary {
  background: #142941;
  color: #dce9f5;
  border: 1px solid #37516c;
}
.text-button {
  background: none;
  color: #b9c9d9;
  padding: 7px;
}
.login-card .primary {
  width: 100%;
}
.forgot-button {
  width: 100%;
  margin-top: 8px;
  color: #b9c9d9;
}
.login-card small {
  display: block;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 18px;
}
.form-status {
  min-height: 24px;
  margin-top: 14px;
  color: var(--green);
}
.workspace-head {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
  margin-bottom: 28px;
}
.workspace-head h1 {
  font-size: 38px;
  margin: 0 0 8px;
}
.workspace-head p {
  margin: 0;
  color: var(--muted);
}
.workspace-entry {
  display: flex;
  gap: 12px;
  align-items: end;
}
.workspace-entry > button {
  white-space: nowrap;
}
.security-notice {
  margin: -8px 0 22px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(227, 173, 61, 0.45);
  border-radius: 14px;
  background: rgba(227, 173, 61, 0.1);
}
.security-notice b,
.security-notice span {
  display: block;
}
.security-notice span {
  color: var(--muted);
  margin-top: 5px;
}
.tenant-picker {
  display: grid;
  gap: 8px;
  color: var(--muted);
  min-width: 300px;
}
.hero-card,
.panel,
.metric-grid article,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(13, 29, 47, 0.94);
}
.hero-card {
  padding: 30px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.hero-card h2 {
  font-size: 34px;
  margin-top: 12px;
}
.hero-card p {
  color: var(--muted);
  max-width: 880px;
  line-height: 1.7;
}
.role-pill {
  display: inline-flex;
  background: rgba(227, 173, 61, 0.14);
  color: var(--gold);
  border: 1px solid rgba(227, 173, 61, 0.45);
  padding: 6px 10px;
  border-radius: 999px;
}
.hero-actions {
  display: flex;
  gap: 12px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 18px 0;
}
.metric-grid article {
  padding: 24px;
}
.metric-grid span,
.metric-grid small {
  display: block;
  color: var(--muted);
}
.metric-grid strong {
  display: block;
  font-size: 34px;
  margin: 10px 0;
}
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.panel {
  overflow: hidden;
}
.panel > header {
  padding: 24px;
  border-bottom: 1px solid var(--line);
}
.panel h2 {
  font-size: 22px;
}
.operating-panel {
  margin: 18px 0;
}
.operating-panel > header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.operating-panel > header p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
}
.workspace-nav {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 1px solid var(--line);
  overflow: auto;
}
.workspace-tab {
  min-width: 145px;
  border-radius: 0;
  background: #0b1b2c;
  color: #a9bacb;
  padding: 17px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-right: 1px solid var(--line);
}
.workspace-tab b {
  color: var(--gold);
}
.workspace-tab.active {
  background: rgba(227, 173, 61, 0.12);
  color: var(--text);
  box-shadow: inset 0 -3px var(--gold);
}
.workspace-section {
  padding: 24px;
}
.workspace-section-head,
.object-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.workspace-section-head > span,
.object-group-title > span {
  color: var(--muted);
}
.object-group {
  margin-top: 22px;
}
.object-group-title h3 {
  margin: 0 0 12px;
  font-size: 17px;
  color: #cbd8e5;
}
.object-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.workspace-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0a1a2b;
  padding: 18px;
  min-height: 180px;
}
.workspace-card > span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}
.workspace-card h4 {
  font-size: 17px;
  margin: 10px 0;
}
.workspace-card p {
  color: #a9bacb;
  line-height: 1.62;
  margin: 0 0 14px;
}
.workspace-card div {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.workspace-card small {
  padding: 5px 8px;
  border-radius: 999px;
  background: #152b43;
  color: #a9bdd1;
}
.empty-card {
  color: var(--muted);
  min-height: auto;
}
.card-list {
  padding: 10px 24px 24px;
}
.info-card {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.info-card:last-child {
  border: 0;
}
.info-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}
.info-card p,
.info-card small {
  color: var(--muted);
  line-height: 1.65;
}
.info-card .primary {
  margin-top: 12px;
  padding: 10px 14px;
}
.empty-state {
  text-align: center;
  padding: 90px 24px;
}
.empty-state p {
  color: var(--muted);
}
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 30;
  padding: 28px;
  place-items: center;
}
.modal.open {
  display: grid;
}
.modal-card {
  width: min(680px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 34px;
  position: relative;
}
.close-button {
  position: absolute;
  right: 20px;
  top: 16px;
  background: none;
  color: var(--muted);
  font-size: 28px;
}
.toast {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 50;
  background: #14314b;
  border: 1px solid #3f617f;
  padding: 15px 18px;
  border-radius: 12px;
  box-shadow: 0 12px 35px #0008;
}
.toast.error {
  border-color: #9b4949;
  color: #ffd1d1;
}
@media (max-width: 900px) {
  .login-shell {
    grid-template-columns: 1fr;
  }
  .login-story {
    padding: 52px 32px;
  }
  .login-card {
    margin: 28px;
  }
  .promise-grid,
  .metric-grid,
  .content-grid,
  .object-grid {
    grid-template-columns: 1fr;
  }
  .workspace-head,
  .hero-card {
    align-items: stretch;
    flex-direction: column;
  }
  .workspace-entry {
    align-items: stretch;
    flex-direction: column;
  }
  .security-notice {
    align-items: stretch;
    flex-direction: column;
  }
  .tenant-picker {
    min-width: 0;
  }
  .site-header {
    padding: 0 18px;
  }
  .brand small {
    display: none;
  }
  main {
    padding: 30px 16px;
  }
  .hero-actions {
    flex-wrap: wrap;
  }
  .hero-actions > * {
    flex: 1;
  }
}
