:root {
  --ink: #17201d;
  --paper: #f3efe4;
  --orange: #d65f2f;
  --line: rgba(23, 32, 29, 0.15);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(115deg, rgba(214, 95, 47, 0.1), transparent 40%),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(23, 32, 29, 0.035) 31px 32px),
    var(--paper);
  font-family: "Avenir Next", "PingFang SC", sans-serif;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  align-items: stretch;
}
.login-context {
  padding: clamp(42px, 8vw, 120px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
}
.context-index, .login-heading > span {
  font: 700 11px/1.2 ui-monospace, SFMono-Regular, monospace;
  letter-spacing: .16em;
  color: var(--orange);
}
.login-context h1 {
  margin: 28px 0 24px;
  font: 600 clamp(48px, 7vw, 104px)/.95 Georgia, "Songti SC", serif;
  letter-spacing: -.055em;
}
.login-context p { max-width: 560px; font-size: 16px; line-height: 1.9; color: #52605b; }
.context-rule { margin-top: 52px; display: flex; align-items: center; gap: 14px; font-size: 11px; letter-spacing: .12em; }
.context-rule i { width: 74px; height: 2px; background: var(--orange); }
.login-card {
  padding: clamp(34px, 6vw, 88px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 253, 247, 0.72);
  backdrop-filter: blur(18px);
}
.brand-mark {
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 50%; color: white; background: var(--ink);
  font: 600 24px/1 Georgia, serif;
}
.login-heading { margin: 32px 0; }
.login-heading h2 { margin: 10px 0; font: 600 30px/1.2 Georgia, "Songti SC", serif; }
.login-heading p { margin: 0; color: #69736f; line-height: 1.7; font-size: 13px; }
form { display: grid; gap: 18px; }
label { display: grid; gap: 8px; }
label span { font-size: 12px; font-weight: 700; letter-spacing: .08em; }
input {
  width: 100%; padding: 14px 15px; border: 1px solid var(--line); border-radius: 4px;
  background: rgba(255,255,255,.74); color: var(--ink); font: inherit; outline: none;
}
input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(214,95,47,.1); }
button {
  margin-top: 4px; padding: 15px; border: 0; border-radius: 4px;
  color: white; background: var(--orange); font: 700 14px/1 inherit; cursor: pointer;
}
button:disabled { opacity: .55; cursor: wait; }
.login-error { min-height: 20px; margin: 0; color: #a33226; font-size: 12px; }
footer { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); color: #7a837f; font-size: 10px; }
@media (max-width: 820px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-context { min-height: 38vh; border-right: 0; border-bottom: 1px solid var(--line); padding: 42px 28px; }
  .login-context h1 { font-size: 52px; }
  .login-context p, .context-rule { display: none; }
  .login-card { min-height: 62vh; padding: 42px 28px; justify-content: flex-start; }
}
