/* =====================================================================
 * login-page.css — 登录 / 注册页：左视频轮播 + 右登录卡片
 * 左侧全屏视频轮播（深色遮罩 + 白色标题），右侧白色圆角卡片。
 * 无视频配置时自动回退深色渐变 + 品牌文字静态背景。
 * ===================================================================== */

.auth-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
  background: #fff;
}

/* ---------- 左侧媒体区 ---------- */
.auth-media {
  position: relative;
  flex: 1.15;
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(135deg, #141e30, #243b55 55%, #0f3460);
}
.auth-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .8s ease;
}
.auth-media video.active { opacity: 1; }
.auth-media .media-shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 2;
}
.auth-media .media-caption {
  position: absolute;
  z-index: 3;
  left: 64px;
  right: 64px;
  bottom: 96px;
  color: #fff;
}
.auth-media .media-caption .t {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.3;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}
.auth-media .media-caption .s {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.7;
  opacity: .88;
  max-width: 540px;
}
.auth-media .media-dots {
  position: absolute;
  z-index: 4;
  left: 64px;
  bottom: 64px;
  display: flex;
  gap: 8px;
}
.auth-media .media-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
  cursor: pointer;
  transition: .3s;
}
.auth-media .media-dots i.active { background: #fff; transform: scale(1.25); }
/* 无视频回退背景 */
.auth-media .media-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #141e30, #243b55 55%, #0f3460);
}
.auth-media .media-fallback .fb-logo {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  margin-bottom: 22px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .3);
}
.auth-media .media-fallback .fb-name { font-size: 30px; font-weight: 700; letter-spacing: 1px; }
.auth-media .media-fallback .fb-slogan { margin-top: 10px; font-size: 15px; opacity: .82; }

/* ---------- 右侧卡片区 ---------- */
.auth-panel {
  flex: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: #fff;
}
.auth-card {
  width: 100%;
  max-width: 400px;
}
.auth-card .auth-logo {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: block;
  margin: 0 auto 14px;
}
.auth-card h2 { text-align: center; font-size: 24px; color: #111; margin: 0; }
.auth-card .sub { text-align: center; color: #888; margin: 8px 0 26px; font-size: 14px; }
.auth-card .field { margin-bottom: 16px; }
.auth-card .field label { display: block; margin-bottom: 7px; font-size: 13px; color: #555; }
.auth-card .field input {
  width: 100%;
  box-sizing: border-box;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f5f5f7;
  font-size: 14px;
  color: #111;
  outline: none;
  transition: border-color .2s, background .2s;
}
.auth-card .field input:focus { border-color: #111; background: #fff; }
.auth-card .btn-black {
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 10px;
  background: #111;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.auth-card .btn-black:hover { background: #000; }
.auth-card .auth-hint { color: #dc2626; font-size: 13px; min-height: 18px; margin-bottom: 12px; }
.auth-card .auth-switch { text-align: center; margin-top: 18px; font-size: 13px; color: #666; }
.auth-card .auth-switch a { color: #111; font-weight: 500; text-decoration: none; }
.auth-card .auth-legal {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f2;
  text-align: center;
  font-size: 12px;
  color: #999;
}
.auth-card .auth-legal a { color: #999; text-decoration: underline; }

@media (max-width: 860px) {
  .auth-media { display: none; }
  .auth-panel { padding: 32px 20px; }
}

/* ===== v20261023c: 微信登录/注册入口 ===== */
.auth-card .wx-divider { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; color: #9aa; font-size: 12px; }
.auth-card .wx-divider::before, .auth-card .wx-divider::after { content: ''; flex: 1; height: 1px; background: #e8e8ec; }
.auth-card .btn-wx {
  width: 100%; height: 44px; border-radius: 10px; cursor: pointer;
  border: 1px solid #07c160; background: #fff; color: #07c160;
  font-size: 14px; font-weight: 600; transition: all .2s;
}
.auth-card .btn-wx:hover { background: #07c160; color: #fff; }
.auth-card .btn-wx:disabled { opacity: .6; cursor: wait; }

