/* ============================================================
   jdfz 主题 - 会员登录 / 注册 / 找回密码
   配色与网站一致：主色 var(--brand)，深色 var(--brand-deep)，浅底 var(--brand-tint)
   ============================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; overflow-x: hidden; }
body {
    background: #eceef2;
    font-family: var(--font-sans);
    color: var(--ink); background: #fff;
    -webkit-font-smoothing: antialiased;
}
.auth-shell { display: flex; min-height: 100vh; min-height: 100dvh; background: #e2e5ea; }

/* ===== 左侧品牌栏：纯校红，不加网格/圆环/渐变 ===== */
.auth-brand {
    position: sticky; top: 0; height: 100vh; height: 100dvh;
    flex: 0 0 44%; max-width: 580px;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 54px 56px 42px; color: #fff; overflow: hidden;
    background: var(--brand);
}
.auth-brand > * { position: relative; z-index: 1; }

html { background: #f1f2f5; overflow-x: hidden; }
/* 白色校名标识，直接压在红底上，加大尺寸保证英文副标可读 */
.auth-logo { display: block; align-self: flex-start; }
.auth-logo img { max-height: 74px; height: auto; width: auto; max-width: 100%; display: block; filter: drop-shadow(0 8px 20px rgba(0,0,0,.22)); }
.auth-logo:hover img { opacity: .92; }

.auth-brand-body { margin: 0; }
.auth-title {
    margin: 0;
    font-family: "Songti SC", "STSong", "SimSun", Georgia, "Times New Roman", serif;
    font-weight: 600; font-size: clamp(32px, 2.9vw, 44px);
    letter-spacing: .16em; line-height: 1.32;
}
/* 英文校名副标：始终单行；窄桌面按比例缩字号并收窄品牌栏留白 */
.auth-tagline {
    margin: 14px 0 0;
    font-size: clamp(8.5px, .78vw, 11.5px);
    letter-spacing: .02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: rgba(255,255,255,.72);
}
@media (min-width: 881px) and (max-width: 1200px) {
    .auth-brand { padding-left: 36px; padding-right: 36px; }
}
@media (min-width: 881px) and (max-width: 1000px) {
    .auth-brand { padding-left: 28px; padding-right: 28px; }
}
.auth-feats { margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; color: rgba(255,255,255,.85); }
.auth-feats span { display: inline-flex; align-items: center; gap: 9px; }
.auth-feats i { width: 4px; height: 4px; background: rgba(255,255,255,.75); border-radius: 50%; flex: none; }
.auth-brand-foot { margin: 0; font-size: 13px; letter-spacing: .04em; color: rgba(255,255,255,.62); }

/* ===== 右侧表单区：浅灰底 + 白卡片 ===== */
.auth-main {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 56px 28px; min-width: 0;
    background: #f4f5f7;
}
.auth-card {
    width: 100%; max-width: 400px; min-width: 0;
    background: #fff; border: 1px solid #e4e7ec; border-top: 3px solid var(--brand); border-radius: 4px;
    padding: 36px 40px 28px;
    box-shadow: 0 1px 3px rgba(36,38,42,.05);
}
.auth-card-eyebrow { display: none; }
.auth-card h2 { margin: 0 0 10px; text-align: center; font-size: 22px; font-weight: 600; color: var(--ink); letter-spacing: .04em; }
.auth-card .auth-sub { margin: 0 0 24px; text-align: center; font-size: 14px; color: var(--muted); }
/* 微信内置浏览器：隐藏卡片头部，说明文字当首行 */
.auth-card.is-wx { padding-top: 28px; }
.auth-card.is-wx .auth-sub { margin-bottom: 20px; text-align: left; font-size: 13.5px; line-height: 1.7; color: #6b6259; }
.auth-card form .layui-input-inline,
.auth-card form .layui-input-inline button { width: 100%; }
.auth-card form .verify-box input { display: inline-block; width: 60%; }
.auth-card form .verify-box img { display: inline-block; margin-left: 2%; width: 36%; height: 38px; }
.auth-card .layui-input { height: 42px; border-radius: 3px; border-color: #dcdfe4; font-size: 14px; }
.auth-card .layui-input:focus { border-color: var(--brand); }
.auth-card .layui-input-wrap:focus-within .layui-input { border-color: var(--brand); }
.auth-card :focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.auth-brand a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* 手机验证码：输入框与按钮同一行 */
.auth-card form .sms-row { position: relative; }
.auth-card form .sms-row .layui-input { padding-right: 110px; }
.auth-card form .sms-row .layui-btn {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: auto !important; height: 30px; line-height: 30px; z-index: 3;
    padding: 0 10px; font-size: 12px; border-radius: 2px; white-space: nowrap;
}

.lay-user-jump-change { float: right; font-size: 13.5px; }
/* 提交按钮与底部链接行 */
.auth-submit { width: 100%; height: 42px; line-height: 42px; border-radius: 3px; font-size: 15px; letter-spacing: .06em; }
.auth-links { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 4px; font-size: 13.5px; }
.auth-links .auth-forget { color: var(--muted); }
.auth-links .auth-forget:hover { color: var(--brand); }

.lay-link { color: var(--brand) !important; }
.lay-user-login-other { font-size: 0; line-height: 38px; }
.lay-user-login-other > * { display: inline-block; vertical-align: middle; margin-right: 10px; font-size: 14px; }
.layui-bg-red, .auth-card .layui-btn { background-color: var(--brand) !important; }
.layui-bg-red:hover, .auth-card .layui-btn:hover { background-color: var(--brand-dark) !important; }
.auth-card .layui-btn-primary { background-color: #fff !important; color: var(--brand) !important; border: 1px solid var(--brand) !important; }
.auth-card .layui-btn-primary:hover { background-color: var(--brand-tint) !important; }
.auth-copy { margin: 24px 0 0; text-align: center; font-size: 12.5px; color: var(--muted); }
.auth-copy a { color: var(--muted); }
.auth-copy a:hover { color: var(--brand); }

@media (max-width: 880px) {
    body { overflow-x: hidden; }
    .auth-shell { flex-direction: column; width: 100%; max-width: 100%; overflow-x: hidden; }
    .auth-brand { position: relative; height: auto; flex: none; max-width: none; padding: 34px 22px 32px; }
    /* 手机端品牌栏矮，圆环与外圈会横穿 logo，直接不画 */
    .auth-brand::after { display: none; }
    .auth-logo img { max-height: 42px; }
    .auth-brand-body { margin-top: 16px; }
    .auth-title { font-size: 25px; letter-spacing: .1em; }
    .auth-tagline { display: none; }
    .auth-feats { margin-top: 16px; gap: 8px 18px; font-size: 12.5px; }
    .auth-brand-foot { display: none; }
    .auth-main { width: 100%; max-width: 100%; padding: 28px 16px 42px; align-items: stretch; }
    .auth-card { width: 100%; max-width: 100%; min-width: 0; padding: 28px 20px 24px; }
    .auth-card form .layui-form-item,
    .auth-card form .layui-row,
    .auth-card form .layui-input-wrap { width: 100%; max-width: 100%; margin-left: 0; margin-right: 0; }
    .auth-card form .layui-input { width: 100%; }
    .auth-card form .verify-box input { width: 56%; }
    .auth-card form .verify-box img { width: 40%; margin-left: 2%; }
    .auth-card form .sms-row .layui-input { padding-right: 96px; }
    .auth-card form .sms-row .layui-btn { height: 34px; line-height: 34px; font-size: 12px; padding: 0 8px; }
    .auth-copy { text-align: center; }
}

@media screen and (max-width: 450px) {
    .layui-form-item .layui-input-inline { left: 0; margin: 0 0 10px 0; }
}
