/* 豆角 · 登录 / 注册等认证页样式 */

*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  color:#1f2329;background:#f6f8fb;-webkit-font-smoothing:antialiased;
}
a{color:#3b6ef6;text-decoration:none}
a:hover{text-decoration:underline}

.auth-page{display:flex;min-height:100vh}

/* 左侧品牌区 */
.auth-side{
  width:46%;max-width:640px;position:relative;overflow:hidden;color:#fff;
  background:linear-gradient(150deg,#2f5fe0 0%,#3b6ef6 45%,#6d9bff 100%);
  display:flex;flex-direction:column;justify-content:space-between;padding:48px;
}
.auth-side::after{
  content:"";position:absolute;right:-120px;bottom:-140px;width:420px;height:420px;border-radius:50%;
  background:rgba(255,255,255,.12);
}
.auth-side::before{
  content:"";position:absolute;left:-90px;top:-120px;width:320px;height:320px;border-radius:50%;
  background:rgba(255,255,255,.10);
}
.auth-side .brand{display:flex;align-items:center;gap:12px;position:relative;z-index:2}
/* 蓝底上的站点 Logo：保留原色，垫一层白色圆角底板保证对比度。
   以前用 filter:brightness(0) invert(1) 把彩色 Logo 压成纯白剪影，
   品牌色全丢了，用户传的绿色 Logo 看起来就是一块白斑。 */
.auth-side .brand img{
  height:32px;max-width:200px;object-fit:contain;
  background:#fff;padding:7px 12px;border-radius:11px;
  box-shadow:0 4px 14px rgba(9,32,77,.16);
}
.auth-side .brand .dj-logo-text{font-size:24px;font-weight:700;letter-spacing:1px}
.auth-side .slogan{position:relative;z-index:2;margin-top:auto}
.auth-side .slogan h2{font-size:34px;line-height:1.4;font-weight:600;margin-bottom:16px}
.auth-side .slogan p{font-size:15px;line-height:1.9;opacity:.85;max-width:380px}
.auth-side .feats{position:relative;z-index:2;display:flex;flex-wrap:wrap;gap:10px;margin-top:34px}
.auth-side .feats span{
  background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.22);
  padding:6px 14px;border-radius:20px;font-size:13px;backdrop-filter:blur(4px);
}
.auth-side .copy{position:relative;z-index:2;font-size:12px;opacity:.7;margin-top:28px}

/* 右侧表单区 */
.auth-main{flex:1;display:flex;align-items:center;justify-content:center;padding:40px 24px;background:#fff}
.auth-box{width:100%;max-width:400px}
.auth-box h1{font-size:24px;font-weight:600;margin-bottom:8px}
.auth-box .sub{font-size:14px;color:#86909c;margin-bottom:28px}

.field{margin-bottom:18px}
.field label{display:block;font-size:13px;color:#4e5969;margin-bottom:7px;font-weight:500}
.field .ipt{
  width:100%;padding:12px 14px;border:1px solid #e2e5ea;border-radius:10px;font-size:14px;
  background:#f7f8fa;outline:none;transition:.18s;font-family:inherit;
}
.field .ipt:focus{background:#fff;border-color:#3b6ef6;box-shadow:0 0 0 3px rgba(59,110,246,.12)}
.field .ipt::placeholder{color:#b6bcc6}
.field-row{display:flex;gap:12px}
.field-row .field{flex:1}

.btn-primary{
  width:100%;padding:13px;border:none;border-radius:10px;background:#3b6ef6;color:#fff;
  font-size:15px;font-weight:500;cursor:pointer;transition:.18s;font-family:inherit;
}
.btn-primary:hover{background:#2f5fe0}
.btn-primary:disabled{opacity:.6;cursor:not-allowed}
.btn-primary.loading{position:relative;color:transparent}
.btn-primary.loading::after{
  content:"";position:absolute;left:50%;top:50%;width:18px;height:18px;margin:-9px 0 0 -9px;
  border:2px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:spin .7s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg)}}

.auth-links{display:flex;justify-content:space-between;align-items:center;margin-top:18px;font-size:13px}
.auth-foot{text-align:center;font-size:13px;color:#86909c;margin-top:26px}
.auth-foot a{font-weight:500}

.alert{border-radius:10px;padding:11px 14px;font-size:13.5px;margin-bottom:18px;line-height:1.6}
.alert.err{background:#ffece8;color:#cb2634;border:1px solid #fdcdc5}
.alert.ok{background:#e8ffea;color:#0f8a2b;border:1px solid #aff0b5}
.alert.info{background:#eaf3ff;color:#1d5fd0;border:1px solid #bedaff}

.captcha-row{display:flex;align-items:center;gap:12px}
.captcha-q{
  display:inline-flex;align-items:center;justify-content:center;min-width:96px;height:44px;
  background:#eef3ff;color:#2f5fe0;border-radius:10px;font-size:15px;font-weight:600;letter-spacing:1px;
}

.checkbox{display:flex;align-items:flex-start;gap:8px;font-size:13px;color:#4e5969;margin-bottom:20px;line-height:1.6}
.checkbox input{margin-top:3px;width:15px;height:15px;accent-color:#3b6ef6}

/* 极验 4.0 验证组件 */
.geetest-wrap{margin-bottom:18px}
.geetest-wrap #geetest-box{min-height:44px}
.geetest-wrap #geetest-btn{width:100%;min-width:0;height:42px;margin-bottom:0}
/* 极验自带的 bind 按钮：刻意不用 .btn-code，避免被 auth.js 的
   「获取验证码」事件委托误捕获（那完全是另一个动作） */
.btn-gt{
  width:100%;height:42px;border:1px solid #3b6ef6;background:#fff;color:#3b6ef6;
  border-radius:10px;font-size:13.5px;cursor:pointer;transition:.18s;font-family:inherit;
}
.btn-gt:hover:not(:disabled){background:#eef3ff}
.btn-gt:disabled{background:#f4f6f9;border-color:#e2e5ea;color:#a8aeb8;cursor:not-allowed}
.geetest-tip{font-size:12.5px;color:#86909c;margin-top:8px;line-height:1.6}
.geetest-tip.ok{color:#0f8a2b}
.geetest-tip.err{color:#cb2634}
.geetest-wrap .geetest_holder{width:100% !important}

/* ---------------- 登录方式切换 ---------------- */
.auth-tabs{
  display:flex;gap:4px;background:#f4f6f9;border-radius:11px;padding:4px;margin-bottom:22px;
}
.auth-tabs button{
  flex:1;padding:9px 6px;border:none;background:none;border-radius:8px;font-size:13.5px;color:#4e5969;
  cursor:pointer;transition:.18s;font-family:inherit;white-space:nowrap;
}
.auth-tabs button:hover{color:#3b6ef6}
.auth-tabs button.active{background:#fff;color:#3b6ef6;font-weight:600;box-shadow:0 1px 4px rgba(31,35,41,.09)}

.auth-pane{display:none}
.auth-pane.active{display:block;animation:fadePane .2s ease}
@keyframes fadePane{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}

/* ---------------- 验证码输入行 ---------------- */
.code-row{display:flex;gap:10px;align-items:stretch}
.code-row .ipt{flex:1;min-width:0}
.btn-code{
  flex:0 0 auto;padding:0 16px;border:1px solid #3b6ef6;background:#fff;color:#3b6ef6;
  border-radius:10px;font-size:13.5px;cursor:pointer;transition:.18s;font-family:inherit;
  white-space:nowrap;min-width:112px;
}
.btn-code:hover:not(:disabled){background:#eef3ff}
.btn-code:disabled{background:#f4f6f9;border-color:#e2e5ea;color:#a8aeb8;cursor:not-allowed}
.btn-code.counting{font-variant-numeric:tabular-nums;font-size:13px}

.divider{display:flex;align-items:center;gap:14px;color:#c0c6cf;font-size:12px;margin:24px 0}
.divider::before,.divider::after{content:"";flex:1;height:1px;background:#eceef1}

.dj-flash{
  position:fixed;top:20px;left:50%;transform:translateX(-50%);z-index:99;
  padding:11px 20px;border-radius:10px;font-size:14px;box-shadow:0 6px 24px rgba(0,0,0,.12);
  background:#fff;color:#1f2329;animation:drop .3s ease;
}
.dj-flash-success{background:#e8ffea;color:#0f8a2b;border:1px solid #aff0b5}
.dj-flash-error{background:#ffece8;color:#cb2634;border:1px solid #fdcdc5}
.dj-flash-info{background:#eaf3ff;color:#1d5fd0;border:1px solid #bedaff}
@keyframes drop{from{opacity:0;transform:translate(-50%,-12px)}to{opacity:1;transform:translate(-50%,0)}}

@media(max-width:900px){
  .auth-side{display:none}
  .auth-main{background:#f6f8fb;align-items:flex-start;padding-top:56px}
  .auth-box{background:#fff;border-radius:16px;padding:28px 22px;box-shadow:0 6px 26px rgba(31,35,41,.07)}
}
/* ============================================================
   二次元随机背景（登录页左栏）
   注意：权威副本在 includes/acg.php 的 acg_css()（由 page_head 内联输出），
   这里放一份是为了「只传了 CSS、没传 PHP」时也不至于完全没样式。两边请保持一致。
   ============================================================ */
.auth-side.has-acg{background:#2f5fe0}
.auth-side.has-acg::before,
.auth-side.has-acg::after{display:none}
.auth-acg{
  position:absolute;inset:0;background-image:var(--acg-img);
  background-size:cover;background-position:center;background-repeat:no-repeat;z-index:0;
}
.auth-acg::after{
  content:"";position:absolute;inset:0;
  background:
    linear-gradient(180deg,
      rgba(12,32,96,var(--acg-a,.78)) 0%,
      rgba(12,32,96,0) 26%,
      rgba(12,32,96,0) 38%,
      rgba(12,32,96,var(--acg-a,.78)) 72%,
      rgba(12,32,96,var(--acg-a,.78)) 100%),
    linear-gradient(165deg,
      rgba(47,95,224,var(--acg-b,.48)) 0%,
      rgba(109,155,255,var(--acg-b,.48)) 100%);
}
@media(max-width:900px){
  .auth-page.has-acg{position:relative;background:#f6f8fb}
  .auth-page.has-acg::before{
    content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
    background-image:var(--acg-img);background-size:cover;background-position:center 30%;
    opacity:calc(var(--acg-soft,.85) * .8);
  }
  .auth-page.has-acg .auth-main{position:relative;z-index:1;background:none}
}