/* ===== 登录注册页样式（2026-08-20 由 login.html 内联样式统一抽取） ===== */
:root { --btn-bg: #ff0f23; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', sans-serif;
  background: url('../img/login-bg.webp') center center / cover no-repeat fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px;
}
.login-card {
  margin: auto;
  background: #fff;
  border-radius: 4px;
  padding: 30px;
  width: 400px;
  max-width: 100%;
  box-shadow: 0 16px 60px rgba(255, 15, 35, 0.15), 0 4px 20px rgba(0,0,0,0.04);
}
/* ≥1025px：登录框移到屏幕右侧（图片为左图右空白布局） */
@media (min-width: 1025px) {
  .login-card {
    margin: auto 6% auto auto;
  }
}
/* ≤1024px：移动端背景图（居中、cover 铺满、抵满无空隙），登录框保持居中 */
@media (max-width: 1024px) {
  body {
    background: url('../img/login-bg-mobile.webp') center center / cover no-repeat fixed;
  }
  .login-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #ff0f23;
  }
}
.login-header { text-align: center; margin-bottom: 24px; }
.login-logo {
  width: 72px; height: 72px; margin: 0 auto 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(255, 15, 35, 0.3);
}
.login-logo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.login-title {
  font-size: 20px;
  font-weight: 700;
  color: #ff0f23;
}
.login-sub { font-size: 13px; color: #999; margin-top: 6px; }
.form-group { margin-bottom: 10px; }
.form-label {
  display: block; font-size: 14px; color: #1A1A2E; margin-bottom: 8px;
  font-weight: 700;
}
.form-input-wrap {
  display: flex; align-items: center;
  border: 1px solid #ff0f23; border-radius: 4px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.6);
}
.form-input {
  width: 100%; height: 32px; border: none; background: transparent;
  font-size: 15px; color: #1A1A2E; outline: none;
}
.form-input::placeholder { color: #C5C5CE; font-size: 13px; }
.login-btn {
  display: flex; align-items: center; justify-content: center; width: auto; height: 36px; border: none; border-radius: 4px;
  background: var(--btn-bg);
  color: #fff; font-size: 16px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  margin: 22px auto 0; padding: 0 48px;
}
.login-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.error-msg {
  color: #FF5252; font-size: 14px; text-align: center;
  margin-top: 16px; display: none; background: #FFF0F0;
  padding: 10px 16px; border-radius: 4px;
}
.error-msg.show { display: block; }
.type-group { display: flex; justify-content: center; gap: 24px; margin-bottom: 14px; }
.type-group span {
  font-size: 15px; color: #999; cursor: pointer; padding-bottom: 4px;
  border-bottom: 2px solid transparent; user-select: none;
}
.type-group span.active { color: #ff0f23; font-weight: 600; border-bottom-color: #ff0f23; }
.qr-wrap { text-align: center; padding: 8px 0 4px; }
.qr-img {
  width: 190px; height: 190px; border: 1px solid #eee; border-radius: 6px;
  background: #fff;
}
.qr-tip { font-size: 12px; color: #999; margin-top: 8px; }
.qr-tip a { color: #ff0f23; cursor: pointer; text-decoration: underline; }
/* 二维码加载等待动画 */
.qr-loading {
  width: 190px;
  height: 190px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f8fa;
  border-radius: 6px;
}
.spinner {
  width: 34px;
  height: 34px;
  border: 3px solid #eee;
  border-top-color: #ff0f23;
  border-radius: 50%;
  animation: qr-spin .8s linear infinite;
}
@keyframes qr-spin { to { transform: rotate(360deg) } }
.field { margin-bottom: 12px; }
.field-row { display: flex; gap: 10px; }
.field-row .field { flex: 1; min-width: 0; }
.field label { display: block; font-size: 13px; color: #666; margin-bottom: 6px; }
.field input {
  width: 100%; height: 38px; padding: 0 12px;
  border: 1px solid #ddd; border-radius: 4px; font-size: 14px;
  outline: none; color: #1A1A2E; box-sizing: border-box;
}
.field input:focus { border-color: #ff0f23; }
.back-home {
  display: block; text-align: center; margin-top: 14px; font-size: 13px; color: #999;
  text-decoration: none;
}
.back-home:hover { color: #ff0f23; }
.page-footer {
  margin-top: auto;
  text-align: center;
  font-size: 12px;
  color: #fff;
  line-height: 1.6;
}
.page-footer a { color: #fff; text-decoration: none; }
