@charset "UTF-8";
/* ==========================================================================
   后台登录页样式（律所官网管理后台）
   设计语言与前台 front.css 保持一致：深海军蓝（权威）× 黄铜金（点缀），
   标题采用宋体、正文用无衬线，动效克制。左侧品牌区承载律所信息与能力概览，
   右侧为登录表单；两者在小屏下依次堆叠。
   自包含样式表：不依赖 Bootstrap / Hplus / 前台样式，也不影响后台其他页面。
   ========================================================================== */

:root {
    /* 深蓝家族：品牌区底色与正文标题用色 */
    --navy: #16264a;
    --navy-dark: #0e1a30;
    --navy-ink: #0a1322;
    --navy-soft: #24365f;

    /* 金铜家族：点缀色，只用在线条、记号与关键信息上 */
    --gold: #b8945f;
    --gold-deep: #9a7742;
    --gold-ink: #86682f;
    --brass: #8f6d3b;
    --brass-deep: #6d5228;
    --gold-light: #d8bd8b;
    --gold-line: rgba(184, 148, 95, .34);

    /* 中性色：偏暖的纸色，接近纸质文书的质感 */
    --text: #26313f;
    --text-light: #5f6b7c;
    --text-mute: #8b95a3;
    --line: #e6e1d8;
    --line-strong: #d9d2c5;
    --danger: #c0392b;

    --radius: 8px;
    --radius-sm: 6px;
    --shadow-md: 0 14px 34px rgba(14, 26, 48, .10);
    --shadow-navy: 0 12px 26px rgba(14, 26, 48, .22);

    --font-serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, "Times New Roman", serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;

    --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.login-page {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   整体布局：左品牌 / 右表单
   ========================================================================== */

.login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    min-height: 100vh;
    min-height: 100dvh;
}

/* --------------------------------------------------------------------------
   品牌侧：深蓝底 + 金色经纬线 + 天平水印
   -------------------------------------------------------------------------- */

.brand-pane {
    position: relative;
    display: flex;
    overflow: hidden;
    padding: 58px 64px;
    color: #fff;
    background:
        radial-gradient(120% 90% at 88% 4%, rgba(184, 148, 95, .22) 0%, rgba(184, 148, 95, 0) 56%),
        radial-gradient(90% 70% at 4% 98%, rgba(36, 54, 95, .9) 0%, rgba(36, 54, 95, 0) 62%),
        linear-gradient(158deg, #16264a 0%, #0e1a30 54%, #0a1322 100%);
}

/* 细金网格：极低对比度，向四周淡出，避免大面积深色显得空 */
.brand-pane::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(216, 189, 139, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(216, 189, 139, .08) 1px, transparent 1px);
    background-size: 92px 92px;
    -webkit-mask-image: radial-gradient(118% 88% at 66% 34%, #000 0%, rgba(0, 0, 0, .35) 62%, transparent 88%);
    mask-image: radial-gradient(118% 88% at 66% 34%, #000 0%, rgba(0, 0, 0, .35) 62%, transparent 88%);
    pointer-events: none;
}

/* 天平水印 */
.brand-watermark {
    position: absolute;
    right: -78px;
    bottom: -70px;
    width: 460px;
    height: 460px;
    color: var(--gold-light);
    opacity: .075;
    pointer-events: none;
}

.brand-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 44px;
    width: 100%;
    max-width: 552px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    width: fit-content;
    color: inherit;
    text-decoration: none;
}

.brand-mark {
    flex: none;
    width: 46px;
    height: 46px;
    color: var(--gold-light);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.brand-name {
    font-family: var(--font-serif);
    font-size: 25px;
    letter-spacing: .12em;
    color: #fff;
}

.brand-sub {
    margin-top: 4px;
    font-size: 11px;
    letter-spacing: .34em;
    color: rgba(216, 189, 139, .88);
}

.brand-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    font-size: 13px;
    letter-spacing: .2em;
    color: var(--gold-light);
}

.brand-eyebrow::before {
    content: "";
    width: 26px;
    height: 1px;
    background: var(--gold-line);
}

.brand-title {
    margin: 0 0 18px;
    font-family: var(--font-serif);
    font-size: 42px;
    font-weight: 600;
    line-height: 1.34;
    letter-spacing: .06em;
    color: #fff;
}

.brand-desc {
    max-width: 30em;
    margin: 0 0 32px;
    font-size: 15px;
    line-height: 1.95;
    color: rgba(255, 255, 255, .72);
}

.brand-points {
    display: grid;
    gap: 13px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.brand-points li {
    position: relative;
    padding-left: 24px;
    font-size: 15px;
    color: rgba(255, 255, 255, .9);
}

/* 金色菱形记号，与前台栏目标记同一套语言 */
.brand-points li::before {
    content: "";
    position: absolute;
    top: .74em;
    left: 5px;
    width: 6px;
    height: 6px;
    background: var(--gold);
    transform: rotate(45deg);
}

.brand-foot {
    padding-top: 24px;
    border-top: 1px solid rgba(216, 189, 139, .18);
    font-size: 13px;
    line-height: 1.9;
    color: rgba(255, 255, 255, .55);
}

.brand-copy { margin: 0; }

.brand-note {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    margin: 4px 0 0;
}

/* --------------------------------------------------------------------------
   表单侧
   -------------------------------------------------------------------------- */

.form-pane {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 48px;
    background: #fff;
}

.back-home {
    position: absolute;
    top: 30px;
    right: 40px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-light);
    text-decoration: none;
    transition: color .2s var(--ease);
}

.back-home:hover { color: var(--gold-ink); }

.form-inner {
    width: 100%;
    max-width: 396px;
}

.form-head { margin-bottom: 30px; }

.form-head h2 {
    margin: 0 0 10px;
    font-family: var(--font-serif);
    font-size: 30px;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--navy);
}

.form-head p {
    margin: 0;
    font-size: 14px;
    color: var(--text-light);
}

/* ---------- 输入框 ---------- */

.field { margin-bottom: 18px; }

.field-label {
    display: block;
    margin-bottom: 9px;
    font-size: 13px;
    letter-spacing: .04em;
    color: var(--text-light);
}

.field-control {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.field-control:hover { border-color: #c4bcac; }

.field-control:focus-within {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(22, 38, 74, .1);
}

/* 校验失败：由 login.js 的 highlight 回调挂上 has-error */
.field-control.has-error {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(192, 57, 43, .08);
}

.field-icon {
    flex: none;
    width: 18px;
    height: 18px;
    margin-right: 11px;
    color: var(--text-mute);
    transition: color .2s var(--ease);
}

.field-control:focus-within .field-icon { color: var(--navy); }
.field-control.has-error .field-icon { color: var(--danger); }

.field-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 46px;
    padding: 0;
    border: 0;
    background: none;
    font-family: inherit;
    font-size: 15px;
    color: var(--text);
    outline: none;
}

.field-input::placeholder { color: #a9b1bc; }

/* Chrome 自动填充的底色会盖住设计，这里改回白底深字 */
.field-input:-webkit-autofill,
.field-input:-webkit-autofill:hover,
.field-input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text);
    box-shadow: inset 0 0 0 100px #fff;
}

/* 密码可见性切换 */
.pwd-toggle {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-right: -5px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: none;
    color: var(--text-mute);
    cursor: pointer;
    transition: color .2s var(--ease), background-color .2s var(--ease);
}

.pwd-toggle:hover {
    color: var(--navy);
    background: rgba(22, 38, 74, .06);
}

.pwd-toggle:focus-visible {
    outline: 2px solid var(--navy);
    outline-offset: 1px;
}

.pwd-toggle .icon-eye-off { display: none; }
.pwd-toggle.is-on .icon-eye { display: none; }
.pwd-toggle.is-on .icon-eye-off { display: block; }

/* 校验提示：菱形记号 + 文案，落在输入框下方 */
label.error {
    display: block;
    margin: 7px 0 0;
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--danger);
}

label.error::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-right: 6px;
    vertical-align: middle;
    background: currentColor;
    transform: rotate(45deg);
}

/* ---------- 图形验证码 ---------- */

.field-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 12px;
}

/* 两列结构一致（字段名 + 输入区），底边自然对齐，图片列无需额外对齐规则 */

.captcha-box {
    position: relative;
    display: block;
    width: 100%;
    height: 48px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: #fff;
    cursor: pointer;
    transition: border-color .2s var(--ease);
}

.captcha-box:hover { border-color: var(--gold); }

.captcha-box:focus-visible {
    outline: 2px solid var(--navy);
    outline-offset: 2px;
}

.captcha-box .imgcode {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.captcha-mask {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    letter-spacing: .1em;
    color: #fff;
    background: rgba(10, 19, 34, .64);
    opacity: 0;
    transition: opacity .2s var(--ease);
}

.captcha-box:hover .captcha-mask,
.captcha-box:focus-visible .captcha-mask { opacity: 1; }

/* ---------- 附加选项 ---------- */

.form-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    min-height: 22px;
    margin: 2px 0 22px;
}

.checkbox {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    color: var(--text-light);
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

/* 直接美化原生 checkbox：控件本身就是点击目标，键盘与读屏行为与浏览器一致 */
.checkbox input {
    flex: none;
    width: 16px;
    height: 16px;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid var(--line-strong);
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s var(--ease), background-color .2s var(--ease);
}

.checkbox:hover input { border-color: var(--navy-soft); }

.checkbox input:checked {
    border-color: var(--navy);
    background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.6 8.4 6.4 11.2 12.4 5.2'/%3E%3C/svg%3E") center/12px 12px no-repeat;
}

.checkbox input:focus-visible {
    outline: 2px solid var(--navy);
    outline-offset: 2px;
}

/* 大写锁定提示：仅密码框输入时出现 */
.caps-hint {
    display: none;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: var(--gold-ink);
}

.caps-hint.is-on { display: inline-flex; }

.caps-hint::before {
    content: "";
    width: 0;
    height: 0;
    border-right: 4px solid transparent;
    border-bottom: 6px solid currentColor;
    border-left: 4px solid transparent;
}

.meta-hint {
    margin-left: auto;
    font-size: 12.5px;
    color: var(--text-mute);
}

/* ---------- 提交按钮 ---------- */

.submit {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 50px;
    overflow: hidden;
    font-family: inherit;
    font-size: 16px;
    letter-spacing: .18em;
    color: #fff;
    background: linear-gradient(135deg, var(--navy-soft) 0%, var(--navy) 46%, var(--navy-dark) 100%);
    border: 1px solid rgba(216, 189, 139, .38);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-navy);
    cursor: pointer;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s var(--ease);
}

.submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(14, 26, 48, .28);
}

.submit:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(14, 26, 48, .24);
}

.submit:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

/* 掠过式高光，与前台主按钮同一套动效语言 */
.submit::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 45%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .26), transparent);
    transform: skewX(-18deg);
    transition: left .6s var(--ease);
}

.submit:hover::after { left: 120%; }

.submit.is-loading {
    pointer-events: none;
    filter: saturate(.92) brightness(.96);
}

.submit-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .34);
    border-top-color: #fff;
    border-radius: 50%;
    animation: login-spin .7s linear infinite;
}

.submit.is-loading .submit-spinner { display: inline-block; }

@keyframes login-spin {
    to { transform: rotate(360deg); }
}

/* ---------- 表单页脚 ---------- */

.form-register {
    margin: 18px 0 0;
    font-size: 14px;
    text-align: center;
    color: var(--text-light);
}

.form-register a {
    color: var(--gold-ink);
    text-decoration: none;
    border-bottom: 1px solid var(--gold-line);
    transition: color .2s var(--ease), border-color .2s var(--ease);
}

.form-register a:hover {
    color: var(--brass-deep);
    border-bottom-color: var(--brass);
}

.form-foot {
    margin: 26px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 12.5px;
    line-height: 1.8;
    color: var(--text-mute);
}

/* ==========================================================================
   与后台组件的衔接：遮罩层与 layer 弹窗
   （登录页不再加载 ry-ui.css，这里补上这里用到的少数组件样式）
   ========================================================================== */

/* $.modal.loading 使用的 blockUI 遮罩内容 */
.loaderbox {
    display: inline-block;
    min-width: 125px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 400;
    text-align: center;
    color: #fff !important;
    background: rgba(10, 19, 34, .88);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
}

.loaderbox .loading-activity {
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-right: 8px;
    vertical-align: -2px;
    border: 2px solid rgba(255, 255, 255, .3);
    border-top-color: var(--gold-light);
    border-radius: 50%;
    animation: login-spin .7s linear infinite;
}

/* layer 皮肤统一为页面配色：深蓝胶囊提示 */
body .layui-layer {
    font-family: var(--font-sans) !important;
    border-radius: var(--radius);
}

body .layui-layer-msg,
body .layer-ext-moon-msg {
    min-width: 100px;
    color: #fff;
    background-color: rgba(10, 19, 34, .88);
    border: none;
}

body .layer-ext-moon-msg .layui-layer-content {
    padding: 12px 25px;
    text-align: center;
    color: #fff;
}

/* ==========================================================================
   入场动效与小屏适配
   ========================================================================== */

@keyframes rise-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

.form-head { animation: rise-in .5s var(--ease) both; }
#signupForm > * { animation: rise-in .5s var(--ease) both; }
#signupForm > *:nth-child(2) { animation-delay: .06s; }
#signupForm > *:nth-child(3) { animation-delay: .12s; }
#signupForm > *:nth-child(4) { animation-delay: .18s; }
#signupForm > *:nth-child(5) { animation-delay: .24s; }

@media screen and (max-width: 1180px) {
    .brand-pane { padding: 46px 44px; }
    .brand-title { font-size: 34px; }
    .brand-watermark { right: -96px; bottom: -84px; width: 360px; height: 360px; }
    .brand-inner { max-width: 480px; }
}

@media screen and (max-width: 900px) {
    .login-shell { grid-template-columns: minmax(0, 1fr); }

    .brand-pane { padding: 30px 26px 32px; }
    .brand-inner { gap: 20px; max-width: none; }
    .brand-mark { width: 38px; height: 38px; }
    .brand-name { font-size: 21px; }
    .brand-eyebrow { margin-bottom: 10px; font-size: 12px; letter-spacing: .16em; }
    .brand-title { margin-bottom: 0; font-size: 25px; }
    /* 小屏首屏留给表单：简介、要点与版权让位 */
    .brand-desc,
    .brand-points,
    .brand-foot { display: none; }
    .brand-watermark { right: -110px; bottom: -120px; width: 300px; height: 300px; }

    .form-pane {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 34px 24px 46px;
    }

    .back-home {
        position: static;
        align-self: flex-end;
        margin-bottom: 18px;
    }

    .form-inner { margin: 0 auto; }
}

@media screen and (max-width: 420px) {
    .form-pane { padding: 26px 18px 38px; }

    .field-row { grid-template-columns: minmax(0, 1fr) 112px; gap: 10px; }

    .form-head h2 { font-size: 26px; }

    .meta-hint { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .field-control,
    .field-icon,
    .captcha-box,
    .captcha-mask,
    .checkbox input,
    .pwd-toggle,
    .back-home,
    .submit,
    .submit::after {
        transition: none;
    }

    .submit:hover { transform: none; }
    .submit:hover::after { left: -60%; }
    .form-head,
    #signupForm > * { animation: none; }
}
