/* 宠记录 · 后台登录页样式（依据「登录页-变量.md」晴空蓝 v2） */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  height: 100%;
  font-family: "Noto Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.login-shell { display: flex; min-height: 100vh; }

/* ---------- 左栏 · 品牌区 ---------- */
.brand-panel {
  position: relative;
  flex: 0 0 1080px;
  min-width: 520px;
  background: #142840 center / cover no-repeat;
  background-image: url('/assets/login-bg.jpg');
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.brand-mask {
  position: absolute;
  inset: 0;
  /* 三段深蓝蒙层（规格要求，不可简化成两段） */
  background: linear-gradient(
    180deg,
    rgba(20, 40, 64, 0.30) 0%,
    rgba(13, 26, 42, 0.62) 45%,
    rgba(9, 18, 29, 0.94) 100%
  );
}
.brand-content {
  position: relative;
  z-index: 1;
  padding: 0 80px 267px 80px;
  max-width: 860px;
}
.brand-row { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.brand-badge {
  width: 56px; height: 56px; border-radius: 16px; flex: 0 0 56px;
  background: linear-gradient(135deg, #E8C684 0%, #D3A55B 50%, #AF8738 100%);
  display: flex; align-items: center; justify-content: center;
}
.brand-badge.small { width: 32px; height: 32px; border-radius: 10px; flex: 0 0 32px; }
.brand-paw { width: 30px; height: 30px; filter: brightness(0) invert(1); }
.brand-badge.small .brand-paw { width: 18px; height: 18px; }
.brand-titles { display: flex; flex-direction: column; gap: 2px; }
.brand-name { font-size: 26px; font-weight: 700; color: #FFFFFF; line-height: 1.2; }
.brand-subname { font-size: 11px; font-weight: 500; color: #93B8EE; letter-spacing: 1px; }
.brand-slogan { font-size: 40px; font-weight: 700; color: #FFFFFF; line-height: 1.25; margin-bottom: 16px; }
.brand-desc { font-size: 16px; font-weight: 400; color: #EAF1FB; line-height: 1.6; max-width: 860px; }

/* ---------- 右栏 · 表单区 ---------- */
.form-panel {
  flex: 1;
  background: #FBF7EE;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.top-brand { display: none; align-items: center; gap: 10px; padding: 16px 24px; }
.top-brand-name { font-size: 18px; font-weight: 700; color: #252525; }

.form-column {
  width: 400px;
  max-width: calc(100% - 48px);
  margin: auto;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
  justify-content: center;
}
.form-title { font-size: 28px; font-weight: 700; color: #252525; }
.form-subtitle { font-size: 14px; font-weight: 400; color: #5A6675; margin-top: -16px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 12px; font-weight: 500; color: #5A6675; }
.field-input-wrap { position: relative; }
.field-input {
  width: 100%; height: 48px; border-radius: 8px; background: #FFFFFF;
  border: 1px solid #E0DACE; padding: 0 14px; font-size: 15px; color: #252525;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.field-input::placeholder { color: #9A948A; }
.field-input:hover { border-color: #C9C2B6; }
.field-input:focus {
  border: 2px solid #4E8BE5;
  box-shadow: 0 0 0 3px rgba(78, 139, 229, .22);
  padding: 0 13px;
}
.field-input-wrap .field-input { padding-right: 44px; }
.eye-btn {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; padding: 0; display: flex;
}
.eye-btn img { width: 20px; height: 20px; }
.field-error { font-size: 12px; color: #C0392B; min-height: 14px; }
.field.has-error .field-input { border: 2px solid #D64541; padding: 0 13px; }

.remember-row { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.checkbox {
  width: 18px; height: 18px; border-radius: 4px; background: #FFFFFF;
  border: 1px solid #C9C2B6; display: flex; align-items: center; justify-content: center;
  flex: 0 0 18px;
}
.checkbox.checked { background: #4E8BE5; border-color: #4E8BE5; }
.check-icon { width: 12px; height: 12px; filter: brightness(0) invert(1); display: none; }
.checkbox.checked .check-icon { display: block; }
.remember-text { font-size: 13px; color: #5A6675; }

.primary-btn {
  width: 100%; height: 48px; border-radius: 8px; background: #3A6FC8;
  color: #FFFFFF; font-size: 16px; font-weight: 600; border: none; cursor: pointer;
  transition: background .15s;
}
.primary-btn:hover { background: #3464B4; }
.primary-btn:active { background: #305BA4; }
.primary-btn:disabled { background: #DDD6CA; color: #9A948A; cursor: not-allowed; }

.safe-tip { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: #5A6675; }
.shield-icon { width: 14px; height: 14px; }

.login-footer {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px 24px; flex-wrap: wrap; font-size: 12px; color: #5A6675;
  margin-top: auto;
}
.login-footer .sep { width: 1px; height: 12px; background: #E0DACE; }
.login-footer a { color: #3A6FC8; text-decoration: none; }
.login-footer a:hover { text-decoration: underline; }

/* ---------- 响应式 ---------- */
@media (max-width: 1023px) {
  .brand-panel { display: none; }
  .top-brand { display: flex; }
  .form-column { justify-content: flex-start; margin-top: 8px; }
}
@media (max-width: 479px) {
  .form-column { max-width: 100%; padding-left: 24px; padding-right: 24px; }
}
