.login-page {
  grid-template-columns: minmax(0, 2fr) minmax(360px, 1fr);
}

.login-brand {
  justify-content: flex-start;
  padding: 44px clamp(58px, 6vw, 92px) 64px;
}

.login-brand::before {
  width: 620px;
  height: 620px;
  top: -260px;
  right: -180px;
  box-shadow: 0 0 0 90px rgba(255, 255, 255, .025), 0 0 0 180px rgba(255, 255, 255, .018);
}

.login-brand > * {
  position: relative;
  z-index: 1;
}

.login-brand .brand-logo {
  width: 204px;
  margin: 0;
}

.brand-message {
  width: min(720px, 100%);
  margin: auto 0;
  transform: translateY(-8px);
}

.system-name h1,
.slogan h2 {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
  white-space: nowrap;
}

.system-name h1 {
  margin: 0;
  font-size: clamp(38px, 3.45vw, 52px);
  line-height: 1.16;
  font-weight: 650;
}

.system-name p {
  margin: 16px 0 0;
  color: #d5dff2;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 1.8px;
  font-weight: 650;
  white-space: nowrap;
}

.slogan {
  margin-top: 86px;
}

.slogan h2 {
  margin: 0;
  font-size: clamp(25px, 2.15vw, 32px);
  line-height: 1.25;
  font-weight: 550;
}

.slogan p {
  margin: 12px 0 0;
  color: #aebfe2;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 2.1px;
  font-weight: 700;
  white-space: nowrap;
}

.login-form {
  width: min(390px, calc(100% - 56px));
}

@media (max-width: 1120px) {
  .login-brand .brand-logo {
    width: 180px;
  }

  .system-name h1 {
    font-size: 34px;
  }

  .slogan h2 {
    font-size: 24px;
  }
}

@media (max-width: 800px) {
  .login-page {
    grid-template-columns: 1fr;
  }
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #8899bb;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.2s;
  z-index: 2;
}

.toggle-password:hover {
  color: #183d92;
}

.login-form label {
  position: relative;
}

.login-form label input[name="password"] {
  padding-right: 40px;
}

.login-form input[name="password"]:focus {
  border-color: #dce2ed;
  box-shadow: none;
}


/* bitron-password-visibility-patch */
.login-form label:has(#passwordInput) { position: relative; display: block; }
#passwordInput { padding-right: 44px; background: #fff; background-image: none; }
#passwordInput:focus { border-color: #dce2ed; box-shadow: none; outline: none; }
#togglePassword, .toggle-password {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  z-index: 3; display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; padding: 0; border: 0; border-radius: 4px;
  background: transparent; color: #6b7280; cursor: pointer; line-height: 0; appearance: none;
}
#togglePassword img, .toggle-password img { display: block; width: 18px; height: 18px; object-fit: contain; }
#togglePassword:hover, .toggle-password:hover { color: #183d92; background: #f3f6fb; }
#togglePassword:focus-visible, .toggle-password:focus-visible { outline: 2px solid #dce2ed; outline-offset: 2px; }

/* Keep the root login eye control scoped to the input, away from the label text and submit button rules. */
.login-form label:has(#passwordInput) .password-field {
  position: relative;
  margin-top: 9px;
}
.login-form label:has(#passwordInput) #passwordInput {
  margin-top: 0;
}
.login-form #togglePassword {
  top: 50%;
  right: 12px;
  width: 28px !important;
  height: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  transform: translateY(-50%);
}
.login-form #togglePassword img {
  display: block;
  width: 18px;
  height: 18px;
}

.user #changePasswordBtn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #dce2ed; border-radius: 7px; background: #fff; color: #31539b; padding: 7px 10px; cursor: pointer; font-size: 12px; }
.user #changePasswordBtn:hover { border-color: #183d92; background: #f3f6fb; }
.user #changePasswordBtn svg { width: 15px; height: 15px; }
.password-dialog { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 24px; background: rgba(23, 32, 53, .42); }
.password-dialog.hidden { display: none; }
.password-dialog-panel { width: min(430px, 100%); background: #fff; border-radius: 12px; padding: 28px; box-shadow: 0 22px 60px rgba(23, 32, 53, .22); }
.password-dialog-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.password-dialog-head small { color: #31539b; letter-spacing: 1.6px; font-size: 10px; font-weight: 700; }
.password-dialog-head h2 { margin: 7px 0 0; font-size: 24px; }
.password-dialog-close { border: 0; background: transparent; color: #737d91; cursor: pointer; font-size: 26px; line-height: 1; padding: 2px 4px; }
.password-form label { display: block; margin: 0 0 16px; font-size: 13px; font-weight: 650; }
.password-field { position: relative; margin-top: 8px; }
.password-field input { margin: 0; padding-right: 44px; }
.password-field .toggle-password { right: 8px; top: 50%; }
.password-field .toggle-password svg { width: 18px; height: 18px; }
.password-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.password-dialog-actions button { width: auto; height: 42px; margin: 0; padding: 0 17px; box-shadow: none; cursor: pointer; }
.password-dialog-actions .secondary-button { border: 1px solid #dce2ed; border-radius: 8px; background: #fff; color: #53617c; }
.password-dialog-actions .primary-button { border-radius: 8px; background: #183d92; color: #fff; }
#passwordMessage { min-height: 20px; margin: 4px 0 0; font-size: 12px; }
#passwordMessage.is-pending { color: #737d91; }
#passwordMessage.is-success { color: #2c7a55; }
#passwordMessage.is-error { color: #c8463d; }
@media (max-width: 800px) { .user #changePasswordBtn span:last-child { display: none; } .password-dialog-panel { padding: 22px; } }

/* Precision Field visual system */
:root{--pf-ink:#172033;--pf-surface:#fff;--pf-canvas:#f4f6fa;--pf-line:#d7deea;--pf-focus:#315dab;--pf-muted:#647088;--pf-shadow:0 14px 34px rgba(32,53,92,.12)}
body{font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:var(--pf-ink);background:var(--pf-canvas);overflow-x:hidden}
.login-page{background:var(--pf-canvas);gap:0}
.login-brand{background:#183d92}
.login-form{background:var(--pf-surface);border:1px solid var(--pf-line);border-radius:6px;box-shadow:var(--pf-shadow);padding:36px}
.login-form input,.login-form select,.login-form textarea{border:1px solid var(--pf-line);border-radius:6px;min-height:52px;background:var(--pf-surface);color:var(--pf-ink)}
.login-form input:focus-visible,.login-form #togglePassword:focus-visible,.module:focus-visible,button:focus-visible{outline:3px solid var(--pf-focus);outline-offset:3px}
.login-form button[type=submit]{min-height:52px;border-radius:6px;background:#183d92}
.password-field{position:relative;min-height:52px;margin-top:9px}
.password-field input{width:100%;height:52px;margin:0}
.login-form #togglePassword{right:10px;top:50%;width:28px!important;height:28px!important;background:transparent!important;box-shadow:none!important;border:0!important}
.login-form #togglePassword:hover{background:rgba(49,93,171,.08)!important}
.module{--module-accent:#315dab;border:1px solid var(--pf-line);border-radius:6px;box-shadow:0 8px 22px rgba(32,53,92,.08);transition:border-color .18s,transform .18s}
.module.fast{--module-accent:#2f735f}
.module.quality{--module-accent:#315dab}
.module:hover{border-color:var(--module-accent);transform:translateY(-2px)}
.module .module-icon{color:var(--module-accent)}
@media(max-width:760px){body{overflow-x:hidden}.login-form{width:min(430px,calc(100% - 32px));padding:28px 22px}.login-brand{padding:36px 28px}.system-name h1{font-size:30px}.slogan{margin-top:48px}}
@media(prefers-reduced-motion: reduce){*,*::before,*::after{scroll-behavior:auto!important;transition-duration:0s!important;animation-duration:0s!important;animation-iteration-count:1!important}}
