/* ==========================================================
   登录页样式
   ========================================================== */
body.login-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 32px 20px;
  background: linear-gradient(160deg, #CFE4FA 0%, #E4F0FD 35%, #F5FAFF 65%, #FFFFFF 100%);
  background-attachment: fixed;
}
.login-wrapper {
  width: 1080px; max-width: 100%; min-height: 600px;
  display: grid; grid-template-columns: 1.05fr 1fr;
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(16, 62, 130, .18);
  border: 1px solid rgba(255,255,255,.8);
}

/* 左侧品牌区 */
.login-left {
  position: relative; padding: 52px 48px;
  background: linear-gradient(150deg, #0E4FC4 0%, #1A6FE8 55%, #2E90F2 100%);
  color: #fff; display: flex; flex-direction: column;
  overflow: hidden;
}
.login-left::before, .login-left::after {
  content: ''; position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.09);
}
.login-left::before { width: 340px; height: 340px; right: -120px; top: -110px; }
.login-left::after  { width: 240px; height: 240px; left: -90px; bottom: -80px; }
.login-left > * { position: relative; z-index: 1; }
.brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; }
.brand-logo {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.32);
  display: flex; align-items: center; justify-content: center;
}
.brand-logo svg { width: 28px; height: 28px; stroke: #fff; }
.brand-row .name { font-size: 20px; font-weight: 700; letter-spacing: 1px; }
.brand-row .sub { font-size: var(--fs-sm); color: rgba(255,255,255,.75); letter-spacing: 2px; }
.brand-title { font-size: 34px; font-weight: 700; line-height: 1.4; margin-bottom: 14px; }
.brand-desc { font-size: var(--fs-md); line-height: 1.9; color: rgba(255,255,255,.86); max-width: 400px; }
.login-features { margin-top: auto; display: flex; flex-direction: column; gap: 20px; padding-top: 40px; }
.feature-item { display: flex; align-items: flex-start; gap: 14px; }
.feature-item .icon {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.24);
  display: flex; align-items: center; justify-content: center;
}
.feature-item .icon svg { width: 19px; height: 19px; stroke: #fff; }
.feature-item h4 { font-size: var(--fs-md); font-weight: 600; margin-bottom: 2px; }
.feature-item p { font-size: var(--fs-sm); color: rgba(255,255,255,.78); }

/* 右侧表单区 */
.login-right { padding: 52px 56px; display: flex; flex-direction: column; justify-content: center; }
.form-header { margin-bottom: 26px; }
.form-header h2 { font-size: 22px; font-weight: 600; color: var(--text-main); margin-bottom: 6px; }
.form-header p { font-size: var(--fs-base); color: var(--text-secondary); }
.login-tabs { display: flex; gap: 6px; margin-bottom: 24px; background: var(--surface-soft); padding: 4px; border-radius: 10px; }
.login-tabs button {
  flex: 1; height: 38px; border: none; background: transparent; border-radius: 8px;
  font-size: var(--fs-base); color: var(--text-regular); cursor: pointer; transition: all .18s;
}
.login-tabs button.active { background: #fff; color: var(--primary); font-weight: 600; box-shadow: var(--shadow-sm); }
.login-form .form-row { margin-bottom: 18px; }
.login-form label { display: block; font-size: var(--fs-base); color: var(--text-regular); margin-bottom: 8px; }
.input-wrapper { position: relative; display: flex; align-items: center; }
.input-wrapper > svg:first-child { position: absolute; left: 13px; width: 17px; height: 17px; stroke: var(--text-placeholder); }
.input-wrapper input {
  width: 100%; height: 44px; padding: 0 14px 0 40px;
  border: 1px solid var(--border-strong); border-radius: 9px; outline: none;
  transition: all .16s; background: #fff;
}
.input-wrapper input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,111,232,.12); }
.input-wrapper .toggle-password {
  position: absolute; right: 13px; width: 17px; height: 17px;
  stroke: var(--text-placeholder); cursor: pointer;
}
.input-wrapper .toggle-password:hover { stroke: var(--primary); }
.captcha-row { display: flex; gap: 12px; }
.captcha-row .input-wrapper { flex: 1; }
.captcha-img {
  width: 118px; height: 44px; border-radius: 9px; overflow: hidden;
  border: 1px solid var(--border-strong); cursor: pointer; flex-shrink: 0; background: #F4F8FE;
}
.send-code-btn {
  height: 44px; padding: 0 16px; border-radius: 9px; flex-shrink: 0;
  border: 1px solid var(--primary); background: var(--primary-light);
  color: var(--primary); cursor: pointer; white-space: nowrap;
}
.send-code-btn:disabled { opacity: .6; cursor: not-allowed; }
.form-options { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 22px; }
.form-options label { display: flex; align-items: center; gap: 6px; font-size: var(--fs-base); color: var(--text-regular); cursor: pointer; }
.form-options input { width: 15px; height: 15px; accent-color: var(--primary); }
.form-options a { font-size: var(--fs-base); }
.login-submit {
  width: 100%; height: 46px; border: none; border-radius: 9px; cursor: pointer;
  background: linear-gradient(135deg, var(--primary), #3B8AF0); color: #fff;
  font-size: var(--fs-md); font-weight: 600; letter-spacing: 2px;
  box-shadow: 0 6px 18px rgba(26,111,232,.3); transition: all .18s;
}
.login-submit:hover { background: linear-gradient(135deg, var(--primary-dark), #2A7DE8); transform: translateY(-1px); }
.register-link { text-align: center; margin-top: 20px; font-size: var(--fs-base); color: var(--text-secondary); }
.login-footer { text-align: center; margin-top: 26px; font-size: var(--fs-sm); color: var(--text-placeholder); }
.password-hint { font-size: var(--fs-sm); color: var(--text-placeholder); margin-top: 6px; }
.hidden { display: none !important; }

@media (max-width: 900px) {
  .login-wrapper { grid-template-columns: 1fr; }
  .login-left { display: none; }
  .login-right { padding: 36px 24px; }
}
