:root {
  color-scheme: light;
  --ink: #18211f;
  --muted: #65716d;
  --paper: #f7f8f5;
  --line: #c8cfca;
  --green: #0a5b51;
  --green-dark: #132a25;
  --amber: #b78322;
  --red: #a13a30;
  --ui: Aptos, Bahnschrift, "Microsoft YaHei", sans-serif;
  --document: Cambria, "Book Antiqua", "Times New Roman", serif;
  --mono: Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }
html, body, #login-app { min-height: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--ui); }
button, input { font: inherit; }

.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(310px, 0.78fr) minmax(430px, 1.22fr); }
.login-identity {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  padding: 42px clamp(34px, 6vw, 88px);
  border-right: 4px solid var(--amber);
  background: var(--green-dark);
  color: #fff;
}
.identity-mark { width: 66px; height: 66px; display: grid; place-items: center; border: 1px solid #8fac9f; font-family: var(--mono); font-size: 20px; font-weight: 800; }
.login-identity span { color: #9bc1b6; font-family: var(--mono); font-size: 11px; letter-spacing: 0; }
.login-identity h1 { margin: 14px 0 10px; font-family: var(--document); font-size: 64px; font-weight: 500; line-height: 0.98; }
.login-identity p { margin: 0; color: #c3d3ce; font-family: var(--mono); font-size: 13px; }
.login-identity small { color: #9db1aa; font-size: 12px; }
.login-workspace { min-height: 100vh; display: grid; place-items: center; padding: 40px; background-color: #eef1ed; background-image: linear-gradient(#dfe4df 1px, transparent 1px), linear-gradient(90deg, #dfe4df 1px, transparent 1px); background-size: 32px 32px; }
.login-form { width: min(460px, 100%); border-top: 5px solid var(--green); background: #fff; padding: 42px 44px 46px; box-shadow: 0 18px 60px rgba(22, 42, 36, 0.12); }
.login-form header { margin-bottom: 30px; }
.login-form header span { color: var(--green); font-family: var(--mono); font-size: 11px; font-weight: 800; }
.login-form h2 { margin: 7px 0 0; font-family: var(--document); font-size: 34px; font-weight: 600; }
.login-form label { display: grid; gap: 7px; margin-top: 18px; }
.login-form label span { color: var(--muted); font-size: 12px; font-weight: 700; }
.login-form input { width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 3px; outline: 0; background: #fff; padding: 0 12px; color: var(--ink); }
.login-form input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(10, 91, 81, 0.12); }
.login-form button { width: 100%; min-height: 48px; margin-top: 26px; border: 1px solid var(--green); border-radius: 3px; background: var(--green); color: #fff; font-weight: 800; cursor: pointer; }
.login-form button:hover:not(:disabled) { background: #06463f; }
.login-form button:disabled { cursor: not-allowed; opacity: 0.45; }
.login-state { border-left: 3px solid var(--green); background: #eef7f3; padding: 16px; color: #27443c; line-height: 1.6; }
.login-state.blocked { border-color: var(--amber); background: #fff8e9; color: #6f5118; }
.form-error, .field-error { margin: 12px 0 0; color: var(--red); font-size: 12px; line-height: 1.5; }

@media (max-width: 760px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-identity { min-height: 230px; grid-template-rows: auto 1fr; padding: 24px; border-right: 0; border-bottom: 4px solid var(--amber); }
  .login-identity > div:nth-child(2) { align-self: end; margin-top: 26px; }
  .login-identity h1 { font-size: 38px; }
  .login-identity small { display: none; }
  .login-workspace { min-height: calc(100vh - 230px); padding: 18px; }
  .login-form { padding: 30px 24px 34px; }
}
