* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: #1f2d3d;
    background:
        radial-gradient(900px 520px at 88% -6%, #cbe9f8 0%, rgba(203, 233, 248, 0) 60%),
        radial-gradient(760px 520px at 0% 18%, #e4f6fd 0%, rgba(228, 246, 253, 0) 62%),
        linear-gradient(180deg, #dff2fc 0%, #eef9fe 52%, #f9fdff 100%);
    -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
    content: "";
    position: fixed;
    z-index: 0;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}

body::before {
    top: -160px;
    right: -100px;
    width: 520px;
    height: 520px;
    background: rgba(94, 199, 236, 0.26);
}

body::after {
    bottom: -220px;
    left: -160px;
    width: 500px;
    height: 500px;
    background: rgba(132, 216, 244, 0.30);
}

.login-page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.login-main {
    flex: 1;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 64px 32px 44px;
}

.login-shell {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    grid-template-areas: "hero side";
    column-gap: 64px;
    align-items: center;
}

/* ---------- 左侧：主张 ---------- */
.login-hero {
    grid-area: hero;
    max-width: 640px;
}

.hero-title {
    margin: 0 0 20px;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 1px;
    color: #10364c;
    background: linear-gradient(118deg, #0d3a52 8%, #1a8fc4 92%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title::after {
    content: "";
    display: block;
    width: 62px;
    height: 5px;
    margin-top: 18px;
    border-radius: 3px;
    background: linear-gradient(90deg, #2cb9e8, #9be4f8);
}

.hero-lead {
    margin: 0 0 32px;
    font-size: 20px;
    line-height: 1.8;
    color: #3f86a6;
}

/* ---------- 功能墙 ---------- */
.login-features {
    margin-top: 58px;
}

.feature-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
}

.feature-section-name {
    position: relative;
    padding-left: 13px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #17455e;
}

.feature-section-name::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 16px;
    margin-top: -8px;
    border-radius: 2px;
    background: linear-gradient(180deg, #2cb9e8, #7fd8f2);
}

.feature-section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, #bfe6f6, rgba(191, 230, 246, 0));
}

.feature-section-meta {
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(44, 185, 232, 0.1);
    font-size: 11.5px;
    letter-spacing: 0.5px;
    color: #1899c8;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.feature-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 16px 17px 15px;
    border: 1px solid #d9eff9;
    border-radius: 13px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfeff 100%);
    box-shadow: 0 4px 12px rgba(30, 100, 140, 0.045);
    transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: #a5dcf3;
    box-shadow: 0 12px 26px rgba(30, 100, 140, 0.13);
}

.feature-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, #e8f8ff 0%, #d2effd 100%);
    box-shadow: inset 0 0 0 1px rgba(106, 203, 238, 0.25);
    color: #139bcc;
}

.feature-icon svg {
    width: 19px;
    height: 19px;
}

.feature-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.3px;
    color: #17455e;
}

.feature-points {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.feature-points li {
    position: relative;
    padding-left: 12px;
    font-size: 12.5px;
    line-height: 1.75;
    color: #5c7a8c;
}

.feature-points li + li {
    margin-top: 3px;
}

.feature-points li::before {
    content: "";
    position: absolute;
    left: 1px;
    top: 9px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #43bbdf;
}

/* ---------- 左侧：扫码体验 ---------- */
.qr-row {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-top: 0;
}

.qr-card {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 12px 20px 12px 12px;
    border: 1px solid #d9eff9;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 6px 18px rgba(30, 100, 140, 0.06);
    backdrop-filter: blur(4px);
}

.qr-card img {
    display: block;
    width: 104px;
    height: 104px;
    border-radius: 8px;
    background: #fff;
}

.qr-card figcaption {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.qr-card figcaption strong {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #17455e;
}

.qr-card figcaption span {
    font-size: 12px;
    color: #7b94a3;
}

/* ---------- 右侧：品牌与登录卡 ---------- */
.login-side {
    grid-area: side;
    align-self: center;
}

.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.brand-logo {
    display: block;
    width: 230px;
    height: auto;
}

.brand-word {
    position: relative;
    padding: 0 42px;
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 7px;
    color: #159fd4;
}

.brand-word::before,
.brand-word::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 28px;
    height: 1.5px;
    background: #159fd4;
}

.brand-word::before {
    left: 0;
}

.brand-word::after {
    right: 0;
}

.brand-name {
    display: block;
    margin-top: 9px;
    font-size: 12px;
    letter-spacing: 7px;
    color: #4a7690;
}

.login-card {
    position: relative;
    width: 100%;
    padding: 30px 26px 30px;
    border: 1px solid #e2f2fa;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 20px 46px rgba(22, 84, 116, 0.13);
    overflow: hidden;
}

.login-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2cb9e8 0%, #7fd8f2 55%, #c9f0fb 100%);
}

.login-card h2 {
    margin: 0 0 22px;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #123a50;
}

.login-card .field {
    position: relative;
    margin-bottom: 14px;
}

.login-card .field input.form-control {
    width: 100%;
    height: 44px;
    padding-left: 38px;
    border: 1px solid #d8dfe6;
    border-radius: 8px;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: 13px center;
    background-size: 16px 16px;
    box-shadow: none;
    font-size: 14px;
    color: #1f2d3d;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-card .field-username input.form-control {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a7b7c3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.2'/%3E%3Cpath d='M5.5 20c0-3.6 2.9-6 6.5-6s6.5 2.4 6.5 6'/%3E%3C/svg%3E");
}

.login-card .field-password input.form-control {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a7b7c3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
}

.login-card .field-captcha input.form-control {
    padding-right: 194px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a7b7c3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v6c0 4.2-2.9 7.4-7 9-4.1-1.6-7-4.8-7-9V6l7-3z'/%3E%3Cpolyline points='9 12 11.2 14.2 15 10.4'/%3E%3C/svg%3E");
}

.login-card .field input.form-control:focus {
    border-color: #1aa6d8;
    box-shadow: 0 0 0 3px rgba(26, 166, 216, 0.12);
    outline: none;
}

.login-card .field input.form-control::placeholder {
    color: #a7b7c3;
}

.login-card .field-captcha .captcha-img {
    height: 50px;
    width: 176px;
    border-radius: 6px;
    object-fit: cover;
}

.remember {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 2px 0 16px;
    font-size: 12px;
    font-weight: 400;
    color: #5d7383;
    cursor: pointer;
    user-select: none;
}

.remember input {
    width: 13px;
    height: 13px;
    margin: 0;
    accent-color: #1aa6d8;
    cursor: pointer;
}

.login-card .btn-login {
    width: 100%;
    height: 44px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #2cb9e8 0%, #1189b5 100%);
    box-shadow: 0 10px 20px rgba(26, 166, 216, 0.28);
    color: #fff;
    font-size: 15px;
    letter-spacing: 3px;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}

.login-card .btn-login:hover {
    background: linear-gradient(135deg, #25b0de 0%, #0f7ea8 100%);
    box-shadow: 0 12px 24px rgba(26, 166, 216, 0.34);
    transform: translateY(-1px);
}

.login-card .btn-login:active {
    background: linear-gradient(135deg, #1ea4d2 0%, #0d729a 100%);
    box-shadow: 0 6px 14px rgba(26, 166, 216, 0.26);
    transform: translateY(0);
}

/* ---------- 底部备案 ---------- */
.box7 {
    padding: 16px 24px 22px;
}

.p8 {
    margin: 0;
    font-size: 12px;
    line-height: 1.9;
    text-align: center;
    color: #93a1b0;
}

.p8 a {
    color: #7d8b9a;
    text-decoration: none;
}

.p8 a:hover {
    color: #16aad8;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
    .login-shell {
        grid-template-columns: minmax(0, 1fr) 360px;
        column-gap: 44px;
    }

    .hero-title {
        font-size: 40px;
    }
}

@media (max-width: 900px) {
    .login-main {
        padding: 36px 20px 30px;
    }

    .login-shell {
        grid-template-columns: 1fr;
        grid-template-areas:
            "side"
            "hero";
        row-gap: 40px;
    }

    .login-side {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }

    .login-hero {
        max-width: 540px;
        margin: 0 auto;
        text-align: center;
    }

    .hero-title {
        font-size: 34px;
    }

    .hero-title::after {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-lead {
        font-size: 15px;
    }

    .qr-row {
        justify-content: center;
    }

    .login-features {
        margin-top: 44px;
    }

    .feature-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .brand-word {
        font-size: 31px;
        padding: 0 36px;
    }

    .brand-word::before,
    .brand-word::after {
        width: 24px;
    }
}

@media (max-width: 560px) {
    .hero-br {
        display: none;
    }

    .hero-title {
        font-size: 29px;
    }

    .login-features {
        margin-top: 34px;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 16px 16px 15px;
    }

    .feature-icon {
        width: 32px;
        height: 32px;
    }

    .feature-icon svg {
        width: 19px;
        height: 19px;
    }

    .feature-title {
        font-size: 17px;
    }

    .feature-points li {
        font-size: 15px;
        line-height: 1.75;
    }

    .feature-points li::before {
        top: 10px;
        width: 5px;
        height: 5px;
    }

    .qr-row {
        gap: 14px;
    }

    .qr-card img {
        width: 92px;
        height: 92px;
    }

    .login-card {
        padding: 24px 20px 26px;
    }
}
