* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; min-height: 100%; overflow-x: hidden; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: #303133;
  background: #faf8f9;
}
button, input { font-family: inherit; }
.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
}
.auth-brand {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: clamp(28px, 5vw, 56px) clamp(24px, 4vw, 48px) clamp(28px, 5vw, 56px) clamp(24px, 5vw, 64px);
  color: #fff;
  background: linear-gradient(145deg, #c93d5c 0%, #d64b6a 42%, #e8788f 100%);
}
.shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.shape-1 { width: 320px; height: 320px; top: -80px; right: -60px; }
.shape-2 { width: 160px; height: 160px; bottom: 12%; left: -40px; background: rgba(255, 255, 255, 0.06); }
.shape-3 { width: 80px; height: 80px; top: 18%; left: 38%; background: rgba(255, 255, 255, 0.1); }
.brand-inner { position: relative; z-index: 2; max-width: 420px; }
.brand-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 40px; }
.logo-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.brand-logo strong { display: block; font-size: clamp(16px, 2.2vw, 20px); letter-spacing: 0.04em; line-height: 1.35; }
.brand-logo span { font-size: 13px; opacity: 0.88; }
.brand-headline {
  margin: 0 0 16px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.35;
  font-weight: 700;
}
.brand-desc { margin: 0 0 28px; font-size: 14px; line-height: 1.75; opacity: 0.92; }
.brand-features { list-style: none; margin: 0; padding: 0; }
.brand-features li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.brand-features li span { width: 22px; font-size: 12px; font-weight: 700; opacity: 0.7; }
.brand-heart {
  position: absolute;
  right: 8%;
  bottom: 12%;
  width: 180px;
  height: 180px;
  opacity: 0.22;
  z-index: 1;
}
.auth-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: clamp(24px, 4vw, 40px) clamp(16px, 3vw, 32px) 72px;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}
.blob-1 { width: 280px; height: 280px; top: -60px; right: -40px; background: rgba(214, 75, 106, 0.08); }
.blob-2 { width: 200px; height: 200px; bottom: -40px; left: -20px; background: rgba(201, 61, 92, 0.06); }
.auth-card {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  padding: clamp(22px, 3vw, 36px) clamp(18px, 3vw, 32px) clamp(20px, 3vw, 32px);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 60px rgba(214, 75, 106, 0.1), 0 4px 20px rgba(0, 0, 0, 0.04);
}
.auth-card h2 { margin: 0 0 8px; font-size: 22px; }
.auth-card .sub { margin: 0 0 22px; font-size: 13px; line-height: 1.6; color: #909399; }
.field { position: relative; display: block; margin-bottom: 18px; }
.field svg {
  position: absolute;
  left: 14px;
  top: 13px;
  width: 16px;
  height: 16px;
  color: #c0c4cc;
}
.field input {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 40px;
  border: 1px solid #e4e7ed;
  border-radius: 10px;
  font-size: 16px;
  outline: none;
  background: #fff;
}
.field input:focus { border-color: #d64b6a; }
.form-error {
  margin: 0 0 14px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fdecee;
  color: #c93d5c;
  font-size: 13px;
}
.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2px 0 22px;
  font-size: 13px;
  color: #606266;
}
.form-options label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.form-options input { accent-color: #d64b6a; }
.submit {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  cursor: pointer;
  background: linear-gradient(135deg, #d64b6a, #c93d5c);
  box-shadow: 0 8px 24px rgba(214, 75, 106, 0.35);
}
.submit:hover { background: linear-gradient(135deg, #e05a78, #d64b6a); }
.submit:disabled { opacity: 0.75; cursor: default; }
.auth-footer {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  text-align: center;
  font-size: 12px;
  color: #909399;
  pointer-events: none;
}
.wb-page { min-height: 100vh; background: #faf8f9; }
.wb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 28px;
  background: #fff;
  box-shadow: 0 1px 8px rgba(214, 75, 106, 0.08);
}
.wb-brand { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 700; }
.wb-brand i {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(145deg, #c93d5c, #e8788f);
  font-style: normal;
}
.wb-logout {
  height: 34px;
  padding: 0 14px;
  border: 1px solid #f3d0d8;
  border-radius: 8px;
  background: #fff;
  color: #d64b6a;
  cursor: pointer;
}
.wb-main { max-width: 880px; margin: 32px auto; padding: 0 20px; }
.wb-card {
  padding: 28px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(214, 75, 106, 0.08);
}
.wb-card h1 { margin: 0 0 8px; font-size: 26px; }
.wb-card p { margin: 0; color: #909399; line-height: 1.7; }
.brand-scene, .card-heart { display: none; }
@media (max-width: 1200px) {
  .brand-logo { margin-bottom: 28px; }
  .brand-heart { width: 120px; height: 120px; }
  .brand-features li { font-size: 13px; padding: 8px 0; }
  .auth-card h2 { font-size: 20px; }
}
@media (max-width: 900px) {
  html, body { background: #f7f3f4; }
  .auth-page {
    display: block;
    min-height: 100vh;
    min-height: 100dvh;
    background:
      linear-gradient(180deg, #e25a78 0 280px, #f7f3f4 280px);
  }
  .auth-brand {
    display: block;
    min-height: 292px;
    padding: calc(26px + env(safe-area-inset-top)) 22px 108px;
    background:
      radial-gradient(circle at 88% 18%, rgba(255,255,255,0.16), transparent 28%),
      radial-gradient(circle at 8% 80%, rgba(255,255,255,0.1), transparent 26%),
      linear-gradient(165deg, #ee6d88 0%, #e15a76 42%, #d64b6a 100%);
  }
  .brand-inner { max-width: 68%; }
  .brand-logo { margin-bottom: 26px; gap: 12px; }
  .logo-mark { width: 46px; height: 46px; border-radius: 16px; font-size: 20px; }
  .brand-logo strong { font-size: 18px; }
  .brand-logo span { font-size: 12px; opacity: 0.86; }
  .brand-headline {
    font-size: 28px;
    line-height: 1.28;
    letter-spacing: 0.01em;
    margin-bottom: 12px;
  }
  .brand-desc {
    max-width: 15.5em;
    margin: 0;
    font-size: 13px;
    line-height: 1.75;
    opacity: 0.92;
  }
  .brand-features, .brand-heart, .shape, .blob { display: none; }
  .brand-scene {
    display: block;
    position: absolute;
    right: -8px;
    bottom: 28px;
    width: 196px;
    height: auto;
    z-index: 1;
    pointer-events: none;
  }
  .auth-main {
    display: block;
    margin-top: -72px;
    padding: 0 16px 0;
    overflow: visible;
    background: transparent;
  }
  .auth-card {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 34px 18px 22px;
    border-radius: 22px;
    background: #fff;
    border: 0;
    box-shadow: 0 18px 46px rgba(190, 48, 78, 0.16);
  }
  .card-heart {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -18px;
    left: 50%;
    width: 36px;
    height: 36px;
    margin-left: -18px;
    border-radius: 50%;
    background: #fff;
    color: #f0a3b4;
    box-shadow: 0 8px 18px rgba(214, 75, 106, 0.16);
  }
  .card-heart svg { width: 18px; height: 18px; }
  .auth-card h2 { font-size: 22px; margin-bottom: 6px; }
  .auth-card .sub { margin-bottom: 18px; font-size: 13px; }
  .field { margin-bottom: 14px; }
  .field input {
    height: 46px;
    border-radius: 12px;
    border-color: #eceff3;
    background: #fafbfc;
  }
  .field svg { top: 15px; }
  .form-options { margin: 4px 0 18px; }
  .submit {
    height: 46px;
    border-radius: 12px;
    letter-spacing: 0.2em;
    box-shadow: 0 10px 22px rgba(214, 75, 106, 0.28);
  }
  .auth-footer {
    position: static;
    margin: 22px 0 0;
    padding: 0 8px calc(20px + env(safe-area-inset-bottom));
    color: #b0b6bf;
  }
  .wb-bar { height: 56px; padding: 0 16px; }
  .wb-main { margin: 16px auto; }
  .wb-card { padding: 20px 16px; }
  .wb-card h1 { font-size: 22px; }
}
@media (max-width: 900px) and (min-width: 600px) {
  .auth-brand { min-height: 340px; padding-left: 48px; padding-right: 48px; }
  .brand-inner { max-width: 420px; }
  .brand-headline { font-size: 36px; }
  .brand-desc { max-width: 18em; font-size: 15px; }
  .brand-scene { width: 240px; right: 24px; }
  .auth-main { padding: 0 28px; }
  .auth-card { width: min(100%, 460px); margin: 0 auto; padding: 40px 28px 26px; }
}

.logo-mark { overflow: hidden; }
.logo-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
