:root {
  color-scheme: light;
  font: 16px/1.5 system-ui, "Microsoft YaHei", sans-serif;
  color: #172945;
  background: #edf3fa;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 28px; }
.login-shell {
  width: min(840px, 100%);
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  overflow: hidden;
  border: 1px solid #d6e0ee;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px #112c551c;
}
.brand-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 58px);
  color: #fff;
  background: linear-gradient(150deg, #0c2343, #174b84);
}
.monogram { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 30px; border-radius: 13px; background: #dfedff; color: #142f53; font-weight: 800; letter-spacing: .06em; }
.company { margin: 0 0 8px; color: #bfd7f2; font-size: .83rem; }
h1 { margin: 0; font-size: clamp(1.7rem, 3.5vw, 2.45rem); line-height: 1.2; }
.form-panel { padding: clamp(30px, 6vw, 64px); }
h2 { margin: 0 0 24px; font-size: 1.5rem; }
label { display: block; margin-bottom: 18px; font-size: .92rem; font-weight: 650; }
input, button { display: block; width: 100%; min-height: 46px; border-radius: 9px; font: inherit; }
input { margin-top: 6px; padding: 10px 12px; border: 1px solid #b8c8dd; color: inherit; background: #f9fbfe; }
button { margin-top: 24px; border: 0; background: #2257bc; color: #fff; font-weight: 750; cursor: pointer; }
button:hover { background: #19499f; }
:is(input, button):focus-visible { outline: 3px solid #2669d9; outline-offset: 3px; }
.login-error { margin: 0 0 16px; padding: 10px 12px; border-radius: 8px; background: #fff1ef; color: #a12621; font-size: .9rem; }
.login-error:empty { display: none; }
@media (max-width: 640px) {
  body { padding: 16px; }
  .login-shell { grid-template-columns: 1fr; }
  .brand-panel { padding: 24px 28px; }
  .monogram { width: 39px; height: 39px; margin-bottom: 13px; }
  .form-panel { padding: 28px; }
}
