/* 亲民暖色登录验证门户页 */
.login-gate {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 18% 18%, rgba(235, 130, 74, 0.2), transparent 46%),
    radial-gradient(circle at 86% 84%, rgba(217, 93, 57, 0.16), transparent 48%),
    linear-gradient(145deg, #fdf6ec 0%, #f7ebdb 55%, #f3e2ce 100%);
}

.login-gate.open {
  display: flex;
}

.login-shell {
  width: min(920px, 100%);
  min-height: 520px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #ecd7c3;
  box-shadow: 0 24px 64px rgba(124, 52, 24, 0.16);
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  overflow: hidden;
}

/* 左侧品牌视觉区 */
.login-brand-side {
  position: relative;
  padding: 40px 36px;
  background: linear-gradient(155deg, #8b2b1a 0%, #b83d23 48%, #d96236 100%);
  color: #fffaf4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.login-brand-side::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 224, 178, 0.26), transparent 70%);
  pointer-events: none;
}

.login-badge-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 236, 208, 0.34);
  font-size: 12px;
  font-weight: 600;
  color: #fff6e5;
}

.login-brand-main h1 {
  margin-top: 20px;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.6px;
}

.login-brand-main p {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(255, 240, 224, 0.9);
}

.login-highlights {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.login-hl-card {
  padding: 11px 12px;
  border-radius: 10px;
  background: rgba(84, 22, 12, 0.22);
  border: 1px solid rgba(255, 232, 204, 0.22);
}

.login-hl-card strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: #fff4d6;
}

.login-hl-card span {
  display: block;
  font-size: 11.5px;
  color: rgba(255, 238, 220, 0.84);
  margin-top: 2px;
}

.login-brand-foot {
  font-size: 11.5px;
  color: rgba(255, 236, 214, 0.8);
  line-height: 1.6;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 236, 214, 0.2);
}

/* 右侧表单区 */
.login-form-side {
  padding: 40px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffffff;
}

.login-form-head h2 {
  font-size: 22px;
  font-weight: 800;
  color: #2d1e17;
}

.login-form-head p {
  margin-top: 6px;
  font-size: 13px;
  color: #8c7364;
}

.login-form {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #5c4335;
  margin-bottom: 6px;
}

.form-field input {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid #e6d3c1;
  background: #fffcf8;
  font-size: 14px;
  color: #2d1e17;
  transition: all 0.16s ease;
}

.form-field input:focus {
  border-color: #cf4e2e;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(207, 78, 46, 0.14);
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: #685245;
}

.login-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.login-check input {
  width: 15px;
  height: 15px;
  accent-color: #cf4e2e;
}

.login-error {
  min-height: 18px;
  font-size: 12.5px;
  color: #c8332b;
  font-weight: 600;
}

.login-submit {
  height: 44px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #c84b31, #ea7d43);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(200, 75, 49, 0.28);
  transition: filter 0.15s ease;
}

.login-submit:hover {
  filter: brightness(1.06);
}

.login-security-note {
  margin-top: 20px;
  padding: 10px 12px;
  border-radius: 9px;
  background: #fff8f0;
  border: 1px solid #f2dfd0;
  font-size: 11.5px;
  color: #8c6b58;
  line-height: 1.55;
}

/* 退出登录小按钮 */
.btn-logout {
  height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid #ecdccf;
  background: #fff8f2;
  color: #b23a22;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.btn-logout:hover {
  background: #fdebe2;
}

@media (max-width: 780px) {
  .login-shell {
    grid-template-columns: 1fr;
  }
  .login-brand-side {
    display: none;
  }
}
