/* ============================================================
   PanHub 认证页样式（登录/注册/个人中心）
   分屏布局：左品牌区 + 右表单卡；橙红主题与首页一致
   ============================================================ */
:root {
  --brand: #fd6853;
  --brand-deep: #ff521e;
  --brand-grad: linear-gradient(120deg, #ff8a5c, #fd6853 52%, #f2422b);
  --ink: #2a3342;
  --muted: #7a8194;
  --line: #ececec;
  --card: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: #f4f5f7;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ---------- 分屏布局 ---------- */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 460px minmax(0, 1fr); }

/* 左侧品牌区 */
.auth-side {
  position: relative; color: #fff; padding: 34px 42px;
  display: flex; flex-direction: column;
  background:
    radial-gradient(500px 320px at 90% 8%, rgba(255, 255, 255, .14), transparent 60%),
    radial-gradient(420px 260px at 10% 95%, rgba(90, 20, 0, .18), transparent 60%),
    linear-gradient(160deg, #ff8a5c 0%, #fd6853 48%, #e83a24 100%);
}
.side-logo { display: flex; align-items: center; gap: 10px; }
.side-logo b { font-size: 16.5px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  background: rgba(255, 255, 255, .92); color: var(--brand-deep);
  font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.side-main { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 30px 0; }
.side-main h1 { font-size: 52px; line-height: 1.18; font-weight: 800; letter-spacing: 2px; }
.side-main h1 em { font-style: normal; color: #ffe1b8; }
.side-feats { list-style: none; margin-top: 26px; }
.side-feats li { padding: 5px 0 5px 26px; position: relative; font-size: 14px; color: rgba(255, 255, 255, .92); }
.side-feats li::before {
  content: "✓"; position: absolute; left: 0; top: 6px;
  width: 17px; height: 17px; border-radius: 50%; font-size: 11px;
  background: rgba(255, 255, 255, .25);
  display: flex; align-items: center; justify-content: center;
}
.side-stat { margin-top: 26px; font-size: 13px; color: rgba(255, 255, 255, .8); }
.side-stat b { color: #fff; font-size: 15px; font-weight: 800; }
.side-copy { font-size: 12px; color: rgba(255, 255, 255, .62); }

/* 右侧表单区 */
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; background: #f4f5f7; }
.auth-card {
  width: min(420px, 100%); background: var(--card);
  border-radius: 16px; padding: 34px 34px 26px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(60, 40, 35, .10);
}
.auth-card h2 { font-size: 23px; font-weight: 800; color: #262d3d; }
.auth-desc { margin-top: 6px; font-size: 13px; color: var(--muted); }

.a-alert {
  margin-top: 14px; padding: 9px 13px; border-radius: 9px; font-size: 12.5px;
  background: #fff1f0; border: 1px solid #ffccc7; color: #cf2b1f;
}
.a-demo {
  margin-top: 10px; padding: 9px 13px; border-radius: 9px; font-size: 12.5px;
  background: #fff8e6; border: 1px solid #ffe3a3; color: #8a6116;
}
.a-demo b { letter-spacing: .5px; }

.a-field { margin-top: 16px; }
.a-field label { display: block; font-size: 12.5px; font-weight: 600; color: #4a5165; margin-bottom: 6px; }
.a-field input {
  width: 100%; border: 1px solid #e2e5ee; border-radius: 10px;
  padding: 11px 13px; font-size: 14px; color: var(--ink);
  outline: none; background: #fafbfd; transition: .15s;
}
.a-field input:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(253, 104, 83, .14); }
.a-pass { position: relative; }
.a-pass input { padding-right: 44px; }
.a-eye {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; color: #a7adbe;
  width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.a-eye:hover { color: var(--brand-deep); background: #fff1ed; }

/* 验证码行：输入框 + 发送按钮 */
.a-code { display: flex; gap: 8px; }
.a-code input { flex: 1; min-width: 0; letter-spacing: 3px; }
.a-send {
  flex-shrink: 0; border: 1px solid var(--brand); background: #fff;
  color: var(--brand-deep); border-radius: 10px; padding: 0 14px;
  font-size: 13px; font-weight: 600; white-space: nowrap; transition: .15s;
}
.a-send:hover:not(:disabled) { background: var(--brand); color: #fff; }
.a-send:disabled { border-color: #e2e5ee; color: #a7adbe; cursor: not-allowed; background: #fafbfd; }
.a-tip { margin-top: 8px; padding: 8px 13px; border-radius: 9px; font-size: 12.5px; }
.a-tip.ok { background: #eefaf3; border: 1px solid #bfe8d2; color: #0d9e5b; }
.a-tip.err { background: #fff1f0; border: 1px solid #ffccc7; color: #cf2b1f; }

.a-btn {
  margin-top: 22px; width: 100%; border: 0; border-radius: 11px;
  padding: 12px; font-size: 15.5px; font-weight: 700; letter-spacing: 6px; color: #fff;
  background: var(--brand-grad);
  box-shadow: 0 8px 18px rgba(253, 104, 83, .35);
  transition: .15s;
}
.a-btn:hover { filter: brightness(1.07); transform: translateY(-1px); }

.a-links { margin-top: 16px; display: flex; justify-content: space-between; font-size: 13px; }
.a-links a { color: var(--brand-deep); font-weight: 600; }
.a-links a:hover { text-decoration: underline; }
.a-links .muted { color: var(--muted); font-weight: 400; }
.a-cap { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 12px; color: #a3a8b8; text-align: center; }
.a-cap a { color: var(--brand-deep); }
.auth-foot { margin-top: 18px; font-size: 13px; color: var(--muted); }
.auth-foot a:hover { color: var(--brand-deep); }

/* ---------- 个人中心公共骨架（详细样式见 user.css） ---------- */
.uc-page { min-height: 100vh; display: flex; flex-direction: column; }
.uc-top { background: #fff; border-bottom: 1px solid var(--line); }
.uc-top-inner { height: 60px; display: flex; align-items: center; justify-content: space-between; }
.uc-top-links { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.uc-top-links a:hover { color: var(--brand-deep); }
.uc-out { color: #cf2b1f !important; }
.uc-note {
  margin-top: 16px; padding: 10px 14px; border-radius: 9px; font-size: 12.5px;
  background: #fff8e6; border: 1px solid #ffe3a3; color: #8a6116;
}
.uc-foot { padding: 18px; text-align: center; font-size: 12px; color: #a3a8b8; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-side { padding: 26px 28px; }
  .side-main h1 { font-size: 36px; }
  .side-feats { margin-top: 14px; }
  .side-stat { margin-top: 14px; }
  .auth-main { padding: 30px 18px 44px; }
  .uc-grid { grid-template-columns: 1fr; }
}
