/* ============================================================
   TP80 PC 主题 - 登录 / 注册 / 忘记密码 页面样式
   ============================================================ */
:root {
    --tp-auth-primary: #0d6efd;
    --tp-auth-primary-dark: #0a58ca;
    --tp-auth-primary-light: #e7f1ff;
    --tp-auth-accent: #20c997;
    --tp-auth-text: #1f2733;
    --tp-auth-text-soft: #6b7785;
    --tp-auth-border: #e4e9f0;
    --tp-auth-bg: #f3f6fb;
}

/* 整页：菜单下到页脚之间由登录区撑满，减少空白 */
body.tp-page-auth {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

body.tp-page-auth .tp-footer {
    margin-top: auto;
    flex-shrink: 0;
}

body.tp-page-auth .tp-footer {
    padding-top: 2.5rem;
}

/* 区块：占满剩余高度 */
.tp-auth {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 16px 0;
    min-height: 0;
    background: #ffffff;
}

.tp-auth > .tp-container {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* 外层内容区域：固定高度 800，灰底居中卡片 */
.tp-auth__area {
    flex: 0 0 auto;
    width: 100%;
    margin: 0;
    background: #fff;
    border: 1px solid #e8e3e3;
    border-radius: 6px;
    padding: 40px 24px;
    height: 1080px;
    min-height: 1080px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* 卡片：保持原先尺寸，居中；线条在灰底上更清晰 */
.tp-auth__card {
    display: flex;
    flex: 0 1 auto;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #adb5bd;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(33, 37, 41, 0.12);
}

/* 左侧品牌展示区 */
.tp-auth__aside {
    position: relative;
    flex: 0 0 42%;
    max-width: 42%;
    color: #fff;
    padding: 48px 40px;
    background: linear-gradient(150deg, var(--tp-auth-primary) 0%, #1b3a8f 100%);
    overflow: hidden;
    display: flex;
}
.tp-auth__aside::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -80px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.10);
}
.tp-auth__aside::before {
    content: "";
    position: absolute;
    left: -60px;
    top: -60px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}
.tp-auth__aside-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}
.tp-auth__brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
}
.tp-auth__brand img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    background: #fff;
}
.tp-auth__aside-spacer {
    flex: 1 1 auto;
    min-height: 16px;
}
.tp-auth__aside-title {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 14px;
}
.tp-auth__aside-text {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 28px;
}
.tp-auth__aside-feats {
    list-style: none;
    padding: 0;
    margin: 0;
}
.tp-auth__aside-feats li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.92);
}
.tp-auth__aside-feats i {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    font-size: 12px;
}
.tp-auth__aside-foot {
    margin-top: 28px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

/* 右侧表单区 */
.tp-auth__main {
    flex: 1 1 auto;
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.tp-auth__title {
    font-size: 26px;
    font-weight: 800;
    color: var(--tp-auth-text);
    margin: 0 0 6px;
}
.tp-auth__subtitle {
    font-size: 14px;
    color: var(--tp-auth-text-soft);
    margin: 0 0 22px;
}

/* 错误 / 提示 */
.tp-auth__alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    border-radius: 10px;
    background: #fff1f0;
    border: 1px solid #ffccc7;
    color: #cf1322;
    font-size: 13px;
    margin-bottom: 18px;
}
.tp-auth__alert--success {
    background: #f6ffed;
    border-color: #b7eb8f;
    color: #389e0d;
}

/* 表单字段 */
.tp-auth__field {
    margin-bottom: 16px;
}
.tp-auth__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--tp-auth-text);
    margin-bottom: 8px;
}
.tp-auth__input {
    position: relative;
    display: flex;
    align-items: center;
}
.tp-auth__input > i {
    position: absolute;
    left: 14px;
    color: var(--tp-auth-text-soft);
    font-size: 14px;
    pointer-events: none;
}
.tp-auth__input input {
    width: 100%;
    height: 46px;
    padding: 0 14px 0 40px;
    font-size: 14px;
    color: var(--tp-auth-text);
    background: #f7f9fc;
    border: 1.5px solid var(--tp-auth-border);
    border-radius: 10px;
    outline: none;
    transition: border-color .18s, box-shadow .18s, background .18s;
}
.tp-auth__input input::placeholder {
    color: #aab3c0;
}
.tp-auth__input input:focus {
    border-color: var(--tp-auth-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}

/* 国际区号 + 手机号 */
.tp-auth__phone {
    display: flex;
    align-items: stretch;
    gap: 8px;
}
.tp-auth__dial {
    flex: 0 0 128px;
    height: 46px;
    padding: 0 10px;
    border: 1.5px solid var(--tp-auth-border);
    border-radius: 10px;
    background: #f7f9fc;
    color: var(--tp-auth-text);
    font-size: 14px;
    outline: none;
}
.tp-auth__dial:focus {
    border-color: var(--tp-auth-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}
.tp-auth__input--phone {
    flex: 1 1 auto;
    min-width: 0;
}
@media (max-width: 575.98px) {
    .tp-auth__dial { flex-basis: 112px; font-size: 13px; padding: 0 6px; }
}

.tp-auth__input--pwd > i.fa-eye,
.tp-auth__input--pwd > i.fa-eye-slash {
    left: auto;
    right: 14px;
    cursor: pointer;
    pointer-events: auto;
    color: var(--tp-auth-text-soft);
}

/* 找回方式切换 */
.tp-auth__channel {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}
.tp-auth__channel-btn {
    flex: 1;
    height: 42px;
    border: 1px solid var(--tp-auth-border, #e5e7eb);
    border-radius: 10px;
    background: #fff;
    color: var(--tp-auth-text-soft);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all .15s ease;
}
.tp-auth__channel-btn.is-active {
    border-color: var(--tp-auth-primary, #0d6efd);
    color: var(--tp-auth-primary, #0d6efd);
    background: rgba(13, 110, 253, .06);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, .08);
}

/* 验证码输入 + 发送按钮 */
.tp-auth__input--code {
    padding-right: 8px;
}
.tp-auth__input--code input {
    padding-right: 8px;
}
.tp-auth__code-btn {
    flex: 0 0 auto;
    height: 36px;
    padding: 0 14px;
    margin-left: 6px;
    border: none;
    border-radius: 8px;
    background: var(--tp-auth-primary, #0d6efd);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}
.tp-auth__code-btn:hover { opacity: .92; }
.tp-auth__code-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

/* 行：记住我 / 忘记密码 */
.tp-auth__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 13px;
}
.tp-auth__check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--tp-auth-text-soft);
    cursor: pointer;
    user-select: none;
}
.tp-auth__check input {
    width: 16px;
    height: 16px;
    accent-color: var(--tp-auth-primary);
}
.tp-auth__row a,
.tp-auth__foot a,
.tp-auth__links a {
    color: var(--tp-auth-primary);
    text-decoration: none;
    font-weight: 600;
}
.tp-auth__row a:hover,
.tp-auth__foot a:hover,
.tp-auth__links a:hover {
    text-decoration: underline;
}

/* 提交按钮 */
.tp-auth__btn {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--tp-auth-primary) 0%, var(--tp-auth-primary-dark) 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: transform .12s, box-shadow .18s, opacity .18s;
    box-shadow: 0 10px 22px rgba(13, 110, 253, 0.30);
}
.tp-auth__btn:hover {
    box-shadow: 0 14px 28px rgba(13, 110, 253, 0.38);
}
.tp-auth__btn:active {
    transform: translateY(1px);
}
.tp-auth__btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* 底部跳转链接 */
.tp-auth__foot {
    margin-top: 18px;
    text-align: center;
    font-size: 14px;
    color: var(--tp-auth-text-soft);
}

/* 其他链接组（注册/忘记密码页底部） */
.tp-auth__links {
    margin-top: 16px;
    text-align: center;
    font-size: 13px;
    color: var(--tp-auth-text-soft);
}

/* 第三方登录分隔 */
.tp-auth__divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 16px;
    color: var(--tp-auth-text-soft);
    font-size: 12px;
}
.tp-auth__divider::before,
.tp-auth__divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--tp-auth-border);
}

/* 响应式（平板） */
@media (max-width: 991.98px) {
    body.tp-page-auth {
        min-height: auto;
        display: block;
        padding-bottom: 56px; /* 避开底部导航 */
        overflow-x: hidden;
    }
    body.tp-page-auth .tp-auth {
        padding: 10px 0 20px;
        min-height: auto;
    }
    body.tp-page-auth .tp-auth > .tp-container,
    body.tp-page-auth .tp-auth__area,
    body.tp-page-auth .tp-auth__card {
        flex: none;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    /* 关键：桌面固定 1080 高度，H5 必须改为自适应，否则大片空白/滚动异常 */
    body.tp-page-auth .tp-auth__area {
        height: auto !important;
        min-height: 0 !important;
        margin: 0;
        padding: 12px 0;
        border: none;
        border-radius: 0;
        background: transparent;
        align-items: stretch;
        justify-content: flex-start;
    }
    body.tp-page-auth .tp-auth__card {
        flex-direction: column;
        max-width: 100%;
        border-radius: 14px;
        border: 1px solid #e5e9f0;
        box-shadow: 0 4px 16px rgba(15, 23, 42, .06);
        overflow: hidden;
    }
    body.tp-page-auth .tp-auth__aside {
        flex: none;
        max-width: 100%;
        padding: 20px 18px;
    }
    body.tp-page-auth .tp-auth__aside-spacer {
        display: none;
    }
    body.tp-page-auth .tp-auth__aside-feats,
    body.tp-page-auth .tp-auth__aside-foot {
        display: none;
    }
    body.tp-page-auth .tp-auth__aside-title {
        font-size: 22px !important;
        margin-bottom: 6px;
    }
    body.tp-page-auth .tp-auth__aside-text {
        font-size: 13px !important;
        margin-bottom: 0;
        line-height: 1.5;
    }
    body.tp-page-auth .tp-auth__brand {
        font-size: 16px !important;
        margin-bottom: 12px;
    }
    body.tp-page-auth .tp-auth__brand img {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }
    body.tp-page-auth .tp-auth__main {
        padding: 20px 16px 24px;
        justify-content: flex-start;
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }
    body.tp-page-auth .tp-auth__title {
        font-size: 22px !important;
    }
    body.tp-page-auth .tp-auth__subtitle {
        font-size: 13px !important;
        margin-bottom: 16px;
    }
    body.tp-page-auth .tp-auth__field {
        margin-bottom: 14px;
    }
    body.tp-page-auth .tp-auth__label {
        font-size: 13px !important;
        margin-bottom: 6px;
    }
    body.tp-page-auth .tp-auth__input input {
        height: 44px;
        font-size: 15px !important;
        max-width: 100%;
        box-sizing: border-box;
    }
    body.tp-page-auth .tp-auth__phone {
        flex-wrap: nowrap;
        gap: 6px;
        min-width: 0;
    }
    body.tp-page-auth .tp-auth__dial {
        flex: 0 0 96px;
        max-width: 42%;
        height: 44px;
        font-size: 12px;
        padding: 0 4px;
        min-width: 0;
    }
    body.tp-page-auth .tp-auth__input--code {
        gap: 0;
        min-width: 0;
    }
    body.tp-page-auth .tp-auth__input--code input {
        width: 0;
        min-width: 0;
        flex: 1 1 auto;
        padding-right: 6px;
    }
    body.tp-page-auth .tp-auth__code-btn {
        flex: 0 0 auto;
        height: 34px;
        padding: 0 10px;
        font-size: 12px;
        margin-left: 4px;
    }
    body.tp-page-auth .tp-auth__channel {
        gap: 8px;
        margin-bottom: 14px;
    }
    body.tp-page-auth .tp-auth__channel-btn {
        height: 40px;
        font-size: 13px;
        gap: 6px;
        padding: 0 8px;
    }
    body.tp-page-auth .tp-auth__row {
        flex-wrap: wrap;
        gap: 8px 12px;
        align-items: flex-start;
        margin-bottom: 16px;
        font-size: 13px !important;
    }
    body.tp-page-auth .tp-auth__check {
        flex: 1 1 100%;
        line-height: 1.5;
        gap: 6px;
        align-items: flex-start;
    }
    body.tp-page-auth .tp-auth__check input {
        margin-top: 2px;
        flex-shrink: 0;
    }
    body.tp-page-auth .tp-auth__btn {
        height: 46px;
        font-size: 16px !important;
        letter-spacing: 1px;
        box-shadow: 0 8px 18px rgba(13, 110, 253, 0.22);
    }
    body.tp-page-auth .tp-auth__foot {
        margin-top: 14px;
        font-size: 14px !important;
    }
    body.tp-page-auth .tp-auth__alert {
        font-size: 13px !important;
        padding: 10px 12px;
        margin-bottom: 14px;
    }
}

/* 小屏再收紧 */
@media (max-width: 575.98px) {
    body.tp-page-auth .tp-auth__card {
        border-radius: 12px;
        border-left: none;
        border-right: none;
        border-radius: 0;
        box-shadow: none;
    }
    body.tp-page-auth .tp-auth__aside {
        padding: 16px 14px;
        border-radius: 0;
    }
    body.tp-page-auth .tp-auth__main {
        padding: 18px 14px 22px;
    }
    body.tp-page-auth .tp-auth__dial {
        flex-basis: 88px;
        font-size: 11px;
    }
}

/* 协议弹窗 */
.tp-agree-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2vh 2vw;
}
.tp-agree-modal.is-open { display: flex; }
.tp-agree-modal__mask {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .45);
}
.tp-agree-modal__dialog {
    position: relative;
    z-index: 1;
    width: 70%;
    height: 70%;
    max-width: 70vw;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .28);
    overflow: hidden;
}
.tp-agree-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 22px;
    border-bottom: 1px solid #eef2f7;
    flex: 0 0 auto;
}
.tp-agree-modal__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}
.tp-agree-modal__close {
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 0 4px;
}
.tp-agree-modal__close:hover { color: #64748b; }
.tp-agree-modal__body {
    padding: 20px 28px 24px;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    font-size: 15px;
    line-height: 1.75;
    color: #334155;
}
/* 配置里多为 <h3> 包裹正文，统一成舒适阅读字号 */
.tp-agree-modal__body h1,
.tp-agree-modal__body h2,
.tp-agree-modal__body h3,
.tp-agree-modal__body h4,
.tp-agree-modal__body h5,
.tp-agree-modal__body h6,
.tp-agree-modal__body p,
.tp-agree-modal__body li,
.tp-agree-modal__body td,
.tp-agree-modal__body th {
    margin: 0 0 .45em;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    color: #334155;
}
.tp-agree-modal__body h1:first-child,
.tp-agree-modal__body h2:first-child,
.tp-agree-modal__body h3:first-child {
    font-size: 17px;
    font-weight: 700;
    color: #1f2937;
}
.tp-agree-modal__body strong,
.tp-agree-modal__body b {
    font-weight: 600;
    color: #1f2937;
}
.tp-agree-modal__body table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1em;
    font-size: 15px;
}
.tp-agree-modal__body th,
.tp-agree-modal__body td {
    border: 1px solid #e2e8f0;
    padding: 8px 10px;
    text-align: left;
}
.tp-agree-modal__empty {
    text-align: center;
    color: #94a3b8;
    padding: 32px 0;
    font-size: 15px;
}
.tp-agree-modal__foot {
    padding: 12px 22px 16px;
    border-top: 1px solid #eef2f7;
    text-align: right;
    flex: 0 0 auto;
}
.tp-agree-modal__ok {
    min-width: 96px;
    height: 38px;
    border: none;
    border-radius: 8px;
    background: var(--tp-auth-primary, #0d6efd);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.tp-agree-modal__ok:hover { opacity: .92; }
body.tp-agree-modal-open { overflow: hidden; }
.tp-auth__check { flex-wrap: wrap; }
.tp-auth__check a { white-space: nowrap; }

@media (max-width: 767.98px) {
    .tp-agree-modal { padding: 12px; }
    .tp-agree-modal__dialog {
        width: 92%;
        height: 80%;
        max-width: 92vw;
        max-height: 80vh;
    }
    .tp-agree-modal__body {
        padding: 16px 18px;
        font-size: 14px;
    }
    .tp-agree-modal__body h1,
    .tp-agree-modal__body h2,
    .tp-agree-modal__body h3,
    .tp-agree-modal__body h4,
    .tp-agree-modal__body h5,
    .tp-agree-modal__body h6,
    .tp-agree-modal__body p,
    .tp-agree-modal__body li {
        font-size: 14px;
    }
}

/* ===== 桌面端字体放大（配合 common.css 根字号；H5 由上方 ≤991 覆盖） ===== */
.tp-auth__brand { font-size: 20px; }
.tp-auth__aside-title { font-size: 33px; }
.tp-auth__aside-text { font-size: 17px; }
.tp-auth__aside-feats li { font-size: 16px; }
.tp-auth__aside-feats i { font-size: 13px; }
.tp-auth__aside-foot { font-size: 15px; }
.tp-auth__title { font-size: 29px; }
.tp-auth__subtitle { font-size: 16px; }
.tp-auth__alert { font-size: 15px; }
.tp-auth__label { font-size: 15px; }
.tp-auth__input > i { font-size: 16px; }
.tp-auth__input input { font-size: 16px; }
.tp-auth__row { font-size: 15px; }
.tp-auth__btn { font-size: 18px; }
.tp-auth__foot { font-size: 16px; }
.tp-auth__links { font-size: 15px; }
.tp-auth__divider { font-size: 14px; }

/* H5 协议弹窗已在上方 max-width:767.98 处理；底部导航避让已并入 ≤991 响应式 */
