:root {
  color-scheme: light;
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #1d2634;
  background: #f4f7fb;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  --primary: #066bce;
  --body-muted: #526278;
  --line: #cfdae8;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }

.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  min-height: 100vh;
  min-height: 100dvh;
}

.brand-panel {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: start;
  padding: clamp(32px, 6vw, 90px);
  overflow: hidden;
  color: #15375f;
  background: radial-gradient(at 28% 16%, #f4f9ff, transparent 55%), linear-gradient(135deg, #e7f2ff, #c7e0fc);
}

.brand-lockup { display: flex; align-items: center; gap: 13px; font-size: 21px; font-weight: 700; }
.brand-lockup small { display: block; margin-top: 2px; color: #38577d; font-size: 13px; font-weight: 500; }
.brand-symbol {
  display: grid;
  flex: 0 0 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(160deg, #1d7bcc, #0755a5);
  box-shadow: 0 8px 22px #0755a52e;
  font-size: 23px;
}

.brand-art {
  position: absolute;
  z-index: -1;
  inset: 0;
  mask-image: linear-gradient(transparent, #000 28%);
  pointer-events: none;
}

.art-circle {
  position: absolute;
  aspect-ratio: 1;
  border: 1px solid #ffffff9c;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff9f 2%, #7caef167 70%);
  box-shadow: inset 0 1px 24px #ffffffa1, 0 24px 65px #1a5fa02b;
}
.art-circle-one { width: min(33vw, 520px); left: 25%; bottom: 18%; }
.art-circle-two { width: min(18vw, 278px); left: 12%; bottom: 15%; }
.art-circle-three { width: min(12vw, 183px); right: -1%; top: 18%; }

.form-side { display: grid; place-items: center; padding: 36px 26px; background: #f5f7fb; }
.login-card {
  width: min(100%, 440px);
  padding: clamp(26px, 4vw, 46px);
  border: 1px solid #e6ecf3;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 60px #24446610;
}

.login-card h1 { margin: 0; line-height: 1.26; font-size: clamp(25px, 3vw, 32px); }
.login-subtitle { margin: 10px 0 28px; color: var(--body-muted); font-size: 14px; }
#login-form > label { display: block; margin: 0 0 8px; font-weight: 650; }
#login-form input {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  color: inherit;
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 16px;
}
#login-form input::placeholder { color: #67778e; }
#login-form input:focus { outline: 2px solid #4389d5; outline-offset: 1px; }
#login-username { margin: 0 0 19px; }
.password-field { position: relative; }
#login-password { padding-right: 64px; }
.password-toggle {
  position: absolute;
  top: 5px;
  right: 5px;
  bottom: 5px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--primary);
}
.password-toggle:hover { background: #eef5ff; }
.login-status { min-height: 1.5em; margin: 9px 0 11px; color: #a32740; font-size: 13px; }
.login-submit {
  width: 100%;
  min-height: 46px;
  padding: 10px 17px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--primary);
  font-weight: 650;
}
.login-submit:hover:not(:disabled) { background: #075eb4; }
.login-submit:disabled { opacity: .72; cursor: progress; }

@media (max-width: 730px) {
  .login-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .brand-panel { padding: 20px 24px; }
  .brand-art { display: none; }
  .brand-lockup { font-size: 19px; }
  .brand-symbol { flex-basis: 42px; height: 42px; border-radius: 12px; font-size: 21px; }
  .form-side { padding: 24px 16px; }
}
