body {
  --login-stone: #f3f0ea;
  --login-gold: #ebd8b6;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: clamp(12px,3vw,48px);
  background: #e9eef1;
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(0,1.12fr) minmax(0,1fr);
  width: min(100%,1360px);
  min-height: min(730px,calc(100dvh - 96px));
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #ced8df;
  border-radius: 23px;
  background: var(--login-stone);
  box-shadow: 0 24px 75px #18344c18;
}

.login-brand {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 42px;
  min-width: 0;
  padding: clamp(28px,4.5vw,72px);
  overflow: hidden;
  background: var(--navy);
  color: white;
}
.login-photo,.login-brand::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.login-photo { z-index: -2; object-fit: cover; object-position: center 55%; }
.login-brand::after {
  content: '';
  z-index: -1;
  background: linear-gradient(165deg,#081c32d9 0%,#0b23394d 44%,#081c32ec 92%);
}
.login-logo { width: clamp(145px,15vw,206px); height: auto; filter: brightness(0) invert(1); }
.login-slogan {
  margin: 0;
  font-family: "Songti SC","Noto Serif CJK SC",SimSun,serif;
  font-size: clamp(26px,4vw,63px);
  font-weight: 660;
  line-height: 1.27;
  letter-spacing: -.055em;
  text-shadow: 0 2px 24px #020d1dbf;
}
.login-slogan::before {
  display: block;
  width: 36px;
  height: 2px;
  margin-bottom: clamp(16px,2.2vw,32px);
  background: var(--login-gold);
  content: '';
}
.login-slogan span { display: block; }
.login-slogan span + span { margin-top: .13em; color: var(--login-gold); }

.login-card {
  display: grid;
  align-items: center;
  justify-items: center;
  min-width: 0;
  padding: clamp(24px,5vw,75px) clamp(20px,4.7vw,68px);
  background: linear-gradient(140deg,#faf9f5 0%,var(--login-stone) 100%);
}
.login-panel {
  width: min(100%,450px);
  overflow: hidden;
  border: 1px solid #d8e0e5;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 1px 2px #18344c08,0 16px 36px #1b355412;
}
.login-heading {
  padding: clamp(24px,3vw,42px);
  padding-bottom: 22px;
  border-bottom: 1px solid #e5edf1;
  background: linear-gradient(125deg,#f2f7fb,white 80%);
}
.login-heading p { margin: 0 0 8px; color: #40627d; font-size: 13px; font-weight: 650; letter-spacing: .07em; }
.login-heading h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(27px,3vw,41px);
  font-weight: 710;
  line-height: 1.15;
  letter-spacing: -.055em;
}
.login-panel form {
  display: grid;
  gap: 16px;
  padding: clamp(24px,3vw,42px);
  padding-top: 26px;
}
.login-fields,.login-field { display: grid; gap: 8px; }
.login-fields { gap: 18px; }
.login-field label { color: var(--ink); font-size: 13px; font-weight: 680; }
.login-field input {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 10px 14px;
  border: 1px solid #c8d6df;
  border-radius: 8px;
  background: #f8fafb;
  color: var(--ink);
  font-size: 16px;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.login-field input:hover { border-color: #8fa6b8; }
.login-field input:focus { outline: 0; border-color: var(--focus); background: white; box-shadow: 0 0 0 3px #2c74a626; }
.password-field { position: relative; }
.password-field input { padding-right: 66px; }
.password-field button {
  position: absolute;
  inset: 5px 5px auto auto;
  min-height: 44px;
  min-width: 48px;
  border-radius: 6px;
  color: #3f5f79;
}
.password-field button:hover { background: #e9f1f7; color: var(--brand); }
.login-panel button[type=submit] {
  position: relative;
  width: 100%;
  min-height: 52px;
  margin-top: 3px;
  padding-inline: 44px;
  border: 1px solid #083a62;
  border-radius: 8px;
  background: var(--brand);
  box-shadow: 0 5px 11px #00376325;
  font-size: 15px;
  font-weight: 640;
  transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
}
.login-panel button[type=submit]::after {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  color: #e1edf5;
  font-size: 18px;
  content: '→';
}
.login-panel button[type=submit]:disabled::after { display: none; }
.login-panel button[type=submit]:hover:enabled { background: #124e77; transform: translateY(-1px); box-shadow: 0 7px 15px #0037632a; }
.login-panel button[type=submit]:active:enabled { transform: translateY(1px); }
#login-error { margin: 0; padding: 10px 12px; border-radius: 7px; background: #fbebe7; color: #8a2c26; line-height: 1.5; }

@keyframes login-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion:no-preference) {
  .login-heading,.login-slogan { animation: login-enter .42s cubic-bezier(.2,.65,.3,1) both; }
}
@media (max-width: 740px) {
  body { align-items: start; }
  .login-layout { grid-template-columns: minmax(0,1fr); min-height: 0; border-radius: 17px; }
  .login-brand { gap: 28px; min-height: 224px; padding: 22px 24px; }
  .login-photo { object-position: 50% 49%; }
  .login-slogan { font-size: clamp(25px,5.9vw,34px); }
  .login-slogan::before { width: 26px; margin-bottom: 12px; }
  .login-card { padding: 16px; }
  .login-panel { border-radius: 12px; }
  .login-heading { padding: 21px 22px 19px; }
  .login-panel form { padding: 20px 22px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .login-panel input,.login-panel button { transition: none; transform: none !important; }
}

.login-feedback { min-height:1.55em; }
#login-error { padding:0; background:transparent; }
