/* Follows the centered login panel in 04_测算工具原型设计.html. */
.login-screen {
  min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 40px 20px;
  background: radial-gradient(circle at 18% 15%, rgba(22,119,255,.13), transparent 30%),
    radial-gradient(circle at 84% 88%, rgba(22,119,255,.09), transparent 34%),
    linear-gradient(135deg, #f7fbff 0%, #eef4ff 45%, #f8fafc 100%);
}
.login-box { width: 100%; max-width: 420px; display: grid; gap: 24px; justify-items: center; }
.login-brand { display: flex; align-items: center; gap: 12px; color: var(--ink-heading); font-size: 20px; font-weight: 700; }
.login-logo { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: var(--blue-press); color: #fff; font-size: 14px; font-weight: 800; letter-spacing: -.02em; }
.login-panel { width: 100%; padding: 32px 30px 26px; border-radius: 14px; background: var(--paper); box-shadow: 0 12px 32px rgba(16,24,40,.09); }
.login-panel h1 { margin: 0; text-align: center; font-size: 24px; font-weight: 700; line-height: 1.35; letter-spacing: -.02em; }
.login-desc { color: #586579; text-align: center; margin: 10px 0 26px; font-size: 14px; line-height: 1.7; }
.login-status { color: var(--muted); text-align: center; margin: 14px 0; line-height: 1.7; }
.login-form { display: grid; gap: 18px; }
.login-field { display: grid; gap: 7px; }
.login-field label { color: #344054; font-size: 13px; font-weight: 600; }
.login-field input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid #b8c2d0; border-radius: 6px; color: var(--ink); background: #fff; font-size: 14px; transition: border-color 160ms ease; }
.login-field input::placeholder { color: #667085; }
.login-field input:hover { border-color: #8b9db3; }
.login-field input:focus { border-color: var(--blue-press); }
.password-control { position: relative; }
.password-control input { padding-right: 46px; }
.password-control button { position: absolute; top: 1px; right: 1px; height: 42px; width: 42px; border: 0; border-radius: 5px; background: transparent; color: #586579; display: grid; place-items: center; }
.password-control button:hover { color: var(--blue-press); background: var(--blue-soft); }
.password-control .icon { width: 19px; height: 19px; }
.remember-account { display: flex; align-items: center; gap: 7px; font-size: 13px; color: #475467; cursor: pointer; }
.remember-account input { width: 15px; height: 15px; margin: 0; accent-color: var(--blue-press); }
.remember-account span { margin-left: auto; font-size: 11px; color: #667085; }
.login-button { width: 100%; min-height: 44px; justify-content: center; gap: 8px; font-size: 14px; }
.login-page .primary { background: var(--blue-press); border-color: var(--blue-press); color: #fff; }
.login-page .primary:hover { background: #064cbf; border-color: #064cbf; }
.login-page button:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.login-alert { margin: 0 0 20px; padding: 11px 12px; color: #9c251a; background: var(--red-soft); border: 1px solid var(--red-border); border-radius: 6px; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.login-divider { display: flex; align-items: center; gap: 12px; color: #667085; font-size: 12px; margin: 20px 0; }
.login-divider::before, .login-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.login-help { color: #586579; font-size: 12px; line-height: 1.7; margin: 10px 0 0; text-align: center; }
.account-help { color: #667085; font-size: 12px; line-height: 1.7; margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; }
.login-footer { margin: 0; color: #586579; font-size: 12px; text-align: center; }
.login-complete { text-align: center; }
.login-complete > .icon { width: 36px; height: 36px; color: var(--green-press); display: block; margin: 0 auto 12px; }
.login-complete strong { font-size: 18px; }
.login-complete p { color: #586579; line-height: 1.8; margin: 10px 0 20px; }
@media (prefers-reduced-motion: no-preference) {
  .login-panel { animation: login-enter 460ms var(--ease-out-expo) both; }
  @keyframes login-enter { from { transform: translateY(10px); box-shadow: 0 3px 12px rgba(16,24,40,.04); } to { transform: translateY(0); box-shadow: 0 12px 32px rgba(16,24,40,.09); } }
}
@media (max-width: 480px) {
  .login-screen { padding: 28px 16px; }
  .login-box { gap: 22px; }
  .login-panel { padding: 28px 22px 22px; }
  .login-brand { font-size: 18px; }
  .remember-account { flex-wrap: wrap; }
  .remember-account span { font-size: 10px; }
}
