/* ================================================
   登录注册页面 - 粉白科技风 + 三层布局
   顶部公告条 → 中间登录卡片 → 底部版权
   ================================================ */

/* ---------- 全局基础 ---------- */
body.auth-mobile-page {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: #fff7fb;
  font-family: "Microsoft YaHei", -apple-system, sans-serif;
  color: #7a344f;
}

/* 背景：淡粉渐变 + 光晕 + 网格 */
body.auth-mobile-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 200, 220, 0.8), transparent 35%),
    radial-gradient(circle at 85% 15%, rgba(255, 225, 240, 0.9), transparent 30%),
    radial-gradient(circle at 50% 85%, rgba(255, 210, 230, 0.6), transparent 30%),
    linear-gradient(140deg, #fffdfd 0%, #ffeaf3 50%, #fff6fa 100%);
  filter: saturate(1.1);
}

/* 网格线 */
body.auth-mobile-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 139, 178, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 139, 178, 0.1) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, #000 0%, transparent 72%);
  animation: gridMove 18s linear infinite;
}

@keyframes gridMove {
  to { transform: translate(44px, 44px); }
}

/* ---------- 整体容器：垂直三层布局 ---------- */
.auth-mobile-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 580px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 40px 16px 20px;
  box-sizing: border-box;
}

/* ---------- 公告条：顶部醒目设计 ---------- */
.auth-login-notice {
  width: 100%;
  max-width: 580px;
  margin: 0;
  position: relative;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid rgba(255, 174, 205, 0.5);
  box-shadow:
    0 8px 32px rgba(220, 78, 132, 0.14),
    0 0 24px rgba(255, 183, 213, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: hidden;
  backdrop-filter: blur(16px);
}

/* 左侧粉色装饰条 */
.auth-login-notice::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #ff7bae, #ff4f93);
  border-radius: 20px 0 0 20px;
}

/* 右侧装饰图标区域 */
.auth-login-notice::after {
  content: "📢";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  opacity: 0.6;
}

.auth-login-notice marquee {
  display: block;
  width: 100%;
  padding: 16px 44px 16px 20px;
  font-size: 17px;
  font-weight: 700;
  color: #c42b6e;
  line-height: 1.6;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(255, 132, 177, 0.2);
}

/* ---------- 登录/注册卡片 ---------- */
.auth-mobile-card {
  width: 100%;
  max-width: 580px;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 245, 250, 0.92));
  border: 1px solid rgba(255, 174, 205, 0.5);
  box-shadow:
    0 28px 80px rgba(220, 78, 132, 0.16),
    0 0 48px rgba(255, 183, 213, 0.28);
  backdrop-filter: blur(24px);
  overflow: hidden;
}

/* 渐变边框效果 */
.auth-mobile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.95),
    rgba(255, 132, 177, 0.5),
    rgba(255, 205, 225, 0.7)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Header 区域 */
.auth-mobile-header {
  position: relative;
  padding: 36px 32px 22px;
  color: #8b2f52;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.85), transparent 35%),
    linear-gradient(135deg, rgba(255, 246, 250, 0.98), rgba(255, 182, 211, 0.8));
}

.auth-mobile-header::after {
  content: "AUTH CENTER";
  position: absolute;
  right: 20px;
  top: 16px;
  font-size: 10px;
  letter-spacing: 3px;
  color: rgba(139, 47, 82, 0.35);
}

.auth-mobile-header h1 {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #8b2f52;
  text-shadow: 0 6px 20px rgba(255, 132, 177, 0.25);
}

.auth-mobile-header p {
  margin: 0;
  font-size: 14px;
  color: rgba(122, 52, 79, 0.85);
  line-height: 1.7;
}

/* 表单区域 */
.auth-mobile-body {
  padding: 28px 30px 24px;
  background: rgba(255, 255, 255, 0.3);
}

.auth-mobile-form .form-group {
  margin-bottom: 16px;
}

.auth-mobile-label {
  display: block;
  margin-bottom: 8px;
  color: #8b2f52;
  font-size: 14px;
  font-weight: 700;
}

/* 输入框 */
.auth-mobile-input {
  width: 100%;
  height: 52px;
  border: 1px solid rgba(255, 166, 201, 0.5);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0 16px;
  font-size: 15px;
  color: #7a344f;
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.5),
    0 4px 12px rgba(220, 78, 132, 0.06);
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.auth-mobile-input::placeholder {
  color: rgba(164, 92, 119, 0.5);
}

.auth-mobile-input:focus {
  outline: none;
  border-color: rgba(255, 105, 164, 0.85);
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 0 0 4px rgba(255, 132, 177, 0.15),
    0 0 24px rgba(255, 153, 190, 0.2);
  color: #7a344f;
}

/* 提示框 */
.auth-mobile-tip {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 231, 241, 0.75);
  border: 1px solid rgba(255, 166, 201, 0.35);
  color: #8b2f52;
  font-size: 13px;
  line-height: 1.7;
}

/* 验证码行 */
.auth-code-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.auth-code-row .auth-mobile-input {
  flex: 1;
}

.auth-code-btn {
  height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(255, 132, 177, 0.4);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 230, 240, 0.8), rgba(255, 210, 225, 0.6));
  color: #ff4f93;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-code-btn:hover {
  background: linear-gradient(135deg, rgba(255, 210, 225, 0.9), rgba(255, 183, 213, 0.7));
}

.auth-code-btn[disabled] {
  color: rgba(122, 52, 79, 0.4);
  background: rgba(255, 255, 255, 0.7);
  cursor: not-allowed;
}

/* 主按钮 */
.auth-mobile-btn {
  position: relative;
  width: 100%;
  height: 54px;
  border: none;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(90deg, #ff7bae, #ff4f93, #ff7bae);
  background-size: 200% 100%;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 1px;
  box-shadow:
    0 12px 28px rgba(255, 86, 147, 0.3),
    0 0 28px rgba(255, 179, 207, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  animation: btnFlow 4s ease infinite;
}

@keyframes btnFlow {
  0%, 100% { background-position: 0% 0; }
  50% { background-position: 100% 0; }
}

.auth-mobile-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 36px rgba(255, 86, 147, 0.35),
    0 0 36px rgba(255, 179, 207, 0.4);
  color: #fff;
}

.auth-mobile-btn:active {
  transform: translateY(0);
}

.auth-mobile-btn:focus {
  outline: none;
}

/* 底部链接 */
.auth-mobile-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 18px;
  font-size: 14px;
  color: rgba(122, 52, 79, 0.75);
}

.auth-mobile-footer a {
  color: #ff4f93;
  font-weight: 700;
  text-decoration: none;
  text-shadow: 0 0 12px rgba(255, 132, 177, 0.25);
  transition: all 0.2s ease;
}

.auth-mobile-footer a:hover {
  color: #e03880;
  text-shadow: 0 0 16px rgba(255, 132, 177, 0.4);
}

/* ---------- 底部版权信息 ---------- */
.auth-mobile-copyright {
  width: 100%;
  max-width: 580px;
  margin: 0;
  padding: 16px 0;
  text-align: center;
  color: rgba(122, 52, 79, 0.55);
  font-size: 13px;
  letter-spacing: 0.5px;
  text-shadow: 0 0 12px rgba(255, 132, 177, 0.15);
}

/* ---------- 平板适配 (768px以下) ---------- */
@media (max-width: 768px) {
  .auth-mobile-wrap {
    width: 100%;
    max-width: none;
    gap: 12px;
    padding: 12px 10px 12px;
  }

  .auth-login-notice {
    width: 100%;
    max-width: none;
    border-radius: 14px;
  }

  .auth-login-notice::before {
    width: 3px;
  }

  .auth-login-notice::after {
    right: 10px;
    font-size: 14px;
  }

  .auth-login-notice marquee {
    padding: 12px 36px 12px 14px;
    font-size: 15px;
  }

  .auth-mobile-card {
    width: 100%;
    max-width: none;
    border-radius: 18px;
  }

  .auth-mobile-header {
    padding: 20px 16px 12px;
  }

  .auth-mobile-header::after {
    right: 12px;
    top: 10px;
    font-size: 9px;
    letter-spacing: 2px;
  }

  .auth-mobile-header h1 {
    font-size: 24px;
  }

  .auth-mobile-header p {
    font-size: 13px;
  }

  .auth-mobile-body {
    padding: 16px 14px 14px;
  }

  .auth-mobile-input,
  .auth-mobile-btn {
    height: 48px;
    font-size: 15px;
    border-radius: 12px;
  }

  .auth-code-btn {
    height: 46px;
    font-size: 12px;
    border-radius: 12px;
  }

  .auth-mobile-tip {
    margin-bottom: 12px;
    padding: 10px 12px;
    font-size: 12px;
    border-radius: 10px;
  }

  .auth-mobile-footer {
    margin-top: 14px;
    font-size: 13px;
    gap: 8px 12px;
  }

  .auth-mobile-copyright {
    width: 100%;
    max-width: none;
    padding: 12px 0;
    font-size: 12px;
  }
}

/* ---------- 小屏适配 (420px以下) ---------- */
@media (max-width: 420px) {
  .auth-mobile-wrap {
    gap: 10px;
    padding: 8px 8px 10px;
  }

  .auth-login-notice {
    border-radius: 12px;
  }

  .auth-login-notice marquee {
    padding: 10px 32px 10px 12px;
    font-size: 14px;
  }

  .auth-mobile-card {
    border-radius: 16px;
  }

  .auth-mobile-header {
    padding: 16px 12px 10px;
  }

  .auth-mobile-header h1 {
    font-size: 22px;
  }

  .auth-mobile-header::after {
    right: 10px;
    top: 8px;
    font-size: 8px;
  }

  .auth-mobile-body {
    padding: 14px 12px 12px;
  }

  .auth-mobile-form .form-group {
    margin-bottom: 10px;
  }

  .auth-mobile-input,
  .auth-mobile-btn {
    height: 46px;
    font-size: 15px;
    border-radius: 10px;
  }

  .auth-mobile-tip {
    font-size: 11px;
    padding: 8px 10px;
  }
}

/* ---------- 超矮屏幕适配 (高度<700px) ---------- */
@media (max-height: 700px) and (max-width: 768px) {
  .auth-mobile-wrap {
    gap: 8px;
    padding: 8px 8px 6px;
    justify-content: flex-start;
  }

  .auth-login-notice {
    margin-bottom: 0;
  }

  .auth-login-notice marquee {
    padding: 8px 32px 8px 12px;
    font-size: 13px;
  }

  .auth-mobile-header {
    padding: 12px 12px 8px;
  }

  .auth-mobile-header h1 {
    font-size: 20px;
    margin-bottom: 4px;
  }

  .auth-mobile-header p {
    font-size: 12px;
  }

  .auth-mobile-body {
    padding: 10px 12px 8px;
  }

  .auth-mobile-input,
  .auth-mobile-btn,
  .auth-code-btn {
    height: 42px;
  }

  .auth-mobile-form .form-group {
    margin-bottom: 8px;
  }

  .auth-mobile-tip {
    margin-bottom: 8px;
    padding: 6px 8px;
    font-size: 11px;
  }

  .auth-mobile-footer {
    margin-top: 10px;
    font-size: 12px;
  }

  .auth-mobile-copyright {
    padding: 8px 0;
    font-size: 11px;
  }
}

/* ================================================
   桌面端样式 (769px及以上)
   ================================================ */
@media (min-width: 769px) {
  body.auth-mobile-page {
    background: #fff7fb !important;
  }

  /* 确保背景伪元素也是粉白色 */
  body.auth-mobile-page::before {
    background:
      radial-gradient(circle at 20% 20%, rgba(255, 200, 220, 0.8), transparent 35%),
      radial-gradient(circle at 85% 15%, rgba(255, 225, 240, 0.9), transparent 30%),
      radial-gradient(circle at 50% 85%, rgba(255, 210, 230, 0.6), transparent 30%),
      linear-gradient(140deg, #fffdfd 0%, #ffeaf3 50%, #fff6fa 100%) !important;
  }

  body.auth-mobile-page::after {
    background-image:
      linear-gradient(rgba(255, 139, 178, 0.1) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 139, 178, 0.1) 1px, transparent 1px) !important;
  }

  /* 桌面端容器 - 确保三元素垂直居中 */
  .auth-mobile-wrap {
    justify-content: center !important;
    gap: 24px;
    padding: 40px 20px;
  }

  /* 公告条 */
  .auth-login-notice {
    max-width: 580px;
    margin: 0 auto;
  }

  .auth-login-notice marquee {
    font-size: 18px;
    padding: 18px 48px 18px 24px;
  }

  /* 登录卡片 */
  .auth-mobile-card {
    max-width: 580px;
    margin: 0 auto;
    border-radius: 32px;
  }

  .auth-mobile-header {
    padding: 42px 38px 26px;
  }

  .auth-mobile-header h1 {
    font-size: 36px;
  }

  .auth-mobile-header p {
    font-size: 15px;
  }

  .auth-mobile-body {
    padding: 32px 36px 28px;
  }

  /* 底部链接 - 强制居中对齐 */
  .auth-mobile-footer {
    justify-content: center !important;
    text-align: center;
    gap: 20px 30px;
    margin-top: 22px;
  }

  .auth-mobile-footer span {
    display: inline-block;
  }

  /* 版权信息 */
  .auth-mobile-copyright {
    max-width: 580px;
    margin: 0 auto;
    padding: 20px 0;
    font-size: 14px;
  }

  /* 按钮悬停效果 */
  .auth-mobile-btn {
    height: 56px;
    font-size: 18px;
  }

  /* 输入框 */
  .auth-mobile-input {
    height: 54px;
    font-size: 16px;
  }
}

/* 修复桌面端底部链接被挤到两侧的问题 */
@media (min-width: 769px) {
  html body.auth-mobile-page .auth-mobile-footer {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap;
    text-align: center;
  }
}
