/* ===== 全局重置 & 背景 ===== */
body {
  min-height: 100vh;
  background: linear-gradient(145deg, #f8f4ff 0%, #e8dff5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    sans-serif;
  padding: 1.5rem;
}

/* ===== 登录卡片 ===== */
.login-card {
  max-width: 440px;
  width: 100%;
  background: #ffffff;
  border-radius: 32px;
  padding: 2.5rem 2rem 2.2rem;
  box-shadow:
    0 20px 60px rgba(159, 134, 217, 0.25),
    0 8px 24px rgba(159, 134, 217, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
  transition:
    transform 0.25s ease,
    box-shadow 0.3s ease;
}

.login-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 28px 72px rgba(159, 134, 217, 0.3),
    0 10px 32px rgba(159, 134, 217, 0.15);
}

/* ===== 品牌标题 ===== */
.brand-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #2d1b4e;
  margin-bottom: 0.35rem;
}

.brand-sub {
  font-size: 0.95rem;
  color: #7a6a9a;
  margin-bottom: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.3px;
}

/* ===== 表单标签 ===== */
.form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #3d2a5c;
  letter-spacing: 0.2px;
  margin-bottom: 0.35rem;
}

/* ===== 输入框 ===== */
.form-control {
  border-radius: 14px;
  border: 1.5px solid #e6ddf2;
  padding: 0.7rem 1.1rem;
  font-size: 0.95rem;
  background: #fbfaff;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  color: #1f1135;
}

.form-control:focus {
  border-color: #9f86d9;
  box-shadow: 0 0 0 4px rgba(159, 134, 217, 0.2);
  background: #ffffff;
}

.form-control::placeholder {
  color: #b0a2c9;
  font-weight: 400;
  font-size: 0.9rem;
}

/* ===== 忘记密码链接 ===== */
.forgot-link {
  font-size: 0.85rem;
  color: #9f86d9;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.forgot-link:hover {
  color: #7b5fb0;
  text-decoration: underline;
}

/* ===== 自定义「记住我」复选框 ===== */
.form-check-input {
  border: 1.5px solid #d6cbe8;
  cursor: pointer;
  margin-top: 0.15rem;
  transition: all 0.2s ease;
}

.form-check-input:checked {
  background-color: #9f86d9;
  border-color: #9f86d9;
}

.form-check-input:focus {
  border-color: #9f86d9;
  box-shadow: 0 0 0 3px rgba(159, 134, 217, 0.25);
}

.form-check-label {
  color: #3d2a5c;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
}

/* ===== 登录按钮 ===== */
.btn-login {
  width: 100%;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  background: #9f86d9;
  border: none;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.4px;
  color: #ffffff;
  transition:
    background 0.25s ease,
    transform 0.15s ease,
    box-shadow 0.25s ease;
  box-shadow: 0 6px 20px rgba(159, 134, 217, 0.35);
  position: relative;
  overflow: hidden;
}

.btn-login:hover {
  background: #8b6fc9;
  transform: scale(1.01);
  box-shadow: 0 10px 28px rgba(159, 134, 217, 0.45);
}

.btn-login:active {
  transform: scale(0.97);
  background: #7b5fb0;
}

/* ===== 底部注册链接 ===== */
.signup-text {
  color: #6b5a88;
  font-size: 0.95rem;
  margin-top: 1.2rem;
}

.signup-link {
  color: #9f86d9;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.signup-link:hover {
  color: #7b5fb0;
  text-decoration: underline;
}

/* ===== 分割线 ===== */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0 1.2rem;
  color: #b8aacf;
  font-size: 0.85rem;
  font-weight: 500;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1.5px;
  background: linear-gradient(to right, transparent, #d6cbe8, transparent);
}

/* ===== 辅助文本（演示账号） ===== */
.demo-hint {
  font-size: 0.8rem;
  color: #a694c0;
  background: #f5f0fc;
  border-radius: 40px;
  padding: 0.4rem 1.2rem;
  display: inline-block;
  margin-top: 0.3rem;
  letter-spacing: 0.2px;
}

.demo-hint span {
  font-weight: 500;
  color: #7b5fb0;
}

/* ===== 响应式微调 ===== */
@media (max-width: 480px) {
  .login-card {
    padding: 2rem 1.25rem 1.8rem;
    border-radius: 24px;
  }
  .brand-title {
    font-size: 1.7rem;
  }
  .btn-login {
    font-size: 0.95rem;
    padding: 0.65rem 1.25rem;
  }
  /* 小屏下“记住我”与“忘记密码”自动换行 */
  .remember-row {
    flex-wrap: wrap;
    gap: 0.3rem 0;
  }
}
