:root {
  --night: #071613;
  --paper: #eeeae0;
  --white: #fffdf8;
  --ink: #17201d;
  --ink-soft: #5d6763;
  --line: #cec8ba;
  --sun: #d6a53a;
  --red: #a33b33;
  --teal: #2e6657;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, SimSun, serif;
  --sans: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; color: var(--ink); background-color: var(--paper); background-image: linear-gradient(rgba(46,102,87,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(46,102,87,.025) 1px, transparent 1px); background-size: 48px 48px; font-family: var(--sans); letter-spacing: 0; }
button, input { font: inherit; letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
.login-shell { min-height: 100svh; display: grid; grid-template-columns: minmax(360px, 0.92fr) minmax(430px, 1.08fr); }
.login-context { min-height: 100svh; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; color: var(--white); background-color: var(--night); background-image: linear-gradient(0deg, rgba(7, 22, 19, 0.9), rgba(7, 22, 19, 0.3)), url("../assets/hero-eclipse.webp"); background-size: cover; background-position: 58% center; border-right: 4px solid var(--sun); }
.login-brand { width: max-content; display: inline-flex; align-items: center; gap: 11px; font-family: var(--serif); font-size: 20px; font-weight: 700; }
.brand-mark { width: 34px; height: 34px; flex: 0 0 34px; display: block; }
.context-label, .panel-kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--sun); font-family: var(--serif); font-size: 11px; font-weight: 700; }
.context-label::before, .panel-kicker::before { content: ""; width: 7px; height: 7px; background: var(--red); }
.login-context h1 { margin: 0; font-family: var(--serif); font-size: 72px; font-weight: 650; line-height: 1.12; }
.login-context div > p:last-child { max-width: 460px; margin: 22px 0 0; color: rgba(255, 255, 255, 0.76); font-size: 17px; line-height: 1.8; }
.login-context-foot { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.privacy-note, .image-note { margin: 0; color: rgba(255, 255, 255, 0.58); font-size: 11px; }
.image-note { padding-left: 8px; border-left: 2px solid var(--sun); }
.login-panel { min-height: 100svh; padding: 54px; display: flex; flex-direction: column; background: rgba(255,253,248,.96); }
.back-link { width: max-content; color: var(--ink-soft); font-size: 13px; }
.back-link:hover { color: var(--red); }
.login-form-wrap { width: min(430px, 100%); margin: auto; padding: 52px 0; }
.panel-kicker { color: var(--red); }
.login-form-wrap h2 { margin: 0; font-family: var(--serif); font-size: 38px; font-weight: 650; line-height: 1.25; }
.panel-note { margin: 10px 0 30px; color: var(--ink-soft); }
.login-alert { margin-bottom: 20px; padding: 12px 14px; color: #7d2e27; background: #f8e8e5; border-left: 3px solid var(--red); font-size: 13px; line-height: 1.6; }
#login-form { display: grid; gap: 9px; }
#login-form label { margin-top: 8px; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
#login-form input { width: 100%; min-height: 48px; padding: 10px 12px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 2px; outline: none; }
#login-form input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(46, 102, 87, 0.13); }
.password-field { position: relative; }
.password-field input { padding-right: 60px !important; }
.password-field button { position: absolute; inset: 7px 7px 7px auto; padding: 0 9px; color: var(--ink-soft); background: transparent; border: 0; cursor: pointer; font-size: 12px; }
.login-submit { min-height: 48px; margin-top: 18px; color: var(--night); background: var(--sun); border: 0; border-radius: 2px; box-shadow: 4px 4px 0 rgba(163,59,51,.72); cursor: pointer; font-weight: 800; }
.login-submit:hover { background: #e8bd58; transform: translate(-1px,-1px); box-shadow: 6px 6px 0 rgba(163,59,51,.66); }
.login-submit:disabled { cursor: wait; opacity: 0.6; }
.login-help { margin: 22px 0 0; padding-top: 18px; color: var(--ink-soft); border-top: 1px solid var(--line); font-size: 12px; line-height: 1.7; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
@media (max-width: 800px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-context { min-height: 300px; padding: 28px 22px; border-right: 0; border-bottom: 4px solid var(--sun); }
  .login-context h1 { font-size: 46px; }
  .login-context div > p:last-child { margin-top: 12px; font-size: 15px; }
  .login-context-foot { display: none; }
  .login-panel { min-height: auto; padding: 24px 22px; }
  .login-form-wrap { padding-block: 42px; }
}
