@charset "utf-8";

/* 登录页：深色科技背景 + 右侧白色卡片（参考 mediation_system 设计语言） */
.login-page {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 7%;
    box-sizing: border-box;
    overflow: hidden;
}
/* 左侧深蓝渐变蒙层：压暗背景保证白字清晰 */
.login-page::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(100deg, rgba(6, 24, 56, .58) 0%, rgba(6, 24, 56, .28) 40%, rgba(6, 24, 56, 0) 65%);
    pointer-events: none;
}

/* 左上角品牌区 */
.brand {
    position: absolute;
    top: 32px;
    left: 7%;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1E6FFF, #38B6FF);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(30, 111, 255, .45);
}
.brand-logo img {width: 30px; height: 30px; object-fit: contain;}
.brand-name {font-size: 22px; font-weight: 700; letter-spacing: 1px; color: #FFF; text-shadow: 0 1px 10px rgba(0, 20, 60, .4);}

/* 左侧主标题 + 标语 + 功能块（白字） */
.login-hero {
    position: relative;
    z-index: 1;
    max-width: 360px;
    color: #FFF;
}
.hero-title {
    margin: 0;
    font-size: 52px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 3px;
    color: #FFF;
    text-shadow: 0 2px 18px rgba(0, 20, 60, .45);
}
.hero-sub {
    margin: 22px 0 0 0;
    display: flex;
    align-items: center;
    font-size: 17px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, .92);
    text-shadow: 0 1px 10px rgba(0, 20, 60, .4);
}

/* 功能图标块：半透明深蓝方块 */
.hero-features {
    display: flex;
    gap: 16px;
    margin-top: 34px;
}
.feature {
    width: 96px;
    padding: 16px 0 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border-radius: 12px;
    background: rgba(13, 45, 92, .55);
    border: 1px solid rgba(120, 180, 255, .28);
    box-shadow: 0 8px 20px rgba(2, 15, 40, .35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.feature-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8FC6FF;
}
.feature-label {font-size: 12px; letter-spacing: 1px; color: rgba(255, 255, 255, .92); white-space: nowrap;}

/* 右侧白色登录卡 */
.login-card-wrap {
    position: relative;
    z-index: 3;
    width: 400px;
    flex-shrink: 0;
}
.login-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 40px 36px 36px;
    box-shadow: 0 24px 60px rgba(2, 15, 40, .45);
    box-sizing: border-box;
}
.login-card-head {margin-bottom: 26px;}
.login-title {font-size: 26px; font-weight: 700; color: #17233D; letter-spacing: 1px;}
.login-sub {font-size: 13px; color: #7B8AA5; margin-top: 8px;}

/* 错误提示 */
.alert {
    display: flex;
    align-items: center;
    min-height: 36px;
    line-height: 36px;
    padding: 0 12px;
    font-size: 12px;
    margin-bottom: 14px;
    background: #FDECEC;
    color: #E74A25;
    border-radius: 8px;
    box-sizing: border-box;
}
.alert.layui-none {display: none;}
.alert i {margin-right: 8px;}

/* 输入框 */
.field {position: relative; margin-bottom: 18px;}
.field input {
    width: 100%;
    height: 48px;
    border: 1px solid #DDE6F2;
    border-radius: 10px;
    padding: 0 16px;
    font-size: 14px;
    background: #F7FAFF;
    color: #17233D;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field input:focus {
    border-color: #1E6FFF;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(30, 111, 255, .12);
}

/* 记住我 */
.br-text {font-size: 12px; padding: 0 0 8px; color: #7B8AA5;}
.br-text input {float: left; margin: 2px 5px 0 0;}

/* 登录按钮：深蓝渐变胶囊 */
.login-btn {
    width: 100%;
    height: 50px;
    margin-top: 12px;
    border: none;
    border-radius: 25px;
    background: #1E6FFF;
    color: #FFF;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 8px;
    text-indent: 8px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(20, 90, 230, .4);
    font-family: inherit;
    transition: all .2s ease;
}
.login-btn:hover {
    box-shadow: 0 14px 30px rgba(20, 90, 230, .5);
    filter: brightness(1.06);
}

/* 二维码折叠 */
.layui-text-right {padding: 0; font-size: 12px; text-align: center; border: none; margin-top: 14px;}
.layui-text-right a, .layui-text-right a span {display: inline-block; line-height: 30px; color: #AAA; margin-bottom: 3px; cursor: pointer;}
.layui-text-right .layui-icon {float: left; margin-right: 5px;}
.layui-text-right a span.closed {display: none;}
.be-con {width: 100%; padding: 20px 0 0; font-size: 12px; text-align: center; border-top: 1px solid #EEE; display: none;}
.be-con span {line-height: 30px; display: inline-block; margin-top: 5px;}
.be-con .code img {width: 120px;}

/* 底部版权 */
.login-footer {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    z-index: 1;
    text-align: center;
    font-size: 11px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, .55);
}

/* 背景主视觉：深蓝科技感（参考 mediation_system） */
.bg {width: 100%; height: 100%; background: url(../images/login_bg_v3.png) no-repeat; background-size: cover; background-position: center; position: fixed; top: 0; left: 0; z-index: 1;}

/* 小屏适配：上下堆叠 */
@media (max-width: 900px) {
    .login-page {
        flex-direction: column;
        justify-content: center;
        gap: 36px;
        padding: 92px 24px 60px;
    }
    .brand {top: 24px; left: 24px;}
    .login-hero {max-width: 100%; text-align: center;}
    .hero-title {font-size: 34px;}
    .hero-sub {justify-content: center;}
    .hero-features {justify-content: center;}
    .login-card-wrap {width: 100%; max-width: 400px;}
}
