@charset "utf-8";
/* ==========================================================================
   登录页（Soft 模块）
   独立文件：TP 模板正则会吞掉内联 <style> 里的 { } ，样式必须外置
   配色与 soft2.css 保持一致
   ========================================================================== */

.lg-page,
.lg-page * {
    box-sizing: border-box;
}

.lg-page {
    min-height: 100vh;
    padding: 0 20px 40px;
    background: #f4f6f9;
    background-image: radial-gradient(circle at 12% 8%, #e6edfb 0, rgba(230, 237, 251, 0) 42%),
        radial-gradient(circle at 88% 92%, #e7f0ec 0, rgba(231, 240, 236, 0) 45%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: #1f2733;
    font-size: 13px;
    line-height: 1.6;
}

/* ---------- 品牌 ---------- */

.lg-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.lg-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #2f6fed;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.lg-brand-name {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* ---------- 卡片 ---------- */

.lg-card {
    width: 100%;
    max-width: 400px;
    padding: 30px 32px 26px;
    background: #fff;
    border: 1px solid #e7ebf1;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(31, 39, 51, 0.08);
}

.lg-title {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 600;
}

.lg-sub {
    margin: 0 0 20px;
    font-size: 12px;
    color: #94a1b2;
}

/* ---------- 表单 ---------- */

.lg-field {
    margin-bottom: 14px;
}

.lg-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    color: #5c6b7f;
}

.lg-input-wrap {
    position: relative;
}

.lg-input {
    width: 100%;
    height: 42px;
    padding: 0 13px;
    border: 1px solid #d8dfe9;
    border-radius: 8px;
    background: #fff;
    color: #1f2733;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.lg-input::placeholder {
    color: #b3bcc9;
}

.lg-input:focus {
    border-color: #2f6fed;
    box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.14);
}

.lg-input.is-pwd {
    padding-right: 62px;
}

.lg-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    padding: 5px 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #94a1b2;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
}

.lg-toggle:hover {
    color: #2f6fed;
    background: #eaf1fe;
}

/* ---------- 记住登录信息 ---------- */

.lg-extra {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 2px 0 14px;
    font-size: 12px;
    color: #5c6b7f;
}

.lg-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.lg-check input {
    width: 14px;
    height: 14px;
    margin: 0;
    cursor: pointer;
}

.lg-tip {
    font-size: 11.5px;
    color: #94a1b2;
}

/* ---------- 提示条 ---------- */

.lg-alert {
    display: none;
    margin-bottom: 14px;
    padding: 9px 12px;
    border: 1px solid #f5c9c9;
    border-radius: 8px;
    background: #fdecec;
    color: #b32525;
    font-size: 12.5px;
}

.lg-alert.is-show {
    display: block;
}

/* ---------- 提交 ---------- */

.lg-submit {
    width: 100%;
    height: 42px;
    margin-top: 4px;
    border: 0;
    border-radius: 8px;
    background: #2f6fed;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
}

.lg-submit:hover {
    background: #2559c9;
}

.lg-submit.is-busy {
    background: #9db5ef;
    cursor: default;
}

.lg-foot {
    margin-top: 16px;
    font-size: 12px;
    color: #94a1b2;
    text-align: center;
}

@media (max-width: 480px) {
    .lg-card {
        padding: 24px 20px 20px;
    }

    .lg-page {
        justify-content: flex-start;
        padding-top: 60px;
    }
}
