@charset "utf-8";
/* ==========================================================================
   登录页（Login/Index）专用样式
   全部视觉由 CSS / 内联 SVG 绘制，不再依赖 logininfo.png、loginuser.png、
   loginpassword.png 等背景切图，避免内容变化后出现错位。
   仅在 Login/Index.cshtml 中引用，类名统一 lp- 前缀，不影响 style.css。
   ========================================================================== */

.lp-body {
    margin: 0;
    min-width: 0;
    min-height: 100%;
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
    color: #22364a;
    background-color: #eef5fb;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow-x: hidden;
    overflow-y: auto;
}
/* 页面骨架 */
.lp-page {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-sizing: border-box;
}

/* ---------------- 顶部 ---------------- */
.lp-top {
    flex: 0 0 auto;
    padding: 0 32px;
    background: rgba(255, 255, 255, .74);
    border-bottom: 1px solid rgba(180, 208, 228, .55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.lp-top-inner {
    max-width: 1240px;
    margin: 0 auto;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.lp-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

    .lp-logo img {
        display: block;
        height: 34px;
        width: auto;
        border: 0;
    }

.lp-top-right {
    font-size: 13px;
    color: #6b8299;
    letter-spacing: .5px;
    white-space: nowrap;
}

    .lp-top-right b {
        color: #1c77ac;
        font-weight: 600;
    }

/* ---------------- 中部 ---------------- */
.lp-stage {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 34px 24px;
    box-sizing: border-box;
}

/* 主卡片 */
.lp-card {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 880px;
    min-height: 470px;
    background: #fff;
    border: 1px solid rgba(214, 231, 244, .9);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 26px 60px -18px rgba(19, 73, 110, .28), 0 2px 6px rgba(19, 73, 110, .06);
    transition: max-width .28s ease;
}

/* 扫码栏出现时卡片整体变宽，表单列宽度保持不变 */
.lp-card.has-scan {
    max-width: 1080px;
}

/* 左侧品牌区 */
.lp-brand {
    position: relative;
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 42px 30px 28px;
    box-sizing: border-box;
    color: #eaf6ff;
    background: linear-gradient(158deg, #0b4d78 0%, #12699b 44%, #2a8fbe 100%);
    overflow: hidden;
}

    .lp-brand::after {
        content: "";
        position: absolute;
        right: -80px;
        top: -100px;
        width: 280px;
        height: 280px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(255, 255, 255, .30), rgba(255, 255, 255, 0) 68%);
        pointer-events: none;
    }

.lp-brand-art {
    position: absolute;
    right: -58px;
    bottom: -54px;
    width: 286px;
    height: 286px;
    opacity: .85;
    pointer-events: none;
}

.lp-brand-body {
    position: relative;
    z-index: 2;
}

.lp-brand-kicker {
    font-family: Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
    color: rgba(214, 238, 252, .7);
    margin-bottom: 14px;
}

.lp-brand-name {
    margin: 0 0 14px;
    font-size: 23px;
    line-height: 1.45;
    font-weight: 600;
    letter-spacing: 1px;
    color: #fff;
    word-break: break-word;
}

.lp-brand-desc {
    margin: 0;
    font-size: 13px;
    line-height: 2;
    color: rgba(219, 240, 253, .82);
}

.lp-brand-foot {
    position: relative;
    z-index: 2;
    font-size: 12px;
    letter-spacing: .5px;
    color: rgba(200, 230, 249, .62);
}

/* 表单容器（<form> 直接作为卡片子元素） */
.lp-form {
    flex: 1 1 auto;
    display: flex;
    min-width: 0;
}

.lp-panel {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 42px 52px 36px;
    box-sizing: border-box;
}

.lp-panel-hd {
    margin-bottom: 24px;
}

    .lp-panel-hd h2 {
        display: inline-block;
        margin: 0;
        font-size: 22px;
        font-weight: 600;
        letter-spacing: 2px;
        color: #1b2e3f;
    }

    .lp-panel-hd span {
        display: inline;
        margin-left: 10px;
        font-family: Arial, sans-serif;
        font-size: 12px;
        letter-spacing: 1px;
        color: #a3b4c2;
    }

/* 输入行 */
.lp-field {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    padding: 0 12px;
    box-sizing: border-box;
    background: #f8fbfd;
    border: 1px solid #d9e4ee;
    border-radius: 10px;
    transition: border-color .18s, box-shadow .18s, background .18s;
}

    .lp-field + .lp-field {
        margin-top: 14px;
    }

    .lp-field:focus-within {
        background: #fff;
        border-color: #3c92c4;
        box-shadow: 0 0 0 3px rgba(28, 119, 172, .12);
    }

.lp-field-ico {
    flex: 0 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #93a9bb;
    transition: color .18s;
}

.lp-field:focus-within .lp-field-ico {
    color: #1c77ac;
}

.lp-field-ico svg {
    display: block;
}

.lp-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    color: #22364a;
}

    .lp-input::placeholder {
        font-size: 13px;
        color: #a8b8c6;
    }

    .lp-input:-webkit-autofill,
    .lp-input:-webkit-autofill:hover,
    .lp-input:-webkit-autofill:focus {
        -webkit-box-shadow: 0 0 0 40px #f8fbfd inset;
        -webkit-text-fill-color: #22364a;
        transition: background-color 9999s ease-in-out 0s;
    }

/* 密码显示切换 */
.lp-eye {
    flex: 0 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9fb1c0;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

    .lp-eye:hover,
    .lp-eye.is-on {
        color: #1c77ac;
    }

/* 验证码行 */
.lp-field-code {
    padding-right: 5px;
}

.lp-captcha {
    flex: 0 0 112px;
    width: 112px;
    height: 38px;
    box-sizing: border-box;
    border: 1px solid #dbe6ef;
    border-radius: 6px;
    background: #f1f7fb;
    cursor: pointer;
    object-fit: cover;
    display: block;
}

    .lp-captcha:not([src]) {
        background: #f1f7fb url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M4 12a8 8 0 1 1 2.3 5.6' fill='none' stroke='%23c2d3e0' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;
        color: transparent;
    }

/* 错误提示 */
.lp-error {
    min-height: 20px;
    line-height: 20px;
    margin: 10px 2px 0;
    font-size: 12px;
    color: #e0483c;
}

/* 按钮区 */
.lp-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
}

.lp-btn {
    flex: 1 1 auto;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 4px;
    text-indent: 4px;
    color: #fff;
    background: linear-gradient(135deg, #2f9ac9 0%, #1c77ac 55%, #12628f 100%);
    box-shadow: 0 10px 22px -10px rgba(20, 105, 155, .85);
    transition: filter .18s, transform .12s, box-shadow .18s;
}

    .lp-btn:hover {
        filter: brightness(1.06);
        box-shadow: 0 12px 26px -10px rgba(20, 105, 155, .95);
    }

    .lp-btn:active {
        transform: translateY(1px);
    }

    .lp-btn[disabled] {
        opacity: .6;
        cursor: not-allowed;
        box-shadow: none;
    }

.lp-forgot {
    flex: 0 0 auto;
    font-size: 13px;
    color: #7690a5;
    text-decoration: none;
}

    .lp-forgot:hover {
        color: #1c77ac;
        text-decoration: none;
    }

/* ---------------- 扫码登录（卡片内右侧栏） ---------------- */
.lp-scan {
    flex: 0 0 200px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 24px 16px;
    box-sizing: border-box;
    background: #f5fafd;
    border-left: 1px solid #e3edf6;
}

.lp-scan.is-visible {
    display: flex;
}

.lp-scan-hd {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #1b2e3f;
}

.lp-scan-hd svg {
    display: block;
    color: #1c77ac;
}

.lp-scan-box {
    display: flex;
    padding: 10px;
    background: #fff;
    border: 1px solid #e6eef6;
    border-radius: 12px;
    box-shadow: 0 8px 18px -14px rgba(19, 73, 110, .55);
}

.lp-scan-tip {
    font-size: 12px;
    line-height: 1.6;
    color: #8fa3b4;
    text-align: center;
}

#qrcode {
    display: none;
    line-height: 0;
}

    #qrcode canvas,
    #qrcode img {
        display: block;
        border-radius: 4px;
    }

/* ---------------- 底部 ---------------- */
.lp-foot {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 24px 22px;
}

.lp-foot-qrs {
    display: flex;
    align-items: center;
    gap: 36px;
    margin-bottom: 6px;
}

.lp-foot-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

    .lp-foot-qr img {
        display: block;
        width: 60px;
        height: 60px;
        padding: 2px;
        box-sizing: border-box;
        border: 1px solid rgba(190, 214, 231, .85);
        border-radius: 8px;
        background: #fff;
        cursor: pointer;
    }

    .lp-foot-qr em {
        font-style: normal;
        font-size: 12px;
        line-height: 1;
        color: #67809a;
    }

.lp-foot-line {
    font-size: 12px;
    line-height: 20px;
    color: #8499ab;
    text-align: center;
}

    .lp-foot-line a {
        color: #8499ab;
    }

        .lp-foot-line a:hover {
            color: #1c77ac;
        }

    .lp-foot-line img {
        vertical-align: -2px;
        margin-right: 4px;
    }

/* ---------------- 响应式 ---------------- */
/* 1024×768 起仍保留三栏：收窄品牌栏与表单内边距，把宽度让给扫码栏 */
@media (max-width: 1180px) {
    .lp-brand {
        flex: 0 0 250px;
        padding: 36px 24px 26px;
    }

    .lp-brand-name {
        font-size: 20px;
    }

    .lp-panel {
        padding: 38px 36px 32px;
    }
}

/* 单列模式：左侧品牌与右侧扫码栏都放不下，一并收起 */
@media (max-width: 900px) {
    .lp-scan {
        display: none !important;
    }

    .lp-top {
        padding: 0 18px;
    }

    .lp-top-inner {
        height: 56px;
    }

    .lp-logo img {
        height: 28px;
    }

    .lp-top-right {
        display: none;
    }

    .lp-stage {
        padding: 24px 16px;
    }

    .lp-card,
    .lp-card.has-scan {
        max-width: 480px;
        min-height: 0;
        border-radius: 16px;
    }

    .lp-brand {
        display: none;
    }

    .lp-panel {
        padding: 34px 26px 30px;
    }
}

/* 1024×768 等矮屏：压缩上下留白，保证整页不出现纵向滚动 */
@media (max-height: 820px) {
    .lp-stage {
        padding: 16px 20px;
    }

    .lp-card {
        min-height: 420px;
    }

    .lp-panel {
        padding-top: 30px;
        padding-bottom: 26px;
    }

    .lp-foot {
        gap: 5px;
        padding: 10px 20px 14px;
    }

    .lp-foot-qrs {
        margin-bottom: 2px;
    }
}
