:root {
  color-scheme: light;
  font-family: system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #122943;
  background: #fcfcfc;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 28px clamp(16px, 4vw, 54px);
}
.login-layout {
  width: min(100%, 1160px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 440px);
  align-items: center;
  gap: clamp(16px, 4vw, 54px);
}
.login-background {
  width: 100%;
  aspect-ratio: 3 / 2;
  background: url('/login-background.jpg') center / contain no-repeat;
}
.login {
  min-width: 0;
  padding: clamp(22px, 4vw, 42px);
  background: #fff;
  border: 1px solid #e0e5ec;
  border-radius: 22px;
  box-shadow: 0 16px 56px #10294114;
}
.brand {
  display: grid;
  gap: 5px;
  text-align: center;
  color: #415875;
  font-size: clamp(13px, 4vw, 16px);
  font-weight: 680;
}
.brand span + span { font-size: 14px; }
h1 { margin: 24px 0 25px; font-size: clamp(30px, 8vw, 40px); line-height: 1.2; }
form { display: grid; gap: 9px; }
label { font-size: 14px; font-weight: 650; }
label:not(:first-child) { margin-top: 8px; }
input, button { font: inherit; }
input {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid #bdc6d2;
  background: #fafbfd;
  color: #122943;
  font-size: 16px;
}
input::placeholder { color: #5f6c80; }
:focus-visible { outline: 3px solid #315e90; outline-offset: 2px; }
.captcha-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(105px, 144px); gap: 9px; }
.captcha-image {
  min-height: 50px;
  padding: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #bdc6d2;
  border-radius: 10px;
  background: #f7f9fc;
  color: #415875;
  cursor: pointer;
  font-size: 13px;
}
.captcha-image img { width: 100%; height: auto; }
[hidden] { display: none !important; }
.status { margin: 2px 0 0; min-height: 20px; font-size: 13px; color: #92392c; }
.submit {
  min-height: 51px;
  border: 0;
  border-radius: 10px;
  background: #123457;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.submit:disabled { opacity: .65; cursor: default; }

@media (max-width: 740px) {
  body { padding-block: 12px 24px; }
  .login-layout { max-width: 460px; grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .login-background { width: min(100%, 330px); justify-self: center; }
  h1 { margin-block: 16px 20px; }
}
