/* ============================================================
 * 优选商城管理后台 · 登录页(珊瑚红夜幕调,主色 #FD4A46 呼应 H5)
 * 结构钩子(login.js 依赖,勿改):.container .login-btn .icon-nocheck
 * .login-tip .bind-password #gaCode #validatePanel #refreshCaptcha
 * ============================================================ */
html, body { height: 100%; margin: 0; }
/* 运营配置登录背景图时由 login.js 内联覆盖,此处保留排版 */
.container {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(85% 50% at 78% -6%, rgba(253, 74, 70, 0.20), transparent 62%),
    radial-gradient(55% 40% at 92% 100%, rgba(180, 40, 46, 0.28), transparent 70%),
    radial-gradient(45% 35% at 6% 88%, rgba(253, 74, 70, 0.07), transparent 70%),
    linear-gradient(168deg, #241a1c 0%, #201517 58%, #180f11 100%);
  background-attachment: fixed;
  font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  box-sizing: border-box;
  min-height: 100vh;
}

/* —— 品牌区 —— */
.login-brand { text-align: center; margin-bottom: 34px; }
.login-seal {
  width: 64px; height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 2px solid rgba(253, 74, 70, 0.65);
  background: rgba(253, 74, 70, 0.10);
  color: #FD4A46;
  font-family: 'Songti SC', 'SimSun', serif;
  font-size: 30px;
  display: flex; align-items: center; justify-content: center;
  animation: sealGlow 2.4s ease-out infinite;
}
@keyframes sealGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(253, 74, 70, 0.35); }
  50% { box-shadow: 0 0 0 12px rgba(253, 74, 70, 0); }
}
.login-site-name {
  color: #f5ecec;
  font-family: 'Songti SC', 'Noto Serif SC', 'SimSun', serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 8px;
  text-indent: 8px; /* 平衡字距 */
}
.login-site-sub {
  margin-top: 8px;
  color: rgba(253, 74, 70, 0.6);
  font-size: 11px;
  letter-spacing: 5px;
  text-indent: 5px;
}

/* —— 玻璃卡 —— */
.login-main {
  width: 380px;
  max-width: 100%;
  padding: 40px 38px 34px;
  background: rgba(255, 250, 250, 0.045);
  border: 1px solid rgba(253, 74, 70, 0.26);
  border-radius: 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(253, 74, 70, 0.09), 0 24px 60px rgba(0, 0, 0, 0.38);
  animation: cardIn 0.6s cubic-bezier(0.22, 0.8, 0.32, 1) both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.demo {
  text-align: center;
  color: rgba(253, 74, 70, 0.7);
  font-size: 12px;
  margin-bottom: 10px;
}

/* —— 字段 —— */
.login-main .center .item {
  position: relative;
  margin-bottom: 24px;
}
.login-main .center .item .f-label {
  display: block;
  color: rgba(253, 120, 116, 0.85);
  font-size: 12px;
  letter-spacing: 3px;
  margin-bottom: 2px;
}
.login-main .center .item input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 34px 10px 2px;
  border: 0;
  outline: 0;
  border-bottom: 1px solid rgba(253, 74, 70, 0.22);
  border-radius: 0;
  background: transparent;
  color: #f3eaea;
  font-size: 15px;
  letter-spacing: 1px;
  transition: border-color 0.25s ease;
}
.login-main .center .item input::placeholder { color: rgba(243, 234, 234, 0.32); }
.login-main .center .item input:focus { border-bottom-color: #FD4A46; }
.login-main .center .item .icon {
  position: absolute;
  right: 2px;
  top: 34px;
  width: 20px; height: 20px;
  background: none !important;
  color: rgba(253, 120, 116, 0.55);
  cursor: default;
  font-style: normal;
  display: flex; align-items: center; justify-content: center;
}
.login-main .center .item .icon::before { font-size: 14px; }
.login-main .center .item .bind-password { cursor: pointer; }
.login-main .center .item .bind-password::after { content: '显'; font-size: 12px; }

/* 验证码行 */
#validatePanel {
  width: 100% !important;
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
#validatePanel input { flex: 1; }
#validatePanel .validateImg {
  height: 36px;
  border-radius: 6px;
  border: 1px solid rgba(253, 74, 70, 0.3);
  cursor: pointer;
}

/* —— 保持登录 / 忘记密码 —— */
.login-main .tip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0 22px;
  color: rgba(243, 234, 234, 0.55);
  font-size: 12px;
  user-select: none;
}
.login-main .tip .keep {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}
.login-main .tip .icon-nocheck {
  width: 15px; height: 15px;
  border: 1px solid rgba(253, 74, 70, 0.5);
  border-radius: 4px;
  display: inline-block;
  position: relative;
  transition: all 0.2s ease;
}
.login-main .tip .icon-nocheck.icon-check {
  background: linear-gradient(150deg, #FD5A50, #E4383E);
  border-color: transparent;
}
.login-main .tip .icon-nocheck.icon-check::after {
  content: '';
  position: absolute;
  left: 4px; top: 1px;
  width: 4px; height: 8px;
  border: solid #26181a;
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}
.login-main .tip .forget-password { color: rgba(253, 120, 116, 0.6); }
.login-main .tip .forget-password:hover { color: #FD6E6A; }

/* —— 登录按钮(珊瑚红主行动)—— */
.login-btn {
  display: block;
  width: 100%;
  padding: 13px 0;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(155deg, #FD5A50, #E4383E);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 10px;
  text-indent: 10px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(253, 74, 70, 0.30);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.login-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(253, 74, 70, 0.40); }
.login-btn:active { transform: scale(0.97); }

/* —— 页脚 —— */
.login-footer {
  margin-top: 28px;
  color: rgba(243, 234, 234, 0.32);
  font-size: 12px;
  letter-spacing: 1px;
  text-align: center;
}
.login-footer a { color: rgba(253, 120, 116, 0.45); text-decoration: none; }
.login-footer .padding-5 { padding: 0 6px; opacity: 0.5; }

/* —— 移动端 —— */
@media (max-width: 480px) {
  .login-main { padding: 32px 26px 28px; }
  .login-site-name { font-size: 22px; }
}
