:root { font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; color: #111827; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input { font: inherit; }
.login-layout { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: #fff; }
.scene { display: grid; place-items: center; min-width: 0; overflow: hidden; background: #fff; }
.scene img { display: block; width: 100%; max-height: 100vh; object-fit: contain; }
.form-panel { display: grid; place-items: center; padding: 40px 32px; }
.login-card { width: 100%; max-width: 420px; }
.identity { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.logo { width: 80px; height: 80px; border: 1px solid #f1f5f9; border-radius: 16px; overflow: hidden; }
.logo img { width: 100%; height: 100%; object-fit: contain; }
h1 { margin: 0; font-size: 30px; font-weight: 700; line-height: 1.3; letter-spacing: -.025em; }
.intro { margin: 24px 0 38px; color: #6b7280; text-align: center; font-size: 16px; }
form { display: grid; gap: 9px; }
label { color: #374151; font-size: 14px; font-weight: 500; }
input { width: 100%; height: 48px; padding: 0 16px; border: 1px solid #d1d5db; border-radius: 12px; outline: 0; color: #1f2937; background: #fff; }
input::placeholder { color: #9ca3af; }
input:focus { border-color: #1e40af; box-shadow: 0 0 0 3px rgba(30,64,175,.16); }
.password-wrap { position: relative; margin-bottom: 13px; }
.password-wrap input { padding-right: 62px; }
.password-wrap button { position: absolute; right: 9px; top: 7px; height: 34px; border: 0; color: #6b7280; background: transparent; cursor: pointer; }
.password-wrap button:hover { color: #1e3a8a; }
.submit { height: 48px; border: 0; border-radius: 12px; color: #fff; background: #1e3a8a; font-weight: 600; cursor: pointer; box-shadow: 0 8px 18px rgba(30,58,138,.18); }
.submit:hover { background: #172e6e; }
.submit:disabled { opacity: .65; cursor: wait; }
.hint { margin: 26px 0 0; text-align: center; color: #9ca3af; font-size: 13px; }
.error { padding: 11px 13px; border: 1px solid #fecaca; border-radius: 9px; color: #b91c1c; background: #fef2f2; font-size: 14px; }
.error[hidden] { display: none; }
@media (max-width: 900px) {
  .login-layout { grid-template-columns: 1fr; min-height: 100dvh; background: #f5f8fc; }
  .scene { display: none; }
  .form-panel { padding: 30px 20px; }
  .login-card { padding: 28px 24px; border-radius: 24px; background: #fff; box-shadow: 0 18px 45px rgba(15,39,75,.12); }
  h1 { font-size: 25px; }
  .intro { margin-bottom: 30px; }
}
