/* ============================================================================
 *  盛航云 · 登录页（独立页面）
 *  ----------------------------------------------------------------------------
 *  设计思路：
 *    左侧 52% —— 品牌视觉区：渐变底 + 网格 + 浮动的玻璃数据卡 + 三行卖点
 *    右侧 48% —— 大尺寸登录卡（440px），登录 / 注册 / 忘记密码三个面板切换
 *
 *  为什么不用弹窗：
 *    弹窗受容器宽度限制，输入框小、视觉局促；独立页可以做成整屏，
 *    空间足够，输入框 48px、按钮 50px，手感完全不同。
 *
 *  依赖：style.css 的 CSS 变量（--brand / --ink / --line / --radius 等）
 * ==========================================================================*/

body.lp {
  background: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---------------------------------------------------------------- 整体骨架 */
.lp-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  min-height: 100vh;
}

/* ---------------------------------------------------------------- 左：品牌区 */
.lp-brand {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, #0a2b74 0%, #1545b8 38%, #2563eb 70%, #06b6d4 100%);
  color: #fff;
  padding: clamp(28px, 4vw, 64px);
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

/* 光斑 */
.lp-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at 82% 12%, rgba(6, 182, 212, .42), transparent 62%),
    radial-gradient(ellipse 50% 40% at 8% 88%, rgba(59, 130, 246, .48), transparent 60%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .14), transparent 55%);
  pointer-events: none;
  z-index: -1;
}

/* 网格 */
.lp-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse at 45% 35%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 45% 35%, #000 25%, transparent 78%);
  pointer-events: none;
  z-index: -1;
}

.lp-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
}
.lp-logo img {
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255, 255, 255, .14);
  padding: 2px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
}
.lp-logo b { font-size: 17px; display: block; line-height: 1.15; }
.lp-logo small {
  display: block; font-size: 10px; letter-spacing: 2.6px;
  color: rgba(255, 255, 255, .62); font-weight: 400; margin-top: 2px;
}

.lp-brand-main { margin-top: auto; margin-bottom: auto; padding: clamp(28px, 5vh, 60px) 0; }

.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  font-size: 12.5px;
  color: rgba(255, 255, 255, .92);
  backdrop-filter: blur(6px);
  margin-bottom: clamp(16px, 2.4vh, 26px);
}
.lp-eyebrow i {
  width: 6px; height: 6px; border-radius: 50%;
  background: #67e8f9; box-shadow: 0 0 0 4px rgba(103, 232, 249, .22);
}

.lp-brand-sub .sub-short { display: none; }

.lp-brand h1 {
  text-wrap: pretty;
  font-size: clamp(27px, 2.9vw, 44px);
  line-height: 1.24;
  font-weight: 800;
  letter-spacing: -.3px;
  margin: 0 0 clamp(12px, 1.8vh, 20px);
  max-width: 15em;
}
.lp-brand h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #a5f3fc 0%, #fef08a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lp-brand-sub {
  /* 宽屏用 pretty（避免末行孤字）；中等宽度在下面切 balance */
  text-wrap: pretty;
  font-size: clamp(13.5px, 1.05vw, 15.5px);
  line-height: 1.85;
  color: rgba(255, 255, 255, .78);
  max-width: 34em;
  margin: 0 0 clamp(22px, 3.4vh, 38px);
}

.lp-feats { display: grid; gap: clamp(10px, 1.4vh, 16px); max-width: 460px; }
.lp-feat {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 13px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .13);
  backdrop-filter: blur(8px);
  transition: background .25s, transform .25s, border-color .25s;
}
.lp-feat:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .24);
  transform: translateX(3px);
}
.lp-feat-ic {
  flex: 0 0 34px;
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .16);
  color: #a5f3fc;
}
.lp-feat-ic svg { width: 17px; height: 17px; }
.lp-feat b { display: block; font-size: 13.5px; margin-bottom: 2px; }
.lp-feat span { font-size: 12px; color: rgba(255, 255, 255, .66); line-height: 1.6; }

.lp-brand-foot {
  flex-shrink: 0;
  font-size: 11.5px;
  color: rgba(255, 255, 255, .48);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: center;
  line-height: 1.7;
}
.lp-brand-foot a { color: rgba(255, 255, 255, .62); }
.lp-brand-foot a:hover { color: #fff; }

/* 浮动的玻璃数据卡（装饰，纯 CSS） */
.lp-orbits { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.lp-orbit-card {
  position: absolute;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(10px);
  font-size: 11.5px;
  color: rgba(255, 255, 255, .85);
  box-shadow: 0 16px 40px rgba(3, 20, 60, .3);
  animation: lpFloat 9s ease-in-out infinite;
}
.lp-orbit-card b { display: block; font-size: 19px; font-weight: 800; color: #fff; letter-spacing: -.4px; }
.lp-orbit-card:nth-child(1) { top: 16%; right: 6%; animation-delay: 0s; }
.lp-orbit-card:nth-child(2) { top: 38%; right: 22%; animation-delay: -3s; }
.lp-orbit-card:nth-child(3) { bottom: 22%; right: 9%; animation-delay: -6s; }
@keyframes lpFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-11px); }
}

/* ---------------------------------------------------------------- 右：表单区 */
.lp-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vh, 48px) clamp(20px, 4vw, 56px);
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, #f2f7ff, transparent 70%),
    #fff;
}

.lp-panel-inner {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.lp-card {
  width: 100%;
  max-width: 440px;
  animation: lpRise .55s cubic-bezier(.2, .8, .25, 1) both;
}
@keyframes lpRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* 移动端才显示的小 LOGO */
.lp-mini-logo { display: none; margin-bottom: 18px; }
.lp-mini-logo img { width: 40px; height: 40px; border-radius: 11px; }

.lp-card h2 {
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 800;
  letter-spacing: -.2px;
  margin: 0 0 7px;
  color: var(--ink);
}
.lp-card .lp-hint {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 clamp(20px, 3vh, 28px);
  line-height: 1.7;
}

/* 分段切换 */
.lp-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: #f1f5fb;
  border-radius: 12px;
  margin-bottom: clamp(20px, 2.6vh, 26px);
}
.lp-tabs button {
  height: 40px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .22s, color .22s, box-shadow .22s;
}
.lp-tabs button.on {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 2px 10px rgba(15, 40, 90, .1);
}

/* 表单 */
.lp-form { display: grid; gap: clamp(14px, 1.9vh, 18px); }
.lp-field { display: grid; gap: 7px; }
.lp-field > label {
  font-size: 12.5px;
  font-weight: 600;
  color: #33405c;
  display: flex;
  align-items: center;
  gap: 5px;
}
.lp-field > label i { color: var(--danger); font-style: normal; }

.lp-input {
  position: relative;
  display: flex;
  align-items: center;
}
.lp-input > svg.lp-ic {
  position: absolute;
  left: 15px;
  width: 18px; height: 18px;
  color: #9aa9c2;
  pointer-events: none;
  transition: color .2s;
}
.lp-input input {
  width: 100%;
  height: 50px;
  padding: 0 15px 0 44px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fbfcfe;
  font-size: 14.5px;
  color: var(--ink);
  font-family: inherit;
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.lp-input input::placeholder { color: #a9b5c9; }
.lp-input input:hover { border-color: #d3ddec; }
.lp-input input:focus {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(29, 78, 216, .1);
}
.lp-input:focus-within > svg.lp-ic { color: var(--brand); }

/* 密码可见切换 */
.lp-eye {
  position: absolute;
  right: 8px;
  width: 36px; height: 36px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #94a3bb;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background .18s, color .18s;
}
.lp-eye:hover { background: #eef3fb; color: var(--brand); }
.lp-eye svg { width: 17px; height: 17px; }

/* 行内错误 */
.lp-err {
  display: none;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 13px;
  border-radius: 10px;
  background: #fdecea;
  border: 1px solid #f7c9c4;
  color: #b3261e;
  font-size: 12.5px;
  line-height: 1.65;
}
.lp-err.show { display: flex; }
.lp-err svg { width: 15px; height: 15px; flex: 0 0 15px; margin-top: 1px; }

/* 主按钮 */
.lp-submit {
  position: relative;
  height: 50px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 55%, #06b6d4 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .4px;
  font-family: inherit;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(29, 78, 216, .28);
  transition: transform .18s, box-shadow .22s, filter .2s;
}
.lp-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(29, 78, 216, .36); }
.lp-submit:active:not(:disabled) { transform: translateY(0); }
.lp-submit:disabled { cursor: not-allowed; filter: saturate(.7) brightness(1.02); }
.lp-submit .lp-spin {
  display: none;
  width: 17px; height: 17px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: -3px;
  animation: lpSpin .7s linear infinite;
}
.lp-submit.loading .lp-spin { display: inline-block; }
@keyframes lpSpin { to { transform: rotate(360deg); } }

/* 辅助链接行 */
.lp-aux {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  margin-top: 2px;
}
.lp-aux label { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); cursor: pointer; }
.lp-aux input[type=checkbox] { width: 15px; height: 15px; accent-color: var(--brand); cursor: pointer; }
.lp-aux a { color: var(--brand); font-weight: 500; }
.lp-aux a:hover { text-decoration: underline; }

/* 底部说明 */
.lp-foot-note {
  margin-top: clamp(20px, 3vh, 30px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
}
.lp-foot-note b { color: #33405c; }

/* 忘记密码面板 */
.lp-forgot-box {
  padding: 15px 17px;
  border-radius: 13px;
  background: #fff8e6;
  border: 1px solid #ffe0b2;
  color: #8a5a00;
  font-size: 13px;
  line-height: 2.05;
}
.lp-forgot-box b { display: block; margin-bottom: 6px; font-size: 13.5px; }
.lp-forgot-note {
  margin-top: 13px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
}

/* 已登录提示 */
.lp-done { text-align: center; padding: 8px 0 4px; }
.lp-done-ic {
  width: 54px; height: 54px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #e8f5ec;
  color: var(--ok);
}
.lp-done-ic svg { width: 26px; height: 26px; }
.lp-done p { font-size: 13.5px; color: var(--muted); margin: 0 0 18px; line-height: 1.8; }

[hidden] { display: none !important; }

/* 小屏页脚（桌面端隐藏） */
.lp-mobile-foot {
  display: none;
  text-align: center;
  font-size: 11px;
  color: #9aa6bb;
  line-height: 1.9;
  margin-top: 18px;
  padding: 0 4px;
}
.lp-mobile-foot a { color: #9aa6bb; }

/* ---------------------------------------------------------------- 响应式 */
/* 断点设计（按真实浏览器窗口，不是屏幕分辨率）：

     ≥1200px        两栏 52/48，卖点全展开，浮动数据卡显示
     900~1199px     两栏 46/54，标题降级，卖点只留标题，浮动卡隐藏
     <900px         单列：品牌区压成 150px 横条，表单变成白色卡片
     <560px         再压一档

   ★ 之前断点定在 1024，导致 940 左右的笔记本窗口直接塌成单列，
     品牌区被撑成 350px 的扁色带 —— 那一版不好看就是这原因。 */

@media (max-width: 1199px) and (min-width: 900px) {
  .lp-wrap { grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); }
  .lp-brand { padding: clamp(24px, 3vw, 40px); }
  .lp-orbit-card { display: none; }                 /* 窄了会压到标题 */
  .lp-brand h1 { font-size: clamp(23px, 2.6vw, 30px); max-width: none; }
  .lp-brand-sub { font-size: 12.5px; line-height: 1.75; margin-bottom: 20px; }
  /* 中等宽度换短文案，避免出现"台里完成。"这种孤行 */
  .lp-brand-sub .sub-long { display: none; }
  .lp-brand-sub .sub-short { display: inline; }
  /* 短文案只有两行，用 balance 让断行落在标点处 */
  .lp-brand-sub { text-wrap: balance; }
  .lp-feats { gap: 8px; }
  .lp-feat { padding: 9px 12px; gap: 10px; }
  .lp-feat-ic { flex-basis: 28px; width: 28px; height: 28px; border-radius: 8px; }
  .lp-feat-ic svg { width: 15px; height: 15px; }
  /* ★ 只隐藏描述文字，保留图标 —— 用 .lp-feat span 会连 .lp-feat-ic 图标一起隐藏 */
  .lp-feat > div > span { display: none; }
  .lp-feat { align-items: center; }
  .lp-feat b { font-size: 12.5px; margin: 0; }
  .lp-panel { padding: 26px clamp(20px, 3vw, 36px); }
  .lp-card { max-width: 400px; }
  .lp-card h2 { font-size: clamp(22px, 2vw, 26px); }
}

@media (max-width: 899px) {
  .lp-wrap { grid-template-columns: 1fr; }

  /* 品牌区：压成一条干净的横条，只留 LOGO + 一行标题 */
  .lp-brand {
    padding: 18px 20px 20px;
    border-radius: 0 0 20px 20px;
    min-height: 0;
  }
  .lp-brand .lp-logo img { width: 36px; height: 36px; border-radius: 10px; }
  .lp-logo b { font-size: 15px; }
  .lp-logo small { font-size: 9px; letter-spacing: 2px; }
  .lp-brand-main { padding: 14px 0 0; margin: 0; }
  .lp-eyebrow { display: none; }
  .lp-brand h1 {
    font-size: clamp(18px, 4.6vw, 23px);
    line-height: 1.34;
    margin: 0;
    letter-spacing: -.2px;
  }
  .lp-brand-sub,
  .lp-feats,
  .lp-orbits,
  .lp-brand-foot { display: none; }                  /* 副标题/卖点/备案都收掉 */

  /* 表单区：浅底 + 白色卡片，不再"飘"在白底上 */
  .lp-panel {
    background: var(--bg);
    padding: 20px 16px 32px;
    align-items: flex-start;
  }
  .lp-panel-inner { max-width: 520px; }
  .lp-card {
    max-width: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 24px 22px 26px;
    box-shadow: 0 10px 30px rgba(15, 40, 90, .08);
  }
  .lp-mini-logo { display: none; }                   /* 品牌区已有 LOGO */
  .lp-card h2 { font-size: 22px; }
  .lp-card .lp-hint { margin-bottom: 18px; font-size: 13px; }
  .lp-foot-note { margin-top: 18px; padding-top: 14px; }

  .lp-mobile-foot { display: block; }
}

@media (max-width: 560px) {
  .lp-brand { padding: 15px 16px 17px; border-radius: 0 0 16px 16px; }
  .lp-brand h1 { font-size: 17.5px; }
  .lp-brand .lp-logo img { width: 32px; height: 32px; }
  .lp-logo b { font-size: 14px; }
  .lp-logo small { display: none; }
  .lp-panel { padding: 14px 12px 26px; }
  .lp-card { padding: 20px 16px 22px; border-radius: 16px; }
  .lp-card h2 { font-size: 20px; }
  .lp-tabs { margin-bottom: 16px; }
  .lp-tabs button { height: 38px; font-size: 13.5px; }
  .lp-input input, .lp-submit { height: 48px; }
  .lp-input input { font-size: 14px; }
  .lp-aux { font-size: 12.5px; }
}

/* 极矮屏（笔记本 700~800 高 + 浏览器工具栏）：压缩桌面留白 */
@media (max-height: 760px) and (min-width: 1200px) {
  .lp-brand-main { padding: 16px 0; }
  .lp-brand h1 { font-size: clamp(24px, 2.3vw, 32px); }
  .lp-brand-sub { margin-bottom: 18px; line-height: 1.65; }
  .lp-feats { gap: 8px; }
  .lp-feat { padding: 9px 13px; }
  .lp-feat span { font-size: 11.5px; }
  .lp-form { gap: 12px; }
  .lp-card h2 { font-size: 24px; }
  .lp-card .lp-hint { margin-bottom: 16px; }
  .lp-tabs { margin-bottom: 16px; }
  .lp-foot-note { margin-top: 16px; padding-top: 12px; }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  .lp-card, .lp-orbit-card { animation: none; }
  .lp-feat:hover { transform: none; }
}


/* ---------- 验证码输入 ---------- */
.lp-input-code { position: relative; }
.lp-input-code input { padding-right: 112px; }
.lp-code-btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  height: 32px; padding: 0 11px; border: 0; border-radius: 8px;
  background: rgba(29, 78, 216, .09); color: #1d4ed8;
  font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background .18s, color .18s;
}
.lp-code-btn:hover:not(:disabled) { background: rgba(29, 78, 216, .16); }
.lp-code-btn:disabled { cursor: default; opacity: .65; }
.lp-code-btn.cooling { background: rgba(100, 116, 139, .10); color: #64748b; }
.lp-tip { margin: 6px 0 0; font-size: 12px; line-height: 1.5; color: #94a3b8; }
.lp-tip.ok { color: #0f766e; }


/* ---------- 登录方式切换 ---------- */
.lp-seg {
  display: flex; gap: 6px; padding: 5px; margin-bottom: 18px;
  background: #f1f5fb; border-radius: 10px;
}
.lp-seg button {
  flex: 1; height: 34px; border: 0; border-radius: 8px; cursor: pointer;
  background: transparent; color: #64748b; font-size: 13.5px; font-weight: 600;
  transition: background .18s, color .18s, box-shadow .18s;
}
.lp-seg button:hover { color: #1d4ed8; }
.lp-seg button.on {
  background: #fff; color: #1d4ed8;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .10);
}
