﻿/* 登录页 - 背景 #D5D3BD，卡片在可视区水平垂直居中 */
.ln-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 88px);
    width: 100%;
    margin: 0;
    padding: 24px 16px 32px;
    box-sizing: border-box;
    background-color: #D5D3BD;
}

.ln-card {
    display: flex;
    width: 960px;
    max-width: 100%;
    min-height: 500px;
    margin: 0;
    flex-shrink: 0;
    background: #F0EFE2;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(70, 60, 40, 0.1);
}

.ln-card-left {
    flex: 0 0 360px;
    width: 360px;
    line-height: 0;
    background: #f7e6d0;
}

.ln-card-left img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
    object-position: left top;
}

.ln-card-right {
    flex: 1;
    min-width: 0;
    padding: 24px 20px 28px;
    box-sizing: border-box;
    background: #F0EFE2;
    display: flex;
    flex-direction: column;
    min-height: 500px;
    overflow: visible;
}

.ln-tabs {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #e8e4d8;
}

.ln-tab {
    flex: 1;
    text-align: center;
    padding: 0 4px 14px;
    font-size: 18px;
    color: #999999;
    text-decoration: none;
    line-height: 1.35;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    white-space: nowrap;
    background: transparent;
}

.ln-tab:hover {
    color: #666666;
}

.ln-tab.is-active {
    color: #333333;
    font-weight: 600;
    border-bottom-color: #c9a06c;
    background: transparent;
}

/* 错误提示贴在表单字段上方，与表单同宽对齐 */
.ln-msg {
    margin: 0 0 16px;
    padding: 10px 14px;
    background: #fff8f8;
    border: 1px solid #ffe0e0;
    border-radius: 6px;
    color: #c0392b;
    font-size: 13px;
    line-height: 1.5;
    box-sizing: border-box;
}

/* 三个 Tab 内容区垂直水平居中 */
.ln-tab-panel {
    display: none;
}

.ln-tab-panel.is-active {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    background: #F0EFE2;
    padding: 40px 0 16px;
}

#panelAccount.ln-tab-panel.is-active {
    padding: 32px 0 20px;
}

.ln-app-body {
    width: 100%;
    max-width: 100%;
    text-align: center;
    background: #F0EFE2;
    box-sizing: border-box;
}

.ln-qr-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 44px;
    vertical-align: top;
    margin: 0 auto;
    max-width: 100%;
}

/* 二维码框：APP / 微信 Tab 统一样式 */
.ln-qr-wrap {
    position: relative;
    width: 258px;
    height: 258px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #F0EFE2;
    border: 2px solid #dedad0;
    border-radius: 22px;
    box-sizing: border-box;
    box-shadow: none;
    overflow: hidden;
}

.ln-qr-wrap #appQrcode {
    width: 230px;
    height: 230px;
    background: #F0EFE2;
}

.ln-qr-wrap #appQrcode img,
.ln-qr-wrap #appQrcode canvas {
    display: block;
    width: 230px !important;
    height: 230px !important;
    margin: 0 auto;
    background: #F0EFE2;
}

.ln-qr-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 44px;
    height: 44px;
    margin-left: -22px;
    margin-top: -22px;
    padding: 3px;
    background: #F0EFE2;
    border-radius: 6px;
    box-sizing: border-box;
    object-fit: contain;
    z-index: 2;
    pointer-events: none;
}

.ln-qr-expired {
    display: none;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(240, 239, 226, 0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 13px;
    color: #999999;
    z-index: 5;
    cursor: pointer;
    border-radius: 22px;
}

.ln-qr-expired.is-show {
    display: flex;
}

.ln-qr-expired .ln-refresh-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
    opacity: 0.5;
}

.ln-qr-expired span {
    display: block;
    line-height: 1.5;
    font-size: 15px;
    font-weight: 600;
    color: #333333;
}

.ln-qr-expired a {
    display: none;
}

/* 指引图 258×258，切图自带边框，不再叠加 CSS 边框 */
.ln-guide-img {
    width: 258px;
    height: 258px;
    flex-shrink: 0;
    display: block;
    object-fit: contain;
    border: none;
    background: transparent;
}

.ln-tip {
    text-align: center;
    color: #888888;
    font-size: 15px;
    line-height: 1.75;
    margin: 36px 0 0;
    padding: 0 8px;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.ln-download {
    text-align: center;
    margin-top: 14px;
    width: 100%;
}

.ln-download a {
    color: #c9a06c;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
}

.ln-download a:hover {
    text-decoration: underline;
}

/* 账号登录 */
.ln-form {
    padding: 0 8px;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    box-sizing: border-box;
}

.ln-form-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.ln-form-row label {
    flex: 0 0 64px;
    font-size: 16px;
    color: #666666;
}

.ln-form-row .ln-input {
    flex: 1;
    min-width: 0;
    height: 52px;
    padding: 0 16px;
    border: 1px solid #e5e1d8;
    border-radius: 10px;
    background: #faf9f6;
    font-size: 16px;
    color: #333333;
    box-sizing: border-box;
    outline: none;
}

.ln-form-row .ln-input:focus {
    border-color: #d9cbb0;
    background: #ffffff;
}

.ln-form-row .ln-input::placeholder {
    color: #bbbbbb;
}

.ln-form-row-code .ln-code-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
}

.ln-code-img {
    flex: 0 0 120px;
    width: 120px;
    height: 52px;
    margin-left: 12px;
    cursor: pointer;
    border-radius: 10px;
    border: 1px solid #e5e1d8;
}

.ln-btn-submit {
    display: block;
    width: 100%;
    height: 52px;
    margin-top: 32px;
    border: none;
    border-radius: 26px;
    background-color: #d8cdbb;
    color: #ffffff;
    font-size: 18px;
    letter-spacing: 8px;
    text-indent: 8px;
    cursor: pointer;
    transition: background-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.ln-btn-submit.is-ready {
    background-color: #c9a06c;
    box-shadow: 0 4px 12px rgba(185, 147, 94, 0.24);
}

.ln-btn-submit.is-ready:hover {
    background-color: #ddb98a;
}

.ln-form-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    font-size: 15px;
    line-height: 1.75;
}

.ln-form-foot a,
.ln-form-foot .ln-link-reg {
    color: #888888;
    text-decoration: none;
}

.ln-form-foot .ln-link-reg em {
    color: #c9a06c;
    font-size: 16px;
    font-weight: 500;
    font-style: normal;
}

.ln-form-foot .ln-link-forgot {
    color: #c9a06c;
    font-size: 16px;
    font-weight: 500;
}

/* 微信：服务端 ticket 动态图，居中 */
.ln-wx-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0;
}

.ln-wx-qr-wrap .ln-wx-qrcode-img {
    display: block;
    width: 230px;
    height: 230px;
    background-color: #F0EFE2;
    mix-blend-mode: multiply;
}

.ln-wx-body .ln-tip {
    font-size: 15px;
    line-height: 1.75;
    margin-top: 36px;
    width: 100%;
    max-width: none;
    padding: 0 8px;
    color: #888888;
}

.ln-wx-err {
    display: none;
    margin-top: 16px;
    color: #c0392b;
    font-size: 13px;
    line-height: 1.75;
    padding: 0 12px;
}

.ln-wx-err.is-show {
    display: block;
}

.ln-cookie-hint {
    text-align: center;
    color: #cccccc;
    font-size: 12px;
    margin-top: auto;
    padding-top: 12px;
    flex-shrink: 0;
}

.ln-fail-tip {
    text-align: center;
    color: #999999;
    font-size: 14px;
    padding: 48px 16px;
    line-height: 1.85;
}

.ln-fail-tip a {
    color: #b8935e;
    text-decoration: none;
}

/* 注册 / 找回密码 */
.ln-auth-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ln-auth-title {
    margin: 0 0 28px;
    font-size: 22px;
    font-weight: 600;
    color: #333333;
    text-align: left;
}

.ln-form-row .ln-field-err {
    display: none;
    flex: 1 1 100%;
    margin: 6px 0 0 64px;
    font-size: 12px;
    color: #c0392b;
    line-height: 1.4;
}

.ln-form-row.is-error .ln-input {
    border-color: #e8a0a0;
    background: #fffafa;
}

.ln-form-row.is-error .ln-field-err {
    display: block;
}

.ln-form-row .ln-field-ok {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-left: 8px;
    color: #b8935e;
    font-size: 16px;
    line-height: 20px;
    text-align: center;
    visibility: hidden;
}

.ln-form-row.is-ok .ln-field-ok {
    visibility: visible;
}

.ln-form-row-code .ln-btn-code {
    flex: 0 0 auto;
    min-width: 120px;
    height: 52px;
    margin-left: 12px;
    padding: 0 14px;
    border: 1px solid #e6c9a1;
    border-radius: 10px;
    background: #faf9f6;
    color: #c9a06c;
    font-size: 15px;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
}

.ln-form-row-code .ln-btn-code:disabled,
.ln-form-row-code .ln-btn-code.is-wait {
    opacity: 0.55;
    cursor: not-allowed;
}

.ln-form-hint {
    margin: -6px 0 18px 64px;
    font-size: 15px;
    color: #c9a06c;
    line-height: 1.75;
    display: none;
}

.ln-form-hint.is-show {
    display: block;
}

.ln-agree {
    display: flex;
    align-items: flex-start;
    margin: 4px 0 24px;
    font-size: 15px;
    color: #888888;
    line-height: 1.75;
}

.ln-agree input {
    margin: 4px 8px 0 0;
    flex-shrink: 0;
}

.ln-agree a {
    color: #c9a06c;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}

.ln-agree a:hover {
    text-decoration: underline;
}

.ln-btn-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

@media (max-width: 980px) {
    .ln-page {
        min-height: calc(100vh - 72px);
        padding: 16px 12px 24px;
    }

    .ln-card {
        flex-direction: column;
        width: 100%;
    }

    .ln-card-left {
        flex: none;
        width: 100%;
    }

    .ln-card-left img {
        min-height: 200px;
        max-height: 260px;
    }

    .ln-card-right {
        padding: 28px 20px 24px;
    }

    .ln-card-right {
        min-height: 0;
    }

    .ln-tab-panel.is-active {
        padding: 28px 0 12px;
    }

    .ln-qr-box {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .ln-qr-wrap {
        width: 220px;
        height: 220px;
        border-radius: 18px;
        border-width: 2px;
    }

    .ln-guide-img {
        width: 220px;
        height: 220px;
    }

    .ln-qr-wrap #appQrcode,
    .ln-qr-wrap #appQrcode img,
    .ln-qr-wrap #appQrcode canvas {
        width: 196px !important;
        height: 196px !important;
    }

    .ln-wx-qr-wrap .ln-wx-qrcode-img {
        width: 196px;
        height: 196px;
    }

    .ln-tip {
        font-size: 14px;
        margin-top: 28px;
    }

    .ln-download a {
        font-size: 15px;
    }

    .ln-form-foot {
        font-size: 14px;
    }

    .ln-form-foot .ln-link-reg em,
    .ln-form-foot .ln-link-forgot {
        font-size: 15px;
    }

    .ln-form-hint {
        font-size: 14px;
    }

    .ln-agree {
        font-size: 14px;
    }
}
