/* =====================================================
   客服平台 · 科技淡雅皮肤 (登录页 v6)
   主视觉：AI真人客服形象全屏背景
   登录卡片：深蓝科技面板风，与主图数据面板融为一体
   备案号：底部保留显示（合规必需）
   覆盖原 login.css，HTML/JS 零改动
   回滚：删除本文件引用即可
   ===================================================== */

body {
    background: #dcebfa;
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- 整体：主视觉全屏背景 ---------- */
#bg-body {
    width: 100%;
    max-width: none;
    min-width: 0;
    min-height: 100vh;
    background: url('/application/user/static/images/skin/kefu_dash.jpg?v=44') no-repeat center center;
    background-size: cover;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 轻遮罩：仅右侧压暗以突出面板，左侧保持明亮通透 */
#bg-body::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg,
        rgba(255,255,255,.00) 0%,
        rgba(255,255,255,.00) 45%,
        rgba(190,220,250,.12) 60%,
        rgba(160,205,245,.25) 100%);
    pointer-events: none;
    z-index: 1;
}
#bg-body::after {
    content: none;
}

/* ---------- 顶部：隐藏文字与 Logo ---------- */
.n_header {
    width: 100%;
    height: 84px;
    position: relative;
    z-index: 2;
    flex: none;
}
.n_header > img {
    display: none;
}
.n_headerright {
    display: none;
}

/* ---------- 主体区 ---------- */
.n_main {
    background: transparent;
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: center;
}
.n_mainshow {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    height: auto;
    min-height: 0;
    padding: 0 6%;
    position: relative;
    display: flex;
    justify-content: flex-end;   /* 面板靠右 */
    padding-right: 11%;
    align-items: flex-start;   /* 面板上移 */
    padding-top: 1%;
    margin-top: -18%;
}

/* 隐藏原 banner 大图与左侧图 */
.n_mainshow > img {
    display: none;
}
.n_mainshow::before {
    content: none;
}
.n_mainshow::after {
    content: none;
}

/* ---------- 登录卡片：白色半透明玻璃面板（参考图白色数据面板质感） ---------- */
.l_maindata {
    background: linear-gradient(160deg, rgba(255,255,255,.88) 0%, rgba(248,251,255,.82) 55%, rgba(238,245,255,.78) 100%);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    backdrop-filter: blur(16px) saturate(1.4);
    border-radius: 16px;
    padding: 34px 44px 38px;
    width: 410px;
    border: 1px solid rgba(255,255,255,.9);
    box-shadow:
        0 24px 60px rgba(6,16,40,.30),
        0 0 0 1px rgba(180,210,255,.35),
        0 4px 20px rgba(47,107,255,.08);
    position: relative;
    z-index: 3;
    margin-right: 6%;
}

/* 面板顶部细亮线（玻璃质感高光） */
.l_maindata::before {
    content: "";
    position: absolute;
    top: 0;
    left: 12px;
    right: 12px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,1), transparent);
}

/* 面板顶部科技光点装饰 */
.l_maindata::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(80,160,255,.75), rgba(38,198,218,.6), transparent);
    border-radius: 14px 14px 0 0;
}

.l_datatitle.dflex {
    justify-content: center;
    margin-bottom: 26px;
}
.l_datatitle a {
    font-size: 24px;
    color: #1f3a5f;
    font-weight: 700;
    letter-spacing: 6px;
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}
.l_datatitle a.active {
    color: #7db2ff;
    position: relative;
}
.l_datatitle a.active::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 30px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, #2f6bff, #26c6da);
    box-shadow: 0 0 8px rgba(47,107,255,.6);
}

/* ---------- 输入框：白底浅边框 ---------- */
.layui-form .layui-form-item {
    height: 48px;
    border-radius: 8px;
    border: 1px solid #d8e2f0;
    background: rgba(255,255,255,.95);
    margin-bottom: 16px;
    transition: border-color .25s, box-shadow .25s;
}
.layui-form .layui-form-item.active {
    border-color: #2f6bff;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(47,107,255,.12);
}
.layui-form .layui-form-item label.layui-form-label img {
    opacity: .65;
}
.layui-form .layui-form-item input.larry-input {
    height: 46px;
    font-size: 14px;
    color: #1f3a5f !important;
}
.layui-form .layui-form-item input.larry-input:focus {
    color: #1f3a5f !important;
}
input::-webkit-input-placeholder {
    color: #9ab0c8 !important;
}

/* 验证码 */
#larry_code .code {
    top: 3px;
    left: 158px;
    background: #ffffff;
    border: 1px solid #dfe7f2;
    border-radius: 6px;
}
#larry_code .code-img {
    width: 96px;
    height: 36px;
    top: 1px;
    right: 1px;
    border-radius: 5px;
    overflow: hidden;
}
#larry_code input.larry-input {
    color: #1f3a5f !important;
}

/* ---------- 忘记密码 ---------- */
.forgetpw {
    margin-top: -6px;
    margin-bottom: 8px;
    text-align: right;
}
.forgetpw a {
    font-size: 12px;
    color: #8aa0bc;
}
.forgetpw a:hover {
    color: #2f6bff;
}

/* ---------- 登录按钮 ---------- */
.layui-form .layui-form-item.setmargin {
    margin-top: 24px;
}
.setmargin button {
    height: 48px;
    font-size: 16px;
    letter-spacing: 4px;
    border-radius: 8px;
    background-image: linear-gradient(135deg, #2f6bff 0%, #4d8bff 50%, #26c6da 100%);
    box-shadow: 0 10px 26px rgba(47,107,255,.30);
    transition: transform .15s, box-shadow .25s;
}
.setmargin button:hover {
    box-shadow: 0 14px 32px rgba(47,107,255,.40);
    transform: translateY(-1px);
}

/* ---------- 底部：备案号（合规必需） ---------- */
.n_footer {
    display: flex !important;
    width: 100%;
    height: 64px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    flex: none;
    align-items: center;
}
.n_footer.dflex {
    justify-content: center;
    font-size: 12px;
    color: rgba(235,244,255,.55);
    letter-spacing: 1px;
}
.n_footer a {
    color: rgba(235,244,255,.55);
    text-decoration: none;
}
.n_footer a:hover {
    color: #7db2ff;
}

/* ---------- 小屏适配 ---------- */
@media screen and (max-width: 1366px) {
    .l_maindata { padding: 28px 38px 32px; width: 380px; }
}
@media screen and (max-width: 1024px) {
    .n_mainshow { justify-content: flex-end; padding-right: 11%; align-items: flex-start; padding-top: 1%; }
    .l_maindata { width: 90%; max-width: 400px; margin-right: 0; }
}
