:root { color-scheme: light; font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif; color: #25272b; background: #f2f3f5; }
* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
.login-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, .9fr) minmax(520px, 1.1fr); }
.brand-panel { position: relative; min-height: 100%; padding: clamp(36px, 6vw, 80px); display: flex; flex-direction: column; justify-content: space-between; color: #fff; background: #202124; overflow: hidden; }
.brand-panel::after { content: ""; position: absolute; inset: auto -18% -20% 15%; height: 46%; border-top: 1px solid rgba(255,255,255,.12); transform: rotate(-8deg); }
.brand-content { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 18px; }
.brand-content img { flex: 0 0 auto; border-radius: 8px; }
.brand-content p { margin: 2px 0 10px; color: #d5d7da; font-size: 13px; }
.brand-content h1 { max-width: 460px; margin: 0; font-size: clamp(26px, 3vw, 40px); line-height: 1.25; letter-spacing: 0; }
.brand-content span { display: block; margin-top: 18px; color: #aeb2b8; font-size: 14px; }
.brand-status { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; color: #c7cacf; font-size: 12px; }
.brand-status svg { width: 17px; color: #55b990; }
.form-panel { min-height: 100%; padding: 40px 24px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #f7f8fa; }
.login-form { width: min(400px, 100%); padding: 30px; border: 1px solid #dddfe3; border-radius: 8px; background: #fff; box-shadow: 0 12px 34px rgba(25,27,31,.07); }
.login-form header { margin-bottom: 25px; }
.login-form h2 { margin: 0; font-size: 22px; letter-spacing: 0; }
.login-form header p { margin: 8px 0 0; color: #777b82; font-size: 12px; }
.field { display: grid; gap: 7px; margin-top: 16px; }
.field label { color: #45484e; font-size: 12px; font-weight: 650; }
.input-wrap { position: relative; min-width: 0; }
.input-wrap > svg { position: absolute; left: 12px; top: 50%; width: 16px; color: #8e9299; transform: translateY(-50%); pointer-events: none; }
.input-wrap input { width: 100%; height: 44px; padding: 0 42px 0 39px; border: 1px solid #d6d9de; border-radius: 6px; color: #25272b; background: #fff; outline: none; }
.input-wrap input:focus { border-color: #df5149; box-shadow: 0 0 0 3px rgba(224,46,36,.09); }
.input-action { position: absolute; right: 3px; top: 3px; width: 38px; height: 38px; padding: 0; border: 0; display: grid; place-items: center; color: #737780; background: transparent; }
.input-action:hover { color: #25272b; background: #f2f3f5; }
.input-action svg { width: 17px; }
.captcha-row { display: grid; grid-template-columns: minmax(0, 1fr) 138px; gap: 9px; }
.captcha-image { width: 138px; height: 44px; padding: 0; border: 1px solid #d6d9de; border-radius: 6px; background: #f7f8fa; overflow: hidden; }
.captcha-image img { display: block; width: 136px; height: 42px; object-fit: cover; }
.form-error { min-height: 18px; margin-top: 12px; color: #c72f28; font-size: 11px; line-height: 1.5; }
.submit-button { width: 100%; min-height: 44px; margin-top: 4px; border: 0; border-radius: 6px; display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff; background: #d9342c; font-size: 13px; font-weight: 700; }
.submit-button:hover { background: #c92d26; }
.submit-button:disabled { cursor: wait; opacity: .65; }
.submit-button svg { width: 17px; }
.form-panel footer { margin-top: 24px; display: grid; gap: 6px; justify-items: center; color: #9a9da3; font-size: 10px; }
.form-panel footer a { color: inherit; text-decoration: none; }
.form-panel footer a:hover { color: #d9342c; text-decoration: underline; }
@media (max-width: 820px) {
  .login-layout { grid-template-columns: 1fr; }
  .brand-panel { min-height: 180px; padding: 26px 24px; }
  .brand-content img { width: 44px; height: 44px; }
  .brand-content h1 { font-size: 23px; }
  .brand-content span { margin-top: 10px; }
  .brand-status { display: none; }
  .form-panel { min-height: calc(100vh - 180px); padding: 28px 16px 20px; justify-content: flex-start; }
}
@media (max-width: 420px) {
  .brand-panel { min-height: 160px; }
  .brand-content p { margin-bottom: 6px; }
  .brand-content h1 { font-size: 20px; }
  .brand-content span { font-size: 12px; }
  .form-panel { min-height: calc(100vh - 160px); }
  .login-form { padding: 23px 18px; }
  .captcha-row { grid-template-columns: minmax(0, 1fr) 124px; }
  .captcha-image { width: 124px; }
  .captcha-image img { width: 122px; }
}
