/* ============================================
   登录页样式（对齐参考站点 /index/login/login.html）
   仅登录页加载：body.login-page
   ============================================ */

body.login-page {
    margin: 0;
    padding: 0;
    background: #f7f8fb;
    color: #232936;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* 取消公共容器的窄宽度与阴影，登录页按整屏铺开 */
.login-page .h5-page {
    max-width: none;
    margin: 0;
    box-shadow: none;
    min-height: 100vh;
    min-height: 100dvh;
    background: linear-gradient(180deg, #eff5ff 0%, #f7f8fb 70%);
    padding-bottom: 38px;
}

.login-page .h5-page * {
    box-sizing: border-box;
}

.lh-hero {
    height: 310px;
    background: linear-gradient(140deg, #103e92 0%, #1554c0 57%, #428cf2 100%);
    border-radius: 0 0 34px 34px;
    padding: 48px 26px 30px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.lh-hero::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    right: -90px;
    top: -100px;
    border: 55px solid rgba(255, 255, 255, .055);
    border-radius: 50%;
}

.lh-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    position: relative;
    z-index: 1;
}

.lh-brand-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: #fff;
    display: grid;
    place-items: center;
    color: #2563eb;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .133);
}

.lh-brand-icon svg {
    width: 32px;
    height: 32px;
}

.lh-brand-name {
    font-size: 18px;
    font-weight: 750;
    letter-spacing: .5px;
}

.lh-brand-desc {
    font-size: 13px;
    color: #d9e8ff;
    margin-top: 5px;
}

.lh-hero-heading {
    margin-top: 37px;
    position: relative;
    z-index: 1;
}

.lh-hero-heading h2 {
    font-size: 31px;
    line-height: 1.3;
    letter-spacing: 1px;
    font-weight: 700;
    margin: 0;
}

.lh-hero-heading p {
    font-size: 15px;
    color: #d9e8ff;
    margin-top: 10px;
}

.lh-login-box {
    width: calc(100% - 32px);
    max-width: 480px;
    margin: -51px auto 0;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(59, 38, 25, .12);
    padding: 29px 22px 30px;
    position: relative;
    z-index: 2;
}

.lh-field-label {
    display: block;
    font-size: 16px;
    font-weight: 650;
    color: #232936;
    margin-bottom: 16px;
}

.lh-input-item {
    display: flex;
    align-items: center;
    height: 50px;
    background: #f8f9fa;
    border: 1px solid #e6e7ea;
    border-radius: 17px;
    overflow: hidden;
    transition: border-color .2s;
}

.lh-input-item:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .09);
}

.lh-phone-prefix {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 14px;
    padding-right: 13px;
    font-weight: 700;
    font-size: 16px;
    border-right: 1px solid #e5e5e5;
    white-space: nowrap;
}

.lh-phone-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: #eaf2ff;
    color: #2563eb;
    display: grid;
    place-items: center;
    font-size: 18px;
}

.lh-input {
    min-width: 0;
    flex: 1;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0 13px;
    font-size: 16px;
    color: #222;
}

.lh-input::placeholder {
    color: #a5a8b1;
}

.lh-login-btn {
    width: 100%;
    height: 50px;
    margin-top: 42px;
    background: linear-gradient(100deg, #348afa, #125de2);
    border: 0;
    border-radius: 17px;
    color: #fff;
    font-size: 17px;
    font-weight: 650;
    box-shadow: 0 8px 17px rgba(37, 99, 235, .19);
    cursor: pointer;
}

.lh-login-btn:active {
    transform: translateY(1px);
    opacity: .95;
}

.lh-login-btn span {
    margin-left: 13px;
    font-size: 23px;
    font-weight: 400;
}

.lh-login-hint {
    margin-top: 21px;
    text-align: center;
    color: #a0a2a8;
    font-size: 12px;
    line-height: 1.8;
}

.lh-secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 33px 0 26px;
    color: #969ba4;
    font-size: 13px;
}

.lh-secure-note svg {
    width: 16px;
    height: 16px;
    color: #39a58b;
}

.lh-features {
    width: calc(100% - 32px);
    max-width: 480px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.lh-feature {
    background: #fff;
    border-radius: 18px;
    min-height: 124px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .039);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    padding: 12px 3px;
}

.lh-feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #eaf2ff;
    color: #2563eb;
    display: grid;
    place-items: center;
    font-size: 25px;
}

.lh-feature strong {
    font-size: 14px;
    font-weight: 650;
    color: #232936;
}

.lh-feature small {
    font-size: 11px;
    color: #a5a6ac;
}

/* 登录页轻提示：与参考页一致，屏幕居中 */
body.login-page .js-toast {
    top: 50%;
    bottom: auto;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, .75);
    border-radius: 9px;
    padding: 15px 25px;
    font-size: 15px;
    white-space: nowrap;
    transition: opacity .2s;
}

@media (min-width: 700px) {
    .lh-hero {
        padding-left: max(26px, calc((100% - 480px) / 2));
        padding-right: max(26px, calc((100% - 480px) / 2));
    }
}

@media (max-width: 360px) {
    .lh-hero {
        height: 290px;
        padding: 34px 20px 25px;
    }

    .lh-login-box {
        padding: 24px 17px;
    }

    .lh-features {
        gap: 8px;
    }

    .lh-feature strong {
        font-size: 12px;
    }
}
