/* 登录 / 注册页（亮色，与站点首页 index/view/index/index.html 同一套视觉：#f6f8fc 底、#2563eb 主色、无动效） */
html, body { height: 100%; }
body {
    margin: 0;
    background: #f6f8fc;
    color: #1f2937;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { color: #2563eb; }
a:hover, a:focus { color: #1d4ed8; text-decoration: none; }

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

/* 左：品牌面板 */
.auth-side {
    position: relative; flex: 0 0 44%; max-width: 620px;
    display: flex; flex-direction: column; padding: 40px 56px;
    background:
        radial-gradient(ellipse 600px 320px at 10% 0%, rgba(59, 130, 246, 0.16), transparent 60%),
        radial-gradient(ellipse 500px 300px at 100% 100%, rgba(129, 140, 248, 0.14), transparent 60%),
        #eef3ff;
    border-right: 1px solid #e3e8f0;
    background-size: cover;
}
.auth-side:after {
    content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
    background-size: 56px 56px;
}
.auth-side > * { position: relative; z-index: 1; }
.auth-brand { font-size: 19px; font-weight: 700; letter-spacing: 1px; color: #0f172a; }
.auth-brand:hover { color: #0f172a; }
.auth-brand .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3b82f6; margin-right: 10px; vertical-align: middle; box-shadow: 0 0 8px rgba(59, 130, 246, 0.6); }
.auth-brand .tld { color: #94a3b8; font-weight: 500; }
.auth-pitch { margin: auto 0; padding: 40px 0; }
.auth-pitch h1 { margin: 0; font-size: 36px; line-height: 1.3; font-weight: 800; color: #0f172a; letter-spacing: 1px; }
.auth-pitch h1 .accent {
    background: linear-gradient(90deg, #2563eb 0%, #7c3aed 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: #2563eb;
}
.auth-pitch .lead { margin: 16px 0 0; font-size: 15px; line-height: 1.8; color: #64748b; max-width: 420px; }
.auth-pts { list-style: none; margin: 28px 0 0; padding: 0; }
.auth-pts li { display: flex; align-items: flex-start; gap: 12px; margin-top: 14px; font-size: 14px; color: #334155; }
.auth-pts li b {
    flex: none; width: 24px; height: 24px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: #2563eb; background: #fff; border: 1px solid #c7d7fb;
}
.auth-pts li span { line-height: 24px; }
.auth-pts li em { display: block; font-style: normal; font-size: 12px; color: #94a3b8; line-height: 1.6; }
.auth-side-ft { font-size: 12px; color: #94a3b8; }

/* 右：表单 */
.auth-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card {
    width: 100%; max-width: 400px; padding: 36px 36px 28px;
    background: #fff; border: 1px solid #e3e8f0; border-radius: 16px;
    box-shadow: 0 24px 60px rgba(30, 58, 138, 0.10), 0 2px 6px rgba(15, 23, 42, 0.04);
}
.auth-card h2 { margin: 0; font-size: 24px; font-weight: 700; color: #0f172a; }
.auth-card .hint { margin: 8px 0 26px; font-size: 13px; color: #94a3b8; }
.auth-mobile-brand { display: none; margin-bottom: 22px; }

.auth-card .input-group { width: 100%; margin-bottom: 16px; }
.auth-card .input-group .input-group-addon {
    width: 44px; background: #f8fafc; color: #94a3b8;
    border: 1px solid #dbe2ec; border-right: none; border-radius: 8px 0 0 8px;
    transition: border-color .2s, color .2s, background .2s;
}
.auth-card .form-control {
    height: 44px; font-size: 14px; color: #0f172a; box-shadow: none;
    border: 1px solid #dbe2ec; border-left: none; border-radius: 0 8px 8px 0; padding-left: 6px;
    transition: border-color .2s;
}
.auth-card .form-control::placeholder { color: #a8b3c4; }
.auth-card .input-group:focus-within .input-group-addon { border-color: #2563eb; color: #2563eb; background: #eef3ff; }
.auth-card .input-group:focus-within .form-control { border-color: #2563eb; box-shadow: none; }
.auth-card .input-group:focus-within { box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); border-radius: 8px; }
/* 验证码：输入框在三格组中间 */
.auth-card .input-group input[name="captcha"] { border-radius: 0; border-right: none; }
.auth-card .captcha-img { padding: 0 !important; cursor: pointer; overflow: hidden; border: 1px solid #dbe2ec; border-left: none; border-radius: 0 8px 8px 0; background: #fff; width: auto; }
.auth-card .input-group:focus-within .captcha-img { border-color: #2563eb; }
.auth-card .captcha-img { width: 112px; }
.auth-card .captcha-img img { display: block; width: 112px; height: 42px; object-fit: fill; }

.auth-card .checkbox { margin: 2px 0 18px; }
.auth-card .checkbox label { font-size: 13px; color: #64748b; padding-left: 0; }
.auth-card .checkbox input { position: static; margin: 0 4px 0 0; vertical-align: -2px; }

.auth-btn {
    height: 46px; font-size: 15px; font-weight: 600; letter-spacing: .5px;
    color: #fff; background: #2563eb; border: none; border-radius: 10px;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition: background .2s, box-shadow .2s;
}
.auth-btn:hover, .auth-btn:focus, .auth-btn:active { color: #fff; background: #1d4ed8; box-shadow: 0 8px 22px rgba(37, 99, 235, 0.34); outline: none; }
.auth-btn[disabled] { background: #93b4f5; box-shadow: none; }

#errtips { margin-bottom: 14px; }
.auth-foot { margin-top: 20px; padding-top: 18px; border-top: 1px solid #eef1f6; text-align: center; font-size: 13px; color: #94a3b8; }
.auth-foot a { font-weight: 600; }
.auth-back { margin-top: 16px; text-align: center; font-size: 12px; }
.auth-back a { color: #94a3b8; }
.auth-back a:hover { color: #475569; }

/* 登录页沿用 FastAdmin 的上次登录头像节点（index.js 写入），新版不展示 */
#profile-img, #profile-name { display: none; }

@media (max-width: 900px) {
    .auth-side { display: none; }
    .auth-mobile-brand { display: block; }
}
@media (max-width: 480px) {
    .auth-main { padding: 24px 16px; align-items: flex-start; }
    .auth-card { padding: 28px 22px 22px; border-radius: 14px; }
}
