:root {
  color-scheme: light;
  font-family: "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #1e293b;
  background: #edf6fc;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
main { flex: 1; display: grid; place-items: center; padding: 24px; }
.login-panel {
  width: min(100%, 840px);
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  background: #fff;
  border: 1px solid #d7e5f0;
  border-radius: 22px;
  box-shadow: 0 16px 48px #0d416217;
  overflow: hidden;
}
.login-brand {
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 28px;
  text-align: center;
  border-right: 1px solid #e0ebf3;
}
.login-brand img { width: min(100%, 218px); height: auto; }
h1 { margin: 0; font-size: 1.5rem; line-height: 1.4; color: #15354d; text-wrap: balance; }
h1 span { display: block; margin-top: 6px; font-size: 1rem; font-weight: 400; color: #526579; }
.signin { padding: 46px clamp(24px, 5vw, 52px); }
.fields { display: grid; gap: 20px; margin-top: 32px; }
.field { min-width: 0; display: grid; gap: 8px; }
label { font-size: .875rem; font-weight: 500; color: #334155; }
input, button { height: 48px; font: inherit; border-radius: 8px; opacity: 1; }
input { width: 100%; min-width: 0; padding: 0 12px; border: 1px solid #c3d4e2; background: #f8fafc; }
input::placeholder { color: #64748b; opacity: 1; }
.login-code { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
button { border: 0; padding: 0 14px; background: #eaf3fa; color: #526579; font-size: .875rem; white-space: nowrap; }
.login-submit { margin-top: 4px; font-size: 1rem; font-weight: 600; letter-spacing: .04em; background: #52718a; color: #fff; }
footer { text-align: center; padding: 12px 16px 24px; color: #526579; font-size: .875rem; line-height: 1.6; }
footer a { color: #005886; text-underline-offset: 3px; white-space: nowrap; }
footer a:focus-visible { outline: 2px solid #0083be; outline-offset: 3px; }
@media (max-width: 620px) {
  main { padding: 16px; }
  .login-panel { grid-template-columns: minmax(0, 1fr); }
  .login-brand { padding: 22px; border-right: 0; border-bottom: 1px solid #e0ebf3; }
  .login-brand img { width: 96px; }
  .signin { padding: 28px 24px; }
}
