/* V2 登录/注册页：严格按 V2/UI/login-{mobile,desktop}.png 参考稿 + AIforBB.png 设计图
   像素分析结论（Pillow）：
     页面背景 #FFF8E7  品牌头渐变 135deg 粉#FFB5C1→紫#D9B5ED→亮黄#FFE066
     wordmark 三色 AI=#ADACFF / for=#FFAAB9 / BB=#FFD04D（取自 AIforBB.png）
     吉祥物 透明背景白朵+紫轮廓#BFAAFF，去外框直接显示
     按钮粉→黄渐变#FFB6C1→#FFDE6A，文字白色  输入框粉白#FFF8FA  文字深棕#4A2F1A
   布局（反转断点：默认左右一屏，仅 ≤480px 手机才上下）：
     默认(≥481px)  左品牌 44% + 右表单 56%，强制一屏 overflow:hidden 不出滚动条
     ≤480px 手机   顶部品牌头 + 下方卡片，单栏，可滚动（适配键盘）
     ≥768px        左右标准尺寸（吉祥物/wordmark 放大）
   品牌区竖版顺序：LOGO（吉祥物）→ AIforBB（wordmark）→ slogan（tagline）
   @media (monochrome) 黑白墨水屏覆盖。 */

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; min-height: 100%;
  background: #FFF8E7;
  font-family: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei",
               system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #4A2F1A;
  -webkit-text-size-adjust: 100%;
}
img { display: block; max-width: 100%; }
a { color: #E07A5F; text-decoration: none; }
a:hover { text-decoration: underline; }

/* === Page layout（默认：左右一屏，不出滚动条） === */
.auth-page {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  overflow: hidden;
  background: #FFF8E7;
}

/* === Brand Hero 品牌区（粉→紫→黄 135deg 渐变，竖版：LOGO→AIforBB→slogan） === */
.auth-brand {
  position: relative;
  flex: 0 0 44%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  padding: 32px;
  background: linear-gradient(135deg, #FFB5C1 0%, #D9B5ED 50%, #FFE066 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.auth-brand::before,
.auth-brand::after {
  content: ""; position: absolute; top: 18px;
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}
.auth-brand::before { left: 22px; }
.auth-brand::after  { right: 22px; background: #FFE066; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5); }

/* 1. LOGO 吉祥物（去外框，直接显示透明 PNG） */
.auth-brand-mascot {
  margin: 0 0 6px;
  width: 160px;
  height: auto;
}
/* 2. AIforBB wordmark 三色 + 白色描边增强彩色背景对比度 */
.auth-brand-wordmark {
  display: inline-flex;
  align-items: center;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.5px;
  -webkit-text-stroke: 0.5px #FFFFFF;
          text-stroke: 0.5px #FFFFFF;
  text-shadow:
    0 0 6px rgba(255, 255, 255, 0.55),
    0 2px 4px rgba(74, 47, 26, 0.25);
}
.auth-brand-wordmark .ai  { color: #ADACFF; }
.auth-brand-wordmark .for { color: #FFAAB9; }
.auth-brand-wordmark .bb  { color: #FFD04D; }
/* 3. slogan */
.auth-brand-tagline {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: #FFFFFF;
  text-shadow: 0 1px 2px rgba(74, 47, 26, 0.15);
  letter-spacing: 0.5px;
}

/* === Form Area 登录卡片容器 === */
.auth-stage {
  flex: 0 0 56%;
  height: 100vh;
  height: 100dvh;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #FFF8E7;
}

/* === Auth Card === */
.auth-card {
  width: 100%;
  max-width: 320px;
  background: #FFFFFF;
  border-radius: 20px;
  padding: 28px 22px 24px;
  box-shadow: 0 8px 24px rgba(139, 124, 255, 0.10);
}
.auth-title {
  margin: 0 0 6px; font-size: 24px; font-weight: 700;
  text-align: center; color: #4A2F1A; letter-spacing: 0.5px;
}
.auth-subtitle {
  margin: 0 0 22px; font-size: 14px; text-align: center; color: #8B7B78;
}
.auth-error {
  margin: 0 0 16px; padding: 8px 12px; font-size: 14px;
  color: #4A2F1A; background: #FFF1F1; border: 1px solid #FFD7D7;
  border-radius: 12px; text-align: center;
}

/* === Form === */
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-input-wrap {
  position: relative; display: flex; align-items: center;
  border: 1.5px solid #F0E5DC; border-radius: 12px; background: #FFF8FA;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.auth-input-wrap:focus-within {
  border-color: #FFB6C1; background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(255, 182, 193, 0.22);
}
.auth-input-icon {
  flex: 0 0 auto; width: 20px; height: 20px; margin: 0 10px 0 12px; color: #FF9FAF;
}
.auth-input {
  flex: 1 1 auto; width: 100%; padding: 13px 12px 13px 0;
  font-size: 16px; font-family: inherit; color: #4A2F1A;
  background: transparent; border: 0; outline: none; -webkit-appearance: none;
}
.auth-input::placeholder { color: #C9B8AE; }

.auth-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 2px; font-size: 13px; color: #8B7B78;
}
.auth-remember { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; }
.auth-remember input { width: 16px; height: 16px; accent-color: #FF9FAF; cursor: pointer; }
.auth-link { color: #E07A5F; font-weight: 500; }

/* === Button（粉→黄渐变，白色文字） === */
.auth-btn {
  width: 100%; height: 48px; margin-top: 10px;
  font-size: 16px; font-weight: 600; font-family: inherit;
  color: #FFFFFF;
  background: linear-gradient(135deg, #FFB6C1 0%, #FFDE6A 100%);
  border: 0; border-radius: 24px; cursor: pointer;
  box-shadow: 0 6px 16px rgba(255, 159, 175, 0.32);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
  letter-spacing: 1px;
}
.auth-btn:hover { filter: brightness(1.04); box-shadow: 0 8px 20px rgba(255, 159, 175, 0.40); }
.auth-btn:active { transform: translateY(1px); filter: brightness(0.98); }

.auth-tip { margin: 18px 0 0; font-size: 14px; text-align: center; color: #8B7B78; }
.auth-tip .auth-link { font-weight: 600; }

/* === 手机端（≤480px）：上下单栏，可滚动适配键盘 === */
@media (max-width: 480px) {
  .auth-page {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
  }
  .auth-brand {
    flex: 0 0 auto;
    height: auto;
    min-height: 34vh;
    padding: 32px 24px 28px;
  }
  .auth-stage {
    flex: 1 1 auto;
    height: auto;
    overflow: visible;
    padding: 28px 16px 40px;
  }
  .auth-card { max-width: 360px; }
}

/* === 桌面放大（≥768px）：吉祥物/wordmark/卡片放大 === */
@media (min-width: 768px) {
  .auth-brand { padding: 40px 48px; }
  .auth-brand-mascot { width: 220px; margin: 0 0 10px; }
  .auth-brand-wordmark { font-size: 52px; }
  .auth-brand-tagline { font-size: 16px; margin-top: 6px; }
  .auth-stage { padding: 32px; }
  .auth-card { max-width: 400px; padding: 36px 32px 28px; }
  .auth-title { font-size: 26px; }
}

/* === 黑白墨水屏 === */
@media (monochrome) {
  html, body { background: #FFFFFF; color: #000000; }
  a { color: #000000; text-decoration: underline; }
  .auth-page { background: #FFFFFF; }
  .auth-brand { background: #FFFFFF; border-right: 2px solid #000000; }
  .auth-brand::before, .auth-brand::after { display: none; }
  .auth-brand-wordmark,
  .auth-brand-wordmark .ai,
  .auth-brand-wordmark .for,
  .auth-brand-wordmark .bb,
  .auth-brand-tagline { color: #000000; text-shadow: none; -webkit-text-stroke: 0; text-stroke: 0; }
  .auth-stage { background: #FFFFFF; }
  .auth-card {
    background: #FFFFFF; border: 2px solid #000000;
    box-shadow: none; border-radius: 8px;
  }
  .auth-title { color: #000000; }
  .auth-subtitle { color: #333333; }
  .auth-error { color: #000000; background: #F2F2F2; border: 1px solid #000000; border-radius: 6px; }
  .auth-input-wrap { border: 1.5px solid #000000; border-radius: 6px; background: #FFFFFF; }
  .auth-input-wrap:focus-within { border-color: #000000; background: #FFFFFF; box-shadow: 0 0 0 2px #000000; }
  .auth-input-icon { color: #000000; }
  .auth-input { color: #000000; }
  .auth-input::placeholder { color: #666666; }
  .auth-remember input { accent-color: #000000; }
  .auth-btn { background: #000000; color: #FFFFFF; border: 2px solid #000000; border-radius: 6px; box-shadow: none; }
  .auth-btn:hover { background: #333333; }
  .auth-link { color: #000000; }
  /* 手机端黑白：品牌头底边框而非右边框 */
  @media (max-width: 480px) {
    .auth-brand { border-right: 0; border-bottom: 2px solid #000000; }
  }
}