:root {
  --bg: #edf4f7;
  --surface: #ffffff;
  --ink: #111827;
  --muted: #667085;
  --line: #d9e3ea;
  --brand: #146c86;
  --brand-dark: #0f4d64;
  --brand-soft: #e8f6f8;
  --green: #22ad68;
  --blue: #3774e8;
  --danger: #d92d20;
  --shadow: 0 24px 70px rgba(15, 36, 50, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(20, 108, 134, 0.12), rgba(55, 116, 232, 0.06)),
    var(--bg);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

button,
input {
  font: inherit;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(360px, 480px) minmax(360px, 560px);
  align-items: center;
  justify-content: center;
  gap: 32px;
  min-height: 100vh;
  padding: 42px 24px;
}

.login-panel,
.brief-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.login-panel {
  padding: 34px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
}

.brand-logo svg {
  width: 44px;
  height: 44px;
}

.logo-shield {
  fill: #edf8fa;
  stroke: var(--brand-dark);
  stroke-width: 2.8;
}

.logo-star {
  fill: var(--blue);
}

.logo-check {
  fill: none;
  stroke: var(--green);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.2;
}

.logo-tile {
  fill: #ff5a24;
}

.logo-paper {
  fill: #fff7f1;
}

.logo-lines,
.logo-lens {
  fill: none;
  stroke: #f05a20;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.35;
}

.logo-word {
  fill: #f05a20;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
  font-weight: 900;
}

.brand-row strong,
.brand-row span {
  display: block;
}

.brand-row strong {
  color: #164e63;
  font-size: 24px;
  font-weight: 900;
}

.brand-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.login-copy {
  margin: 46px 0 28px;
}

.login-copy h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.18;
}

.login-copy p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-form label {
  display: grid;
  gap: 8px;
}

.login-form label span {
  color: #344054;
  font-size: 13px;
  font-weight: 900;
}

.login-form input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 13px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.login-form input:focus {
  border-color: rgba(20, 108, 134, 0.55);
  box-shadow: 0 0 0 3px rgba(20, 108, 134, 0.12);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.primary-button:hover {
  background: var(--brand-dark);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.form-message {
  min-height: 20px;
  margin: 0;
  color: var(--danger);
  font-size: 13px;
  font-weight: 800;
}

.form-message.success {
  color: var(--green);
}

.local-hint {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 13px;
  border: 1px solid rgba(20, 108, 134, 0.18);
  border-radius: var(--radius);
  background: var(--brand-soft);
  color: #344054;
  font-size: 12px;
  line-height: 1.65;
}

.local-hint[hidden] {
  display: none;
}

.local-hint strong {
  color: var(--brand-dark);
  font-size: 13px;
}

.local-hint code {
  color: var(--brand-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 800;
}

.side-brief {
  display: grid;
  gap: 14px;
}

.brief-card {
  display: grid;
  gap: 8px;
  padding: 22px;
}

.brief-card span {
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.brief-card strong {
  font-size: 21px;
}

.brief-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

@media (max-width: 860px) {
  .login-shell {
    grid-template-columns: minmax(0, 520px);
  }

  .side-brief {
    display: none;
  }
}

@media (max-width: 520px) {
  .login-shell {
    padding: 14px;
  }

  .login-panel {
    padding: 24px 18px;
  }

  .login-copy {
    margin: 34px 0 24px;
  }

  .login-copy h1 {
    font-size: 28px;
  }
}

/* 察博士报告后台登录 */
.report-login-page {
  --report-orange: #ff5a24;
  --report-orange-dark: #df4216;
  --report-orange-soft: #fff2eb;
  --report-ink: #181a1f;
  --report-muted: #727985;
  --report-line: #e7e9ed;
  min-height: 100svh;
  overflow-x: hidden;
  background: #f5f5f3;
}

.report-login-page::before,
.report-login-page::after {
  position: fixed;
  z-index: 0;
  border-radius: 999px;
  content: "";
  pointer-events: none;
  filter: blur(2px);
}

.report-login-page::before {
  width: 360px;
  height: 360px;
  right: -160px;
  top: -160px;
  background: rgba(255, 90, 36, 0.08);
}

.report-login-page::after {
  width: 260px;
  height: 260px;
  right: 12%;
  bottom: -190px;
  background: rgba(255, 90, 36, 0.06);
}

.report-login-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(420px, 0.94fr) minmax(500px, 1.06fr);
  min-height: 100svh;
}

.report-login-brand {
  position: relative;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(30px, 5vw, 64px);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 117, 66, 0.22), transparent 32%),
    linear-gradient(145deg, #111318 0%, #1c1e23 62%, #24262c 100%);
  color: #fff;
}

.report-login-brand::before {
  position: absolute;
  width: 480px;
  height: 480px;
  right: -310px;
  bottom: -260px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 72px rgba(255, 255, 255, 0.025),
    0 0 0 144px rgba(255, 255, 255, 0.018);
  content: "";
}

.report-login-brand::after {
  position: absolute;
  width: 8px;
  height: 92px;
  left: 0;
  top: 42%;
  border-radius: 0 8px 8px 0;
  background: var(--report-orange);
  content: "";
}

.report-brand-top,
.report-brand-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.report-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #fff;
  text-decoration: none;
}

.report-brand-lockup img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.report-brand-lockup strong,
.report-brand-lockup small {
  display: block;
}

.report-brand-lockup strong {
  font-size: 22px;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.report-brand-lockup small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.report-console-badge,
.report-login-mark {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 11px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.report-console-badge {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.62);
}

.report-brand-copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: auto 0 42px;
}

.report-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--report-orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.report-eyebrow::before {
  width: 28px;
  height: 2px;
  background: var(--report-orange);
  content: "";
}

.report-brand-copy h1 {
  margin: 0;
  font-size: clamp(36px, 4.4vw, 62px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.report-brand-description {
  max-width: 520px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 15px;
  line-height: 1.9;
}

.report-capabilities {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 44px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.report-capabilities article {
  min-height: 140px;
  padding: 20px;
  background: rgba(20, 22, 27, 0.8);
}

.report-capabilities article > span {
  display: block;
  margin-bottom: 22px;
  color: var(--report-orange);
  font-size: 11px;
  font-weight: 950;
}

.report-capabilities strong {
  display: block;
  font-size: 14px;
  font-weight: 900;
}

.report-capabilities p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.44);
  font-size: 12px;
  line-height: 1.6;
}

.report-brand-footer {
  color: rgba(255, 255, 255, 0.34);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.report-brand-footer a {
  color: rgba(255, 255, 255, 0.58);
  font-weight: 800;
  text-decoration: none;
}

.report-brand-footer a:hover {
  color: #fff;
}

.report-login-workspace {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 92px clamp(28px, 7vw, 110px) 56px;
}

.report-login-status {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  left: clamp(28px, 7vw, 110px);
  right: clamp(28px, 7vw, 110px);
  top: 30px;
  color: var(--report-muted);
  font-size: 11px;
  font-weight: 800;
}

.report-login-status span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.report-login-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #20b26b;
  box-shadow: 0 0 0 4px rgba(32, 178, 107, 0.12);
}

.report-login-status a {
  color: #555d68;
  text-decoration: none;
}

.report-login-status a:hover {
  color: var(--report-orange-dark);
}

.report-login-card {
  width: min(100%, 460px);
}

.report-login-heading {
  margin-bottom: 36px;
}

.report-login-mark {
  margin-bottom: 22px;
  background: var(--report-orange-soft);
  color: var(--report-orange-dark);
}

.report-login-heading h2 {
  margin: 0;
  color: var(--report-ink);
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 950;
  letter-spacing: -0.045em;
}

.report-login-heading p {
  margin: 12px 0 0;
  color: var(--report-muted);
  font-size: 14px;
  line-height: 1.7;
}

.report-login-form {
  display: grid;
  gap: 20px;
}

.report-field {
  display: grid;
  gap: 9px;
}

.report-field > span {
  color: #3f4650;
  font-size: 12px;
  font-weight: 900;
}

.report-input-wrap {
  position: relative;
}

.report-input-wrap input {
  width: 100%;
  height: 54px;
  border: 1px solid var(--report-line);
  border-radius: 8px;
  padding: 0 68px 0 44px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--report-ink);
  font-size: 14px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.report-input-wrap input::placeholder {
  color: #a4a9b1;
}

.report-input-wrap input:hover {
  border-color: #cfd3d9;
  background: #fff;
}

.report-input-wrap input:focus {
  border-color: rgba(255, 90, 36, 0.72);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 90, 36, 0.1);
}

.report-input-icon {
  position: absolute;
  z-index: 1;
  width: 16px;
  height: 16px;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #959ba4;
}

.user-icon::before {
  position: absolute;
  width: 6px;
  height: 6px;
  left: 5px;
  top: 0;
  border: 1.8px solid currentColor;
  border-radius: 50%;
  content: "";
}

.user-icon::after {
  position: absolute;
  width: 13px;
  height: 7px;
  left: 1.5px;
  bottom: 0;
  border: 1.8px solid currentColor;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  content: "";
}

.lock-icon::before {
  position: absolute;
  width: 12px;
  height: 9px;
  left: 2px;
  bottom: 0;
  border: 1.8px solid currentColor;
  border-radius: 3px;
  content: "";
}

.lock-icon::after {
  position: absolute;
  width: 8px;
  height: 8px;
  left: 4px;
  top: 0;
  border: 1.8px solid currentColor;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  content: "";
}

.password-toggle {
  position: absolute;
  right: 11px;
  top: 50%;
  min-width: 48px;
  height: 32px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #777e88;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.password-toggle:hover {
  background: #f3f3f1;
  color: var(--report-orange-dark);
}

.report-security-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #8a9099;
  font-size: 11px;
  font-weight: 800;
}

.report-security-line span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.report-security-line i {
  width: 12px;
  height: 10px;
  border: 1.6px solid #8a9099;
  border-radius: 2px;
}

.report-login-button {
  position: relative;
  display: inline-flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: var(--report-orange);
  box-shadow: 0 12px 24px rgba(255, 90, 36, 0.2);
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.report-login-button:hover {
  transform: translateY(-1px);
  background: var(--report-orange-dark);
  box-shadow: 0 15px 28px rgba(255, 90, 36, 0.24);
}

.report-login-button:active {
  transform: translateY(0);
}

.report-login-button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.report-form-message {
  min-height: 20px;
  text-align: center;
}

.report-local-hint {
  border-color: rgba(255, 90, 36, 0.16);
  background: var(--report-orange-soft);
}

.report-local-hint strong,
.report-local-hint code {
  color: var(--report-orange-dark);
}

.report-login-help {
  margin: 22px 0 0;
  color: #969ba3;
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
}

@media (max-width: 1100px) {
  .report-login-shell {
    grid-template-columns: minmax(380px, 0.82fr) minmax(440px, 1.18fr);
  }

  .report-capabilities {
    grid-template-columns: 1fr;
  }

  .report-capabilities article {
    display: grid;
    min-height: auto;
    grid-template-columns: 34px 1fr;
    padding: 15px 18px;
  }

  .report-capabilities article > span {
    margin: 2px 0 0;
  }
}

@media (max-width: 820px) {
  .report-login-shell {
    display: block;
  }

  .report-login-brand {
    min-height: auto;
    padding: 24px 24px 28px;
  }

  .report-brand-copy {
    margin: 64px 0 26px;
  }

  .report-brand-copy h1 {
    font-size: clamp(34px, 9vw, 52px);
  }

  .report-capabilities,
  .report-brand-description {
    display: none;
  }

  .report-login-workspace {
    min-height: auto;
    padding: 88px 24px 58px;
  }

  .report-login-status {
    left: 24px;
    right: 24px;
  }
}

@media (max-width: 520px) {
  .report-login-brand {
    padding: 18px 18px 24px;
  }

  .report-console-badge {
    display: none;
  }

  .report-brand-copy {
    margin: 46px 0 20px;
  }

  .report-brand-copy h1 {
    font-size: 34px;
    letter-spacing: -0.035em;
  }

  .report-brand-footer {
    font-size: 10px;
  }

  .report-login-workspace {
    padding: 82px 18px 42px;
  }

  .report-login-status {
    left: 18px;
    right: 18px;
    top: 24px;
  }

  .report-login-heading {
    margin-bottom: 28px;
  }

  .report-login-heading h2 {
    font-size: 34px;
  }

  .report-input-wrap input {
    height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .report-input-wrap input,
  .report-login-button {
    transition: none;
  }
}
