/* ===== 基础 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --pink: #ff7eb3;
  --pink-soft: #ffd6e8;
  --pink-deep: #ff4f92;
  --pink-pale: #fff0f7;
  --purple: #b388ff;
  --purple-soft: #e8d7ff;
  --purple-pale: #f7f1ff;
  --text: #5a3d52;
  --text-light: #7a5a6b;
  --white: rgba(255, 255, 255, 0.88);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: "Quicksand", "ZCOOL KuaiLe", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(160deg, #fff0f7 0%, #ffe9f3 40%, #f3e8ff 100%);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* 背景光晕 */
body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.42;
  z-index: 0;
  pointer-events: none;
}
body::before {
  top: -12%;
  right: -12%;
  width: 58vw;
  height: 58vw;
  background: radial-gradient(circle, #ff9ec4 0%, transparent 70%);
}
body::after {
  bottom: -14%;
  left: -10%;
  width: 52vw;
  height: 52vw;
  background: radial-gradient(circle, #c9a8ff 0%, transparent 70%);
}

.login-page {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0 auto;
  padding: 28px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

/* ===== Logo ===== */
.login-logo {
  text-align: center;
  margin-bottom: 24px;
  animation: fadeInDown 0.8s ease both;
}
.logo-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 8px 22px rgba(255, 79, 146, 0.28);
}
.logo-text {
  font-family: "Quicksand", "ZCOOL KuaiLe", sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  background: linear-gradient(90deg, var(--pink-deep), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo-tagline {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-top: 4px;
}

/* 署名角标（与全站一致：风过境 制作 · 仅供参考），样式融入粉色主题 */
.fg-sign {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(255, 126, 179, 0.14);
  border: 1px solid var(--pink-soft);
  color: #b07d96;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

/* ===== 轮播图 ===== */
.carousel {
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 12px 34px rgba(255, 79, 146, 0.22);
  background: var(--white);
  animation: fadeInUp 0.8s ease 0.15s both;
}
.carousel-track {
  display: flex;
  transition: transform 0.45s ease-in-out;
  height: 45vh;
  min-height: 280px;
  max-height: 420px;
}
.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.carousel-dot.active {
  background: #fff;
  transform: scale(1.25);
}

/* ===== 登录表单 ===== */
.login-form-section {
  width: 100%;
  margin-top: 28px;
  animation: fadeInUp 0.8s ease 0.3s both;
}
.login-form {
  width: 100%;
  background: var(--white);
  border: 2px solid var(--pink-soft);
  border-radius: 22px;
  padding: 26px 24px;
  box-shadow: 0 10px 30px rgba(255, 126, 179, 0.18);
}
/* 欢迎页口令提示：告诉访客账号随便填、密码是允儿生日 */
.form-hint {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--pink-pale);
  border: 1px dashed var(--pink-soft);
  color: var(--text-light);
  font-size: 0.88rem;
  line-height: 1.75;
  text-align: center;
}
.form-hint b {
  color: var(--pink-deep);
  font-weight: 700;
  white-space: nowrap;
}

.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--pink-deep);
  font-size: 0.95rem;
}
.form-group input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  font-size: 1rem;
  border: 2px solid var(--pink-soft);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}
.form-group input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 126, 179, 0.15);
}
.login-error {
  color: #ff4f4f;
  font-size: 0.9rem;
  margin-bottom: 14px;
  min-height: 1.3em;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.login-error.show { opacity: 1; }
.login-btn {
  width: 100%;
  min-height: 50px;
  padding: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: "ZCOOL KuaiLe", sans-serif;
  color: #fff;
  border: none;
  border-radius: 14px;
  background: linear-gradient(90deg, var(--pink), var(--pink-deep));
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(255, 79, 146, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(255, 79, 146, 0.4);
}
.login-btn:active { transform: translateY(0); }

/* ===== 微信二维码 ===== */
.wechat-section {
  width: 100%;
  margin-top: 28px;
  animation: fadeInUp 0.8s ease 0.45s both;
}
.wechat-card {
  background: var(--white);
  border: 2px solid var(--purple-soft);
  border-radius: 22px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: 0 10px 30px rgba(179, 136, 255, 0.18);
  text-align: center;
}
.wechat-qr {
  width: 130px;
  height: 130px;
  border-radius: 14px;
  object-fit: cover;
  display: block;
}
.wechat-text {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== 页脚 ===== */
.login-footer {
  margin-top: auto;
  padding-top: 24px;
  text-align: center;
  color: #b07d96;
  font-size: 0.85rem;
}

/* ===== 动画 ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== 移动端适配 ===== */
@media (max-width: 680px) {
  html { font-size: 15px; }
  .login-page { padding: 22px 16px 32px; }

  .logo-mark { width: 56px; height: 56px; font-size: 1.7rem; }
  .logo-text { font-size: 2.2rem; }
  .logo-tagline { font-size: 0.88rem; }

  .carousel { border-radius: 18px; }
  .carousel-track { height: 42vh; min-height: 240px; max-height: 360px; }

  .login-form-section { width: 92%; }
  .login-form { padding: 22px 18px; border-radius: 18px; }
  .form-group input { min-height: 46px; padding: 10px 14px; }
  .login-btn { min-height: 48px; font-size: 1.05rem; }

  .wechat-qr { width: 120px; height: 120px; }
  .wechat-text { font-size: 0.88rem; }
}
