:root {
  color: #17283b;
  background: #edf4ff;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; letter-spacing: 0; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  background: #edf4ff;
}

button, input { font: inherit; }

.login-shell {
  display: grid;
  width: min(1402px, 100%);
  min-height: min(100vh, 1122px);
  grid-template-columns: 55.35% 44.65%;
  background: #edf4ff;
}

.login-brand {
  min-width: 0;
  overflow: hidden;
  background: #edf4ff;
}

.login-brand img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.login-panel { display: grid; place-items: center; padding: 7.8% 6.5%; }
.login-panel form {
  width: 100%; max-width: 562px; min-height: 850px; padding: 91px 56px 70px;
  border-radius: 16px; background: rgba(255,255,255,.96); box-shadow: 0 18px 56px rgba(62,100,157,.17);
}
.panel-logo { display: block; width: min(320px, 82%); height: auto; margin: 0 auto; object-fit: contain; }
.system-name { display: flex; align-items: center; justify-content: center; gap: 13px; margin: 14px 0 70px; color: #7586a4; font-size: 17px; font-weight: 600; }
.system-name span { width: 25px; height: 1px; background: #93a2bd; }
.login-heading { margin-bottom: 40px; text-align: center; }
.login-heading h1 { margin: 0; color: #152a49; font-size: 29px; }
.login-heading p { margin: 17px 0 0; color: #8290a9; font-size: 15px; }
.login-field {
  display: grid; height: 74px; margin-top: 26px; grid-template-columns: 66px minmax(0,1fr); align-items: center;
  border: 1px solid #cbd7ea; border-radius: 8px; background: #fff; transition: border-color 160ms ease, box-shadow 160ms ease;
}
.login-field:focus-within { border-color: #2877f5; box-shadow: 0 0 0 3px rgba(24,104,242,.1); }
.field-icon { display: grid; height: 100%; place-items: center; border-right: 1px solid #d6dfed; color: #7586a3; }
.field-icon svg { width: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.login-panel input {
  width: 100%; height: 100%; min-width: 0; padding: 0 22px; border: 0; outline: none; color: #17283b; background: transparent; font-size: 16px;
}
.login-panel input::placeholder { color: #8a97ad; }
.password-field { position: relative; grid-template-columns: 66px minmax(0,1fr) 52px; }
.password-field input { padding-right: 10px; }
.password-field button { display: grid; width: 52px; height: 100%; padding: 0; place-items: center; border: 0; background: transparent; color: #7586a3; cursor: pointer; }
.password-field button svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.eye-closed, .password-field button.is-visible .eye-open { display: none; }
.password-field button.is-visible .eye-closed { display: block; }
.login-message { min-height: 23px; margin: 13px 0 2px; color: #c44646; font-size: 13px; line-height: 1.7; }
.login-submit {
  width: 100%; height: 73px; margin-top: 23px; border: 0; border-radius: 8px;
  background: #1462ef; box-shadow: 0 12px 28px rgba(20,98,239,.25); color: #fff; font-size: 19px; font-weight: 700; cursor: pointer;
}
.login-submit:hover { background: #0b55df; }
.login-submit:disabled { cursor: wait; opacity: .65; }

@media (min-width: 901px) and (max-height: 850px) {
  .login-panel { padding: 32px 5.5%; }
  .login-panel form { min-height: min(630px, calc(100vh - 64px)); padding: 42px 44px 34px; }
  .panel-logo { width: min(270px, 78%); }
  .system-name { margin: 8px 0 34px; font-size: 14px; }
  .login-heading { margin-bottom: 27px; }
  .login-heading h1 { font-size: 26px; }
  .login-heading p { margin-top: 10px; font-size: 13px; }
  .login-field { height: 60px; margin-top: 20px; grid-template-columns: 58px minmax(0,1fr); }
  .password-field { grid-template-columns: 58px minmax(0,1fr) 48px; }
  .login-message { margin-top: 8px; }
  .login-submit { height: 60px; margin-top: 12px; font-size: 17px; }
}

@media (max-width: 900px) {
  .login-shell { min-height: 100vh; grid-template-columns: 1fr; }
  .login-brand { min-height: 250px; max-height: 38vh; }
  .login-brand img { object-position: center 20%; }
  .login-panel { padding: 28px 20px 48px; }
  .login-panel form { max-width: 520px; min-height: 0; padding: 46px 34px 42px; }
  .panel-logo { width: min(260px, 78%); }
  .system-name { margin-bottom: 38px; }
}

@media (max-width: 520px) {
  .login-brand { min-height: 180px; max-height: 28vh; }
  .login-panel { padding: 18px 14px 36px; }
  .login-panel form { padding: 36px 22px 32px; border-radius: 10px; }
  .system-name { margin: 8px 0 32px; font-size: 13px; }
  .login-heading h1 { font-size: 25px; }
  .login-heading p { font-size: 13px; }
  .login-field { height: 60px; grid-template-columns: 54px minmax(0,1fr); }
  .password-field { grid-template-columns: 54px minmax(0,1fr) 45px; }
  .login-panel input { padding: 0 14px; font-size: 14px; }
  .login-submit { height: 60px; font-size: 17px; }
}
