/* ===== 拼客魔方 · 登录 / 注册页（v2 深色：与工作台 console.css 同一主题族） =====
   变量与 --pk-* 对齐：深底 + 暖橙主色 + 点阵质感，登录前后观感一致。 */
:root {
  --bg: #0c0d10;
  --card: #131418;
  --field: #1b1d22;
  --line: rgba(255, 235, 226, .09);
  --line-strong: rgba(255, 235, 226, .16);
  --ink: #e9efec;
  --ink-2: #b9c8c4;
  --ink-3: #83736d;
  /* 品牌四色（彩块用） */
  --lime: #c6ff3a;
  --teal: #2ad4d4;
  --amber: #f5b544;
  --blaze: #ff6a3d;
  /* 工作台主色（与 --pk-teal/--pk-coral 同源） */
  --accent: #ff6a3d;
  --accent-bright: #ff8a5f;
  /* 语义 */
  --danger: #ff9c8a;
  --ok: #7ed491;
  /* 动效 */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.pk-auth-page {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 8% -6%, rgba(255, 99, 57, .17), transparent 60%),
    radial-gradient(760px 460px at 6% 112%, rgba(42, 212, 212, .11), transparent 62%),
    radial-gradient(640px 420px at 46% 118%, rgba(245, 181, 68, .08), transparent 60%),
    radial-gradient(700px 420px at 102% 8%, rgba(255, 99, 57, .09), transparent 55%),
    linear-gradient(180deg, #0c0d10, #12141a 46%, #0c0d10);
  position: relative;
}
/* 点阵质感（与工作台大厅同一手法，固定间距不随页面缩放） */
.pk-auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(0, 0, 0, .35) 1px, transparent 1.6px);
  background-size: 26px 26px;
}

.pk-auth-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(430px, 37vw, 560px);
  align-items: stretch;
  gap: 0;
  padding: 0;
}
/* 左侧整片区域淡淡的格子线底纹：铺满整个左半屏（左列宽），径向渐隐 */
.pk-auth-shell::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc(100% - clamp(430px, 37vw, 560px));
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 235, 226, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 235, 226, .05) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(125% 130% at 28% 42%, #000 32%, transparent 92%);
  mask-image: radial-gradient(125% 130% at 28% 42%, #000 32%, transparent 92%);
}

/* ---------- 左侧品牌区 ---------- */
.pk-auth-art {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 580px;
  justify-self: center;
  align-self: center;
  padding: 60px 36px;
}
.pk-auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  font-size: 21px;
  color: var(--ink);
  text-decoration: none;
}
/* 魔方块标：2×2 绿块 */
.brand-badge {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Crect x='3' y='3' width='16' height='16' rx='4.5' fill='%23c6ff3a'/%3E%3Crect x='21' y='3' width='16' height='16' rx='4.5' fill='%23b8f02e'/%3E%3Crect x='3' y='21' width='16' height='16' rx='4.5' fill='%23d3f763'/%3E%3Crect x='21' y='21' width='16' height='16' rx='4.5' fill='%233b6d11'/%3E%3C/svg%3E") center / 40px 40px no-repeat;
  filter: drop-shadow(0 2px 8px rgba(198, 255, 58, .22));
}
.pk-auth-eyebrow {
  display: inline-block;
  margin-top: 36px;
  font-size: 13px;
  letter-spacing: 2.5px;
  color: var(--accent-bright);
  font-weight: 500;
}
.pk-auth-copy h1 {
  font-size: 34px;
  line-height: 1.35;
  color: var(--ink);
  margin: 14px 0 14px;
  font-weight: 600;
}
.pk-auth-copy p {
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.75;
  margin: 0;
}

/* 魔方四色能力块：彩块卡，旋转归位入场 */
.pk-auth-preview { margin-top: 40px; }
.pk-auth-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-3);
}
.pk-auth-preview-head b {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--lime);
  background: rgba(198, 255, 58, .12);
  border: 1px solid rgba(198, 255, 58, .28);
}
.pk-auth-cubes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.pk-cube {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-radius: 20px;
  animation: cube-in .6s var(--ease) backwards;
  animation-delay: calc(var(--d) * 90ms + 120ms);
}
.pk-cube b {
  font-size: 11px;
  font-weight: 600;
  opacity: .72;
  font-family: "JetBrains Mono", Consolas, monospace;
}
.pk-cube span { font-size: 15.5px; font-weight: 500; }
.pk-cube.is-lime  { background: var(--lime);  color: #101208; }
.pk-cube.is-teal  { background: var(--teal);  color: #04322e; }
.pk-cube.is-amber { background: var(--amber); color: #412402; }
.pk-cube.is-blaze { background: var(--blaze); color: #4a1b0c; }
@keyframes cube-in {
  from { transform: rotate(90deg) scale(.9); opacity: 0; }
  to   { transform: rotate(0deg) scale(1); opacity: 1; }
}

/* 行业老板口碑长条卡：四色圆标 + 数据文案（单行显示） */
.pk-auth-proof {
  margin-top: 16px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 106, 61, .10), rgba(42, 212, 212, .06)),
    var(--card);
  border: 1px solid var(--line);
}
.pk-proof-faces { display: flex; flex: none; padding-left: 9px; }
.pk-proof-faces span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  border: 2px solid var(--card);
  margin-left: -9px;
}
.pk-proof-faces span:first-child { margin-left: 0; }
.pk-proof-faces .is-lime  { background: var(--lime);  color: #101208; }
.pk-proof-faces .is-teal  { background: var(--teal);  color: #04322e; }
.pk-proof-faces .is-amber { background: var(--amber); color: #412402; }
.pk-proof-faces .is-blaze { background: var(--blaze); color: #fff7f3; }
.pk-auth-proof p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-2);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pk-auth-proof p b { color: var(--ink); font-weight: 600; }
.pk-auth-proof p .num { color: var(--accent-bright); }

/* ---------- 右侧表单区（独立隔出的区域：左分隔线 + 局部高亮底） ---------- */
.pk-auth-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 48px 44px 18px;
  border-left: 1px solid var(--line-strong);
  background:
    radial-gradient(560px 300px at 50% -10%, rgba(255, 99, 57, .12), transparent 62%),
    radial-gradient(420px 260px at 100% 108%, rgba(42, 212, 212, .08), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, .028), rgba(255, 255, 255, .006));
}
.pk-auth-panel .pk-auth-box { margin: auto 0; }
.pk-auth-copyright {
  margin: 18px 0 0;
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
}
.pk-auth-box {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .42);
}
.pk-auth-kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 2.5px;
  color: var(--accent-bright);
  font-weight: 500;
}
.pk-auth-box h2 {
  color: var(--ink);
  font-size: 20px;
  margin: 8px 0 6px;
  font-weight: 600;
}
.pk-auth-box .sub {
  color: var(--ink-2);
  font-size: 14px;
  margin: 0 0 24px;
}
.form-row { margin-bottom: 16px; }
.form-row > label {
  display: block;
  font-size: 12px;
  color: var(--ink-2);
  margin-bottom: 8px;
  font-weight: 500;
}
.form-row input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: var(--field);
  color: var(--ink);
  transition: border-color .12s, box-shadow .12s;
}
.form-row input::placeholder { color: var(--ink-3); }
.form-row input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 106, 61, .22);
}

/* 验证码 */
.captcha-control { display: flex; gap: 10px; align-items: stretch; }
.captcha-control input { flex: 1; min-width: 0; }
.captcha-image {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--field);
  padding: 0;
  cursor: pointer;
  width: 128px;
  height: 40px;
  overflow: hidden;
  display: inline-flex;
  flex: 0 0 auto;
  transition: border-color .12s;
}
.captcha-image:hover { border-color: var(--accent); }
.captcha-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pk-auth-hint {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-3);
}

/* 主按钮：工作台同款橙色实底 + 白字 + 暖光投影 */
.btn-primary {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff7a4d, #ff6339);
  color: #fff7f3;
  font-size: 15px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
  box-shadow: 0 6px 18px rgba(255, 99, 57, .32);
  transition: filter .12s, transform .12s, box-shadow .12s;
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-primary:active { filter: brightness(.95); transform: translateY(1px); box-shadow: none; }
.btn-primary:disabled { opacity: .4; cursor: not-allowed; }

.form-msg {
  margin-top: 14px;
  font-size: 12px;
  min-height: 18px;
  color: var(--danger);
}
.auth-links {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ink-2);
}
.auth-links a {
  color: var(--accent-bright);
  text-decoration: none;
  font-weight: 500;
}
.auth-links a:hover { color: #ffa582; text-decoration: underline; }

/* 窄屏兜底：单列，隐藏左侧装饰（PC 优先，仅防破版） */
@media (max-width: 880px) {
  .pk-auth-shell { grid-template-columns: 1fr; }
  .pk-auth-art { display: none; }
  .pk-auth-panel {
    min-height: 100vh;
    border-left: none;
    padding: 36px 22px 18px;
  }
}
/* 无障碍：用户偏好减少动效时全部关闭 */
@media (prefers-reduced-motion: reduce) {
  .pk-cube { animation: none; }
}


/* ===== 全站按钮形状统一：圆角矩形（对齐插件商店按钮），圆角随按钮字号自动缩放 =====
   大号按钮圆角更大、小号按钮圆角更小；开关/滑块/圆形勾选等保持原状。 */
:root { --pk-btn-r: clamp(7px, 0.72em, 13px); }
button:not([role="switch"]):not(.dh-admin-vip-toggle):not(.toggle):not(.switch):not(.is-circle),
.pk-store-chip, .pk-more-chip, .pk-ind-pill, .pk-store-clear,
.work-chip, .mb-chip, .mb-pill, .deco-tool-tabs button, .module-tabs button {
  border-radius: var(--pk-btn-r) !important;
}
