* { box-sizing: border-box; }

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

body {
    background: #020b1f url("../common/bgWrap001.jpg") center center / cover no-repeat fixed;
    color: #fff;
}

/* ===== 原型图作为完整背景 ===== */
.top-logo::before,
.top-logo::after,
.scene{
    display: none !important;
}
/* ===== 左侧宣传语 ===== */
.slogan-panel {
    position: absolute;
    z-index: 3;
    left: 5.2%;
    top: 20%;
    width: 51%;
    text-align: left;
}

.slogan-panel img {
    display: block;
    width: min(620px, 100%);
    height: auto;
    filter: drop-shadow(0 3px 10px rgba(0,0,0,.25));
}

/* ===== 登录区域 ===== */
.login-form-wrapper {
    position: absolute;
    z-index: 5;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 27vh 10.0% 0 0;
}

.login-card {
    position: relative;
    width: 425px;
    padding: 0 27px 26px;
    box-sizing: border-box;

    background: rgba(9, 37, 75, .68);
    border: 1px solid rgba(120, 205, 255, .65);
    border-radius: 24px;

    box-shadow:
            0 0 8px rgba(80, 190, 255, .35),
            0 0 30px rgba(50, 150, 255, .18),
            0 24px 70px rgba(0, 0, 0, .35),
            inset 0 1px 0 rgba(255, 255, 255, .15);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    text-align: center;
}

/* 外圈亮边 */
.login-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 24px;

    border: 1px solid rgba(90, 190, 255, .35);

    box-shadow:
            0 0 8px rgba(70, 190, 255, .35),
            0 0 18px rgba(70, 170, 255, .18);

    pointer-events: none;
}

.login-header {
    margin-top: -42px;
    margin-bottom: 20px;
}

.login-header .logo-icon {
    width: 82px;
    height: 82px;
    margin: -2px auto 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    border: none;
    clip-path: none;

    filter: drop-shadow(0 8px 18px rgba(0, 110, 255, .25));
}

/* SVG 本身就是完整 Logo，不再修改颜色 */
.login-header .logo-icon img {
    display: block;
    width: 82px;
    height: 82px;

    object-fit: contain;

    filter: none;
}

.login-header .brand-title {
    margin-top: 2px;
    color: #eaf5ff;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: 2px;
    text-shadow: 0 2px 12px rgba(45,145,255,.28);
}

.login-header .brand-sub {
    display: none;
}

/* ===== 错误消息 ===== */
#messageBox {
    margin-bottom: 14px;
    padding: 9px 12px;
    border-radius: 8px;
    background: rgba(255, 76, 76, .10);
    border: 1px solid rgba(255, 112, 112, .35);
    color: #ffb7b7;
    font-size: 13px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}

#messageBox.hide { display: none; }

#messageBox .close {
    background: none;
    border: none;
    color: #8fa9c9;
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
    margin-left: auto;
    line-height: 1;
}

#messageBox .close:hover { color: #fff; }
#messageBox .error { margin: 0; }

/* ===== 输入框 ===== */
.input-with-icon {
    width: 100%;
    height: 52px;
    display: flex;
    align-items: center;
    margin-bottom: 14px;
    padding: 0 13px;
    background: rgba(3, 23, 53, .42);
    border: 1px solid rgba(102, 157, 219, .28);
    border-radius: 7px;
    transition: .25s ease;
}

.input-with-icon:focus-within {
    border-color: #2d8cff;
    background: rgba(5, 31, 69, .66);
    box-shadow: 0 0 0 3px rgba(45,140,255,.12), inset 0 0 18px rgba(32,115,255,.06);
}

.input-with-icon .icon-img {
    width: 21px;
    height: 21px;
    flex-shrink: 0;
    opacity: .88;
    filter: brightness(0) invert(1);
}

.input-with-icon input {
    min-width: 0;
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 0 11px;
    color: #eaf5ff;
    font-size: 15px;
}

.input-with-icon input::placeholder {
    color: #8299b8;
    font-size: 14px;
}

/* ===== 验证码 ===== */
.validateCode {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    text-align: left;
}

.validateCode .input-label {
    display: none;
}

.validateCode input {
    min-width: 0;
    flex: 1;
    height: 48px;
    padding: 0 12px;
    background: rgba(3, 23, 53, .42);
    border: 1px solid rgba(102, 157, 219, .28);
    border-radius: 7px;
    color: #eaf5ff;
    outline: none;
}

.validateCode img {
    height: 48px;
    border-radius: 7px;
    border: 1px solid rgba(102, 157, 219, .28);
}

/* ===== 记住密码 ===== */
.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 3px 0 18px;
}

.login-options label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #8da5c4;
    font-size: 13px;
    cursor: pointer;
}

.login-options input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #1e78ff;
    cursor: pointer;
}

.login-options .forgot-link {
    color: #377fd5;
    font-size: 13px;
    text-decoration: none;
}

.login-options .forgot-link:hover {
    color: #62a7ff;
}

/* ===== 登录按钮 ===== */
.button_bt {
    width: 100%;
    margin-top: 0;
}

.button_bt input[type="submit"] {
    position: relative;
    width: 100%;
    height: 54px;
    padding: 0 20px;
    border: 0;
    border-radius: 6px;
    color: #fff;
    background: linear-gradient(90deg, #1558ed 0%, #1679ff 52%, #1558ed 100%);
    box-shadow: 0 8px 22px rgba(17, 91, 235, .28);
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 7px;
    cursor: pointer;
    transition: .25s ease;
}

.button_bt input[type="submit"]:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(17, 105, 255, .42);
}

.button_bt input[type="submit"]:active:not(:disabled) {
    transform: translateY(0);
}

.button_bt input[type="submit"]:disabled {
    opacity: .55;
    cursor: not-allowed;
}

/* ===== Footer ===== */
.footer {
    position: absolute;
    z-index: 4;
    left: 0;
    right: 0;
    bottom: 14px;
    margin: 0;
    color: rgba(171, 195, 224, .65);
    font-size: 12px;
    line-height: 22px;
    text-align: center;
}

.footer img {
    vertical-align: middle;
    opacity: .7;
}

.footer a {
    color: rgba(171, 195, 224, .75);
}

/* 原有顶部元素不再占位 */
.header { display: none; }

@media (max-width: 900px) {
    .slogan-panel {
        left: 5%;
        top: 12%;
        width: 48%;
    }

    .login-form-wrapper {
        padding-right: 4%;
    }

    .login-card {
        width: 390px;
    }
}

@media (max-width: 700px) {
    html, body { overflow: auto; }

    .top-logo {
        position: relative;
        width: 100%;
        height: 100vh;
        min-height: 620px;

        background-image: url("../common/bgWrap001.jpg");
        background-repeat: no-repeat;
        background-position: center center;
        background-size: cover;

        overflow: hidden;
    }

    .slogan-panel {
        position: absolute;
        z-index: 20;

        left: 5%;
        top: 22%;

        width: 38%;
        max-width: 620px;
    }

    .slogan-panel img {
        display: block;
        width: 100%;
        height: auto;
    }

    .login-form-wrapper {
        height: auto;
        padding: 230px 0 0;
        justify-content: center;
    }

    .login-card {
        width: min(94vw, 425px);
        padding-left: 20px;
        padding-right: 20px;
    }

    .footer {
        position: absolute;
        bottom: 8px;
    }
}

/* ===== 账号 / 密码输入框 ===== */
.input-with-icon {
    position: relative;
    width: 100%;
    height: 54px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 15px;

    /* 深色玻璃效果 */
    background: rgba(2, 18, 43, .72);

    /* 默认边框 */
    border: 1px solid rgba(92, 151, 219, .30);
    border-radius: 8px;

    /* 内部微光 */
    box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, .035),
            inset 0 0 20px rgba(0, 80, 180, .04);

    transition:
            border-color .25s ease,
            background .25s ease,
            box-shadow .25s ease,
            transform .2s ease;
}

/* 鼠标经过 */
.input-with-icon:hover {
    border-color: rgba(80, 157, 239, .55);
    background: rgba(3, 24, 54, .82);
}

/* 获取焦点 */
.input-with-icon:focus-within {
    border-color: #318cff;
    background: rgba(4, 28, 63, .90);

    box-shadow:
            0 0 0 3px rgba(49, 140, 255, .10),
            0 0 18px rgba(27, 117, 255, .12),
            inset 0 0 22px rgba(30, 117, 255, .08);
}

/* ===== 左侧图标 ===== */
.input-with-icon .icon-img {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;

    opacity: .82;

    filter:
            brightness(0)
            invert(1);

    transition:
            opacity .25s ease,
            transform .25s ease;
}

/* 聚焦时图标稍微亮一点 */
.input-with-icon:focus-within .icon-img {
    opacity: 1;
    transform: scale(1.05);
}

/* ===== 图标与输入框之间的分隔线 ===== */
.input-with-icon::after {
    content: "";
    width: 1px;
    height: 22px;
    margin-left: 13px;
    margin-right: 2px;

    background: linear-gradient(
            to bottom,
            transparent,
            rgba(125, 177, 230, .25),
            transparent
    );
}

/* ===== 输入框 ===== */
.input-with-icon input {
    min-width: 0;
    flex: 1;

    width: 100%;
    height: 85%;

    box-sizing: border-box;

    border: none;
    outline: none;

    background: transparent;

    padding: 0 10px;

    color: #eef7ff;

    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;

    letter-spacing: .3px;
    margin-top: 10px;
}

/* placeholder */
.input-with-icon input::placeholder {
    color: #7189aa;
    font-size: 14px;
    letter-spacing: 0;
    transition: color .25s ease;
}

/* 聚焦以后 placeholder */
.input-with-icon:focus-within input::placeholder {
    color: #8099ba;
}

/* 自动填充背景处理 */
.input-with-icon input:-webkit-autofill,
.input-with-icon input:-webkit-autofill:hover,
.input-with-icon input:-webkit-autofill:focus {
    -webkit-text-fill-color: #eef7ff;

    -webkit-box-shadow:
            0 0 0 1000px rgba(3, 24, 54, .65) inset;

    transition:
            background-color 9999s ease-in-out 0s;
}

/* ===== 登录卡片四角装饰 ===== */
.login-card .card-corner {
    position: absolute;
    z-index: 2;

    width: 23px;
    height: 23px;

    display: block;

    pointer-events: none;

    opacity: .75;

    /* 保持 SVG 原始颜色 */
    filter: none;

    transition: opacity .25s ease;
}

/* 左上 */
.login-card .card-corner-tl {
    top: 10px;
    left: 10px;
}

/* 右上 */
.login-card .card-corner-tr {
    top: 10px;
    right: 10px;
    transform: rotate(90deg);
}

/* 左下 */
.login-card .card-corner-bl {
    bottom: 10px;
    left: 10px;
    transform: rotate(-90deg);
}

/* 右下 */
.login-card .card-corner-br {
    bottom: 10px;
    right: 10px;
    transform: rotate(180deg);
}