:root {
  color-scheme: light;
  --paper: #f6f3eb;
  --ink: #163d2a;
  --muted: #7c857b;
  --red: #c33222;
  --line: #c9c7c0;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", serif;
  --sans: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
.login-layout { display: grid; grid-template-columns: minmax(0, 68.2fr) minmax(360px, 31.8fr); min-height: 100svh; }
.landscape { position: relative; overflow: hidden; min-height: 100svh; background: #d1dce0; }
.landscape-image { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.wordmark { position: absolute; top: 5.6%; left: 5.6%; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: #21412d; }
.wordmark span { font-family: "Baskerville", "Iowan Old Style", "Palatino Linotype", serif; font-size: clamp(21px, 1.95vw, 32px); font-weight: 600; letter-spacing: .28em; }
.wordmark b { font-family: var(--serif); font-size: clamp(13px, 1.2vw, 20px); font-weight: 600; letter-spacing: .42em; }
.login-panel { display: flex; flex-direction: column; justify-content: center; position: relative; min-width: 0; min-height: 100svh; padding: 70px clamp(30px, 3.75vw, 72px) 112px; background: var(--paper); }
.access { width: 100%; max-width: 430px; margin: auto; animation: arrive .6s ease-out both; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .36em; margin: 0 0 18px; }
h1 { margin: 0; font-family: var(--serif); font-size: clamp(44px, 4.25vw, 72px); font-weight: 700; line-height: 1.2; letter-spacing: .015em; white-space: nowrap; }
.intro { color: var(--muted); margin: 12px 0 0; font-family: var(--serif); font-size: clamp(16px, 1.35vw, 23px); letter-spacing: .14em; line-height: 1.6; }
.login-form { margin-top: clamp(40px, 5.8vh, 66px); }
.field + .field { margin-top: 30px; }
label { display: block; color: #263b30; font-size: 15px; margin-bottom: 10px; }
input:not([type="hidden"]) { width: 100%; height: 57px; border: 1px solid #bdbfb8; border-radius: 5px; background: #fcfaf7; color: #243b2f; padding: 0 18px; font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s; }
input::placeholder { color: #8a8b85; }
input:hover { border-color: #7f8e80; }
input:focus { border-color: #326748; box-shadow: 0 0 0 3px #32674820; }
input:-webkit-autofill { -webkit-text-fill-color: #243b2f; box-shadow: 0 0 0 100px #fcfaf7 inset; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 60px; }
.password-toggle { position: absolute; right: 5px; top: 5px; display: grid; place-items: center; height: 47px; width: 45px; background: transparent; border: 0; border-radius: 3px; }
.password-toggle img { opacity: .58; }
.password-toggle:hover img { opacity: 1; }
.form-error { color: #b62d20; font-size: 13px; line-height: 1.6; margin: 0; }
.form-error:not(:empty) { margin-top: 15px; }
.enter { margin-top: 38px; display: flex; align-items: center; justify-content: center; gap: 20px; width: 100%; min-height: 61px; padding: 13px 20px; border: 1px solid var(--red); border-radius: 5px; background: var(--red); color: #fffaf1; text-decoration: none; font-family: var(--serif); font-size: 24px; letter-spacing: .12em; transition: background .15s; }
.enter img { filter: invert(1); flex-shrink: 0; }
.enter:hover { background: #ac2c1d; }
.enter:disabled { opacity: .65; cursor: wait; }
.security-note { text-align: center; color: #85877e; font-size: 12px; margin: 25px 0 0; line-height: 1.6; }
.environment-note { text-align: center; color: #7c857b; font-size: 11px; line-height: 1.6; margin: 8px 0 0; }
.environment-note:empty { display: none; }
.panel-footer { position: absolute; bottom: 4.6%; left: clamp(30px, 3.75vw, 72px); right: clamp(30px, 3.75vw, 72px); padding-top: 15px; border-top: 1px solid var(--line); color: #858e83; text-align: center; font-family: "Baskerville", "Palatino Linotype", serif; font-size: 17px; }
.account-name { white-space: normal; overflow-wrap: anywhere; font-family: var(--sans); font-size: 22px; font-weight: 500; margin: 22px 0 0; }
.account-intro { font-family: var(--sans); font-size: 15px; letter-spacing: 0; }
.logout-form { text-align: center; margin: 20px 0; }
.logout { border: 0; padding: 12px; background: none; color: #64776a; font-size: 14px; text-decoration: underline; text-underline-offset: 5px; }
:focus-visible { outline: 2px solid #326748; outline-offset: 4px; }
@keyframes arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 761px) and (max-height: 760px) {
  .login-panel { padding-top: 42px; padding-bottom: 100px; }
  .eyebrow { margin-bottom: 12px; }
  .login-form { margin-top: 32px; }
  .field + .field { margin-top: 23px; }
  .enter { margin-top: 27px; min-height: 54px; }
  input:not([type="hidden"]) { height: 52px; }
  .password-toggle { height: 42px; }
}
@media (max-width: 1100px), (max-aspect-ratio: 5/4) {
  .login-layout { display: block; }
  .landscape { min-height: 0; height: auto; aspect-ratio: 1.3; }
  .landscape-image { object-position: center 55%; }
  .wordmark { top: 7%; left: 7%; gap: 2px; }
  .wordmark span { font-size: 20px; }
  .wordmark b { font-size: 12px; }
  .login-panel { min-height: 0; padding: 35px max(26px, 7%) 26px; }
  .access { max-width: 440px; }
  .eyebrow { font-size: 9px; margin-bottom: 10px; }
  h1 { font-size: 42px; }
  .intro { font-size: 16px; margin-top: 8px; }
  .login-form { margin-top: 28px; }
  .field + .field { margin-top: 20px; }
  label { font-size: 14px; margin-bottom: 8px; }
  input:not([type="hidden"]) { height: 54px; }
  .password-toggle { height: 44px; }
  .enter { margin-top: 27px; min-height: 56px; font-size: 22px; }
  .security-note { margin-top: 20px; }
  .panel-footer { position: static; width: 100%; max-width: 440px; margin: 32px auto 0; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
