:root {
  --workspace: #e9edf1;
  --paper: #ffffff;
  --ink: #18202a;
  --muted: #657180;
  --line: #d9dfe6;
  --blue: #2d70e5;
  --blue-dark: #1e56b7;
  --danger: #b42318;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--workspace);
  color: var(--ink);
  font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

button, input { font: inherit; letter-spacing: 0; }

button, input { border-radius: 6px; }

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(45, 112, 229, 0.24);
  outline-offset: 2px;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(460px, 1.08fr) minmax(420px, 0.92fr);
}

.report-visual {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  padding: clamp(34px, 5vw, 72px);
  background: #dfe5eb;
  border-right: 1px solid #cdd5dd;
}

.visual-heading {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  max-width: 720px;
  margin: 0 auto 30px;
}

.visual-heading strong {
  max-width: 330px;
  font-size: clamp(25px, 2.5vw, 38px);
  line-height: 1.25;
  text-align: right;
}

.visual-index {
  color: #4d5a68;
  font-size: 11px;
  font-weight: 800;
}

.report-sheet {
  position: relative;
  z-index: 1;
  width: min(68%, 520px);
  margin: 0 auto;
  background: var(--paper);
  box-shadow: 0 28px 70px rgba(24, 32, 42, 0.2);
  transform: rotate(-2.5deg) translateY(4px);
  transform-origin: center top;
}

.report-sheet::before,
.report-sheet::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #f8fafc;
  border: 1px solid #cfd7df;
}

.report-sheet::before { transform: translate(22px, 18px) rotate(3.6deg); }
.report-sheet::after { transform: translate(-17px, 31px) rotate(-1.6deg); }

.report-sheet img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #cbd4dd;
}

.login-panel {
  min-height: 720px;
  display: grid;
  background: var(--paper);
}

.login-panel-inner {
  width: min(100%, 620px);
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(28px, 5vw, 64px) clamp(28px, 6vw, 84px) 28px;
}

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

.login-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.login-brand div { display: grid; gap: 2px; }
.login-brand strong { font-size: 15px; }
.login-brand div span { color: var(--muted); font-size: 9px; font-weight: 800; }

.login-content {
  align-self: center;
  width: 100%;
  max-width: 390px;
  padding: 48px 0;
}

.login-section-label {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

h1 {
  margin: 0 0 34px;
  font-size: 30px;
  line-height: 1.25;
}

.login-field {
  display: block;
  margin-bottom: 18px;
}

.login-field > span,
.login-field > label {
  display: block;
  margin-bottom: 7px;
  color: #3d4957;
  font-size: 12px;
  font-weight: 700;
}

.login-field input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #c8d1da;
  background: #fff;
  color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.login-field input:hover { border-color: #aab6c2; }
.login-field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(45, 112, 229, 0.12); }

.captcha-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 126px;
  gap: 10px;
}

.captcha-button {
  height: 46px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #c8d1da;
  background: #f5f7f9;
  color: var(--muted);
  cursor: pointer;
}

.captcha-button img { display: block; width: 100%; height: 100%; object-fit: cover; }
.captcha-button span { font-size: 12px; }

.login-error {
  margin: -3px 0 16px;
  padding: 10px 12px;
  border-left: 3px solid var(--danger);
  background: #fff4f3;
  color: #8f1d15;
  font-size: 12px;
  line-height: 1.5;
}

.login-submit {
  width: 100%;
  min-height: 48px;
  border: 0;
  background: var(--blue);
  color: #fff;
  font-weight: 750;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.login-submit:hover { background: var(--blue-dark); }
.login-submit:active { transform: translateY(1px); }
.login-submit:disabled { cursor: wait; opacity: 0.68; }

.login-footer {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: #86919d;
  font-size: 9px;
  font-weight: 800;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

@media (max-width: 900px) {
  .login-shell { grid-template-columns: minmax(0, 0.78fr) minmax(390px, 1fr); }
  .report-visual { padding: 36px 28px; }
  .visual-heading { display: block; }
  .visual-heading strong { display: block; margin-top: 12px; text-align: left; font-size: 26px; }
  .report-sheet { width: 82%; margin-top: 48px; }
}

@media (max-width: 680px) {
  .login-shell { position: relative; display: block; min-height: 100vh; overflow: hidden; background: var(--paper); }
  .report-visual {
    position: absolute;
    inset: auto -66px -100px auto;
    width: 240px;
    min-height: 0;
    height: 300px;
    padding: 0;
    border: 0;
    background: transparent;
    opacity: 0.13;
    pointer-events: none;
  }
  .visual-heading { display: none; }
  .report-sheet { width: 100%; margin: 0; }
  .login-panel { min-height: 100vh; }
  .login-panel-inner { width: 100%; padding: 24px 22px; }
  .login-content { max-width: none; padding: 52px 0 42px; }
  h1 { font-size: 27px; }
}

@media (max-width: 380px) {
  .captcha-row { grid-template-columns: 1fr; }
  .captcha-button { width: 126px; }
}
