/* ============ 登录 / 注册 页 ============ */
.auth-body { background: #fff; }
.auth-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }

/* 左侧品牌区 */
.auth-side {
  position: relative; background: linear-gradient(155deg, #0d1f3c 0%, #16305e 60%, #1b3a73 100%);
  color: #fff; padding: 40px 54px; display: flex; flex-direction: column; overflow: hidden;
}
.auth-side .brand { position: relative; z-index: 2; }
.auth-side-main { margin: auto 0; position: relative; z-index: 2; max-width: 460px; }
.auth-side-main h1 { font-size: 40px; font-weight: 800; line-height: 1.25; letter-spacing: 1px; }
.auth-side-main h1 span { color: var(--gold); }
.auth-side-main p { color: rgba(255,255,255,.78); font-size: 15px; margin-top: 18px; }
.auth-stats { display: flex; gap: 40px; margin-top: 40px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.15); }
.auth-stats b { font-size: 30px; font-weight: 800; color: #fff; display: block; line-height: 1; }
.auth-stats b i { color: var(--gold); font-style: normal; }
.auth-stats span { font-size: 13px; color: rgba(255,255,255,.7); }
.auth-watermark {
  position: absolute; bottom: -30px; left: 40px; font-size: 180px; font-weight: 900;
  color: rgba(255,255,255,.04); letter-spacing: 8px; z-index: 1; user-select: none;
}
.auth-brand-foot { position: relative; z-index: 2; display: flex; align-items: baseline; gap: 10px; }
.auth-brand-foot b { font-size: 18px; color: var(--gold); }
.auth-brand-foot span { font-size: 13px; color: rgba(255,255,255,.65); }

/* 右侧表单区 */
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px; background: #fbfcfe; }
.auth-card { width: 100%; max-width: 440px; }
.auth-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.auth-head h2 { font-size: 26px; font-weight: 800; color: var(--ink); }
.auth-head p { color: var(--gray); font-size: 14px; margin-top: 6px; }
.auth-switch { font-size: 13px; color: var(--gray); white-space: nowrap; }
.auth-switch a { color: var(--blue); font-weight: 600; }

.wechat-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer;
  font-size: 15px; font-weight: 500; color: var(--ink); transition: all .15s;
}
.wechat-btn:hover { border-color: #09bb07; background: #f6fff5; }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--gray-2); font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* 表单 */
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-form > label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.auth-form label i { color: #e2574c; font-style: normal; }
.field { position: relative; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 0 12px; transition: border-color .15s, box-shadow .15s; }
.field svg { color: var(--gray-2); flex: none; }
.field input { flex: 1; border: none; outline: none; font: inherit; font-weight: 400; padding: 12px 10px; background: transparent; color: var(--ink); min-width: 0; }
.field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,214,.12); }
.pass-toggle { background: none; border: none; cursor: pointer; color: var(--gray-2); padding: 4px; display: grid; place-items: center; flex: none; }
.pass-toggle:hover { color: var(--blue); }
.pass-toggle.on { color: var(--blue); }
.auth-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-group { display: flex; gap: 12px; }
.field-group .field { flex: 1; }
.captcha-img { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; cursor: pointer; background: #f3f5f9; flex: none; }
.captcha-text { font-family: Menlo, monospace; font-size: 20px; font-weight: 700; letter-spacing: 3px; font-style: italic; color: #33405a; text-decoration: line-through; text-decoration-color: rgba(0,0,0,.25); user-select: none; }
.captcha-img i { font-style: normal; font-size: 12px; color: var(--blue); }
.code-btn { flex: none; padding: 0 16px; font-size: 14px; }
.code-btn:disabled { background: var(--gray-2); cursor: not-allowed; }

.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; }
.checkbox { display: flex; align-items: center; gap: 8px; color: var(--gray); font-weight: 400 !important; }
.checkbox input { width: 15px; height: 15px; accent-color: var(--blue); }
.checkbox a { color: var(--blue); }
.link-muted { color: var(--blue); white-space: nowrap; }
.btn-block { width: 100%; padding: 14px; font-size: 16px; }
.auth-foot { text-align: center; color: var(--gray-2); font-size: 12px; margin-top: 22px; }
/* ====== 小怪物动画 ====== */
.auth-side-monsters {
  background:
    linear-gradient(155deg, #0d1f3c 0%, #16305e 55%, #214485 100%);
}
.auth-side-monsters::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 40px 40px; z-index: 1;
}
.monsters { position: relative; z-index: 2; margin: auto 0; display: flex; align-items: flex-end; justify-content: center; gap: 18px; height: 340px; }
.monster { position: relative; }
.monster .m-body { position: absolute; inset: 0; z-index: 1; }
.monster .m-face { position: absolute; z-index: 2; display: flex; gap: 10px; left: 50%; transform: translateX(-50%); }
.eye {
  width: 26px; height: 26px; border-radius: 50%; background: #fff; position: relative;
  display: grid; place-items: center; box-shadow: inset 0 -2px 4px rgba(0,0,0,.08);
  transition: height .18s ease, transform .18s ease;
}
.pupil { width: 11px; height: 11px; border-radius: 50%; background: #16181d; transition: transform .08s linear; }

/* 捂眼睛：眼睛被压扁 + 手升起 */
.monsters.cover .eye { height: 5px; }
.hands { position: absolute; z-index: 3; left: 50%; transform: translateX(-50%); width: 100%; pointer-events: none; }
.hand {
  position: absolute; width: 30px; height: 30px; border-radius: 50%;
  opacity: 0; transition: all .22s cubic-bezier(.34,1.3,.64,1);
}
.monsters.cover .hand { opacity: 1; }

/* 紫色高个 */
.m-purple { width: 92px; height: 300px; }
.m-purple .m-body { background: #7b55e0; border-radius: 46px 46px 10px 10px; }
.m-purple .m-face { top: 34px; }
.m-purple .hands .hand { background: #6a46cb; top: 30px; }
.m-purple .hl { left: 6px; } .m-purple .hr { right: 6px; }
.monsters.cover .m-purple .hl { transform: translate(18px,8px); }
.monsters.cover .m-purple .hr { transform: translate(-18px,8px); }

/* 黑色方块 */
.m-dark { width: 92px; height: 210px; }
.m-dark .m-body { background: #23262e; border-radius: 16px; }
.m-dark .m-face { top: 30px; }
.m-dark .hands .hand { background: #15171c; top: 26px; }
.m-dark .hl { left: 8px; } .m-dark .hr { right: 8px; }
.monsters.cover .m-dark .hl { transform: translate(16px,6px); }
.monsters.cover .m-dark .hr { transform: translate(-16px,6px); }

/* 橙色圆 */
.m-orange { width: 118px; height: 150px; }
.m-orange .m-body { background: #ef8f5a; border-radius: 60px 60px 18px 18px; }
.m-orange .m-face { top: 44px; }
.m-orange .hands .hand { background: #e07b42; top: 40px; width: 34px; height: 34px; }
.m-orange .hl { left: 10px; } .m-orange .hr { right: 10px; }
.monsters.cover .m-orange .hl { transform: translate(22px,6px); }
.monsters.cover .m-orange .hr { transform: translate(-22px,6px); }

/* 黄色 */
.m-yellow { width: 104px; height: 128px; }
.m-yellow .m-body { background: #e9d14e; border-radius: 52px 52px 16px 16px; }
.m-yellow .m-face { top: 34px; }
.m-yellow .m-mouth { position: absolute; top: 40px; left: 50%; transform: translateX(-50%); width: 30px; height: 4px; background: #16181d; border-radius: 3px; }
.m-yellow .hands .hand { background: #d4bb3a; top: 38px; width: 32px; height: 32px; }
.m-yellow .hl { left: 6px; } .m-yellow .hr { right: 6px; }
.monsters.cover .m-yellow .hl { transform: translate(20px,4px); }
.monsters.cover .m-yellow .hr { transform: translate(-20px,4px); }

/* 响应式：窄屏隐藏左栏 */
@media (max-width: 900px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-main { background: #fff; min-height: 100vh; }
}
@media (max-width: 520px) {
  .auth-row-2 { grid-template-columns: 1fr; }
  .field-group { flex-direction: column; }
  .captcha-img, .code-btn { align-self: flex-start; }
  .auth-head { flex-direction: column; gap: 8px; }
}

