/* login.css - 扁平极简风格，调整卡片宽度适配带图/无图页面 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #f5f7fa;
    color: #1e293b;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 主容器 */
.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* 卡片基础样式 */
.auth-panel {
    display: flex;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s;
}
.auth-panel:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* 带图片的卡片 (登录页) */
.auth-panel--with-banner {
    max-width: 960px; /* 整体宽度控制 */
    width: 100%;
}
.auth-panel--with-banner .auth-panel__form {
    flex: 1 1 50%;
    padding: 48px 44px;
}
.auth-panel--with-banner .auth-panel__banner {
    flex: 1 1 50%;
    position: relative;
    background: #eef2f6;
}

/* 无图片的卡片 (注册/忘记密码) */
.auth-panel--no-banner {
    max-width: 460px; /* 窄卡片 */
    width: 100%;
    margin: 0 auto;
}
.auth-panel--no-banner .auth-panel__form {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    padding: 44px 36px;
}

/* 左侧表单通用样式 */
.auth-panel__title {
    font-size: 30px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 6px;
}
.auth-panel__subtitle {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 28px;
    border-left: 3px solid var(--color-primary);
    padding-left: 16px;
}

/* 下划线选项卡 */
.auth-tabs {
    display: flex;
    gap: 24px;
    margin-bottom: 28px;
    border-bottom: 1px solid #e9edf2;
}
.auth-tabs__btn {
    border: none;
    background: transparent;
    padding: 8px 0 10px;
    font-size: 16px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: 0.2s;
}
.auth-tabs__btn:hover {
    color: #1e293b;
}
.auth-tabs__btn--active {
    color: #0f172a;
    font-weight: 600;
    border-bottom-color: var(--color-primary);
}

.form--hidden {
    display: none;
}

/* 表单元素 */
.auth-form {
    transition: opacity 0.2s;
}
.auth-form--hidden {
    display: none;
}
.auth-form__group {
    margin-bottom: 18px;
}
.auth-form__group--with-btn {
    display: flex;
    gap: 12px;
    align-items: stretch;
}
.auth-form__group--with-btn .auth-form__label,
.auth-form__group--with-btn .auth-form__label--flex {
    flex: 1;
    min-width: 0;
}
.auth-form__label {
    display: flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0 14px;
    background: #f8fafc;
    height: 48px;
    transition: 0.2s;
}
.auth-form__label:focus-within {
    border-color: var(--color-primary);
    background: white;
}
.auth-form__icon {
    font-size: 16px;
    color: #94a3b8;
    margin-right: 10px;
    width: 18px;
    text-align: center;
}
.auth-form__input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0;
    font-size: 15px;
    color: #1e293b;
    outline: none;
    height: 100%;
}
.auth-form__input::placeholder {
    color: #b3c0cd;
}
.auth-form__code-btn {
    flex-shrink: 0;
    min-width: 120px;
    background: #eef2f6;
    border: 1px solid #d1d9e6;
    border-radius: 8px;
    padding: 0 16px;
    height: 48px;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.2s;
}
.auth-form__code-btn:hover {
    background: #e2e8f0;
}
.auth-form__code-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.auth-form__options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 14px 0 22px;
    font-size: 14px;
}
.auth-form__remember {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
}
.auth-form__remember input[type="checkbox"] {
    accent-color: var(--color-primary);
    width: 16px;
    height: 16px;
}
.auth-form__link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}
.auth-form__link:hover {
    text-decoration: underline;
}
.auth-form__submit {
    width: 100%;
    background: var(--color-primary);
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: 0.2s;
}
.auth-form__submit:hover {
    background: var(--color-primary);
}

/* 第三方登录 */
.auth-third {
    margin: 28px 0 14px;
    text-align: center;
}
.auth-third__title {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 18px;
    position: relative;
}
.auth-third__title::before,
.auth-third__title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 25%;
    height: 1px;
    background: #e2e8f0;
}
.auth-third__title::before { left: 0; }
.auth-third__title::after { right: 0; }
.auth-third__list {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.auth-third__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #475569;
    padding: 8px 14px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    min-width: 80px;
    transition: 0.2s;
}
.auth-third__item:hover {
    background: #f1f5f9;
}
.auth-third__icon {
    font-size: 26px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    margin-bottom: 5px;
}
.auth-third__item--wechat .auth-third__icon { color: #2bae1a; }
.auth-third__item--alipay .auth-third__icon { color: #1677ff; }
.auth-third__name {
    font-size: 13px;
    font-weight: 500;
}

/* PC端辅助链接 */
.auth-extra {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e9edf2;
}
.auth-extra__link {
    color: #64748b;
    font-size: 14px;
    text-decoration: none;
}
.auth-extra__link:hover {
    color: var(--color-primary-hover);
}

/* 右侧图片区域 */
.auth-panel__banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.auth-panel__banner-link {
    position: absolute;
    inset: 0;
    display: block;
    z-index: 2;
    pointer-events: auto;
    cursor: pointer;
}

/* 移动端注册提示 (默认隐藏) */
.auth-third__mobile-reg {
    display: none;
}

/* 移动端优化 */
@media screen and (max-width: 768px) {
    .auth-main {
        padding: 24px 12px;
    }
    .auth-panel--no-banner {
        max-width: 100%;
    }
    .auth-panel--with-banner {
        flex-direction: column;
        max-width: 400px;
    }
    .auth-panel--with-banner .auth-panel__banner {
        display: none; /* 移动端隐藏图片 */
    }
    .auth-panel--with-banner .auth-panel__form,
    .auth-panel--no-banner .auth-panel__form {
        padding: 32px 24px;
    }
    .auth-extra {
        display: none;
    }
    .auth-third__mobile-reg {
        display: block;
        margin-top: 16px;
        font-size: 14px;
    }
    .auth-third__mobile-reg a {
        color: var(--color-primary);
        font-weight: 500;
    }
}

@media screen and (max-width: 480px) {
    .auth-form__group--with-btn {
        gap: 8px;
    }
    .auth-panel--with-banner .auth-panel__form,
    .auth-panel--no-banner .auth-panel__form {
        padding: 24px 18px;
    }
    .auth-form__code-btn {
        min-width: 96px;
        padding: 0 12px;
        font-size: 13px;
    }
    .auth-third__list {
        gap: 12px;
    }
    .auth-third__item {
        min-width: 70px;
        padding: 6px 10px;
    }
}


.auth-form__remember--wrap {
    flex-wrap: wrap;
    gap: 4px 6px;
    line-height: 1.5;
}
.auth-form__label--password {
    position: relative;
}
.auth-form__label--password .auth-form__input {
    padding-right: 42px;
}
.auth-form__toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.auth-form__pwd-toggle {
    border: none !important;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
}
.auth-form__pwd-toggle:hover {
    color: var(--color-primary-hover);
}

.auth-policy-link{
    color: var(--color-primary);
}

/* ==================== 全局样式重置 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ==================== 页面容器（BEM: page） ==================== */
.page {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* 背景渐变：橙-粉-紫 流体渐变效果 */
    background: linear-gradient(135deg, #FFB02E 0%, #FF4D94 50%, #9D4EDD 100%);
    background-size: 400% 400%;
    animation: gradientFlow 15s ease infinite;
    position: relative;
    overflow: visible;
}

/* 背景流体动效 */
@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 背景模糊光晕装饰 */
.page::before, .page::after {
    content: "";
    position: absolute;
    width: 60%;
    height: 60%;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    z-index: 0;
}
.page::before {
    background: #FF7A00;
    top: 10%;
    left: 0;
}
.page::after {
    background: #FF2E94;
    bottom: 0;
    right: 0;
}

/* ==================== 头部Logo（BEM: header） ==================== */
.header {
    position: absolute;
    top: 24px;
    left: 12.5%;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header__logo {
    width: 36px;
    height: 36px;
    background: #FFFFFF;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF7A45;
    font-weight: bold;
    font-size: 20px;
}

.header__title {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 600;
}

/* ==================== 主内容区（BEM: main） ==================== */
.main {
    width: 100%;
    flex: 1 0 auto;
    min-height: calc(100vh - 92px);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 32px 10% 48px;
    position: relative;
    z-index: 1;
}

#page.page > #page-footer {
    position: relative;
    z-index: 1;
}

/* ==================== 左侧文案区（BEM: content） ==================== */
.content {
    max-width: 500px;
    color: #FFFFFF;
}

.content__title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 32px;
}

.content__features {
    display: flex;
    gap: 32px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
}

.feature__icon {
    width: 20px;
    height: 20px;
    background: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF7A45;
    font-size: 12px;
}

/* ==================== 右侧登录注册卡片（BEM: card） ==================== */
.card {
    width: 400px;
    background: #FFFFFF;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.card__title {
    font-size: 22px;
    font-weight: 600;
    color: #1D2129;
    margin-bottom: 20px;
}

.card__login-link {
    font-size: 15px;
    color: #86909C;
    margin-bottom: 32px;
    display: block;
}

.card__login-link a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    margin-left: 4px;
}

.card__login-link a::after {
    content: "→";
    margin-left: 4px;
}
.card__login-link-pwd a{
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    margin-left: 4px;
    font-size: 14px;
}

/* ==================== 注册Tab（BEM: tab） ==================== */
.tab {
    display: flex;
    gap: 32px;
    margin-bottom: 24px;
    border-bottom: 1px solid #F2F3F5;
}

.tab__item {
    font-size: 16px;
    font-weight: 500;
    color: #86909C;
    padding: 0 0 12px 0;
    cursor: pointer;
    position: relative;
}

.tab__item--active {
    color: #FF7A45;
}

.tab__item--active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #FF7A45;
    border-radius: 1px;
}

/* ==================== 表单（BEM: form） ==================== */
.form__input-group {
    margin-bottom: 16px;
}

.form__input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #F2F3F5;
    border-radius: 6px;
    background: #F7F8FA;
    font-size: 15px;
    color: #1D2129;
    outline: none;
    transition: border-color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form__input:focus {
    border-color: #FF7A45;
    background: #FFFFFF;
}

.form__input::placeholder {
    color: #C9CDD4;
}

.form__input--code {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form__code-btn {
    background: transparent;
    border: none;
    color: #1D2129;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 0 8px;
}

.form__submit-btn {
    width: 100%;
    height: 48px;
    background: #FF7A45;
    border: none;
    border-radius: 6px;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 8px;
}

.form__submit-btn:hover {
    background: #FF6A33;
}

/* ==================== 其他登录方式（BEM: other-login） ==================== */
.other-login {
    margin-top: 32px;
    text-align: center;
}

.other-login__title {
    font-size: 14px;
    color: #1D2129;
    position: relative;
    margin-bottom: 20px;
}

.other-login__title::before,
.other-login__title::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: #E5E6EB;
}

.other-login__title::before {
    left: 0;
}

.other-login__title::after {
    right: 0;
}

.other-login__wechat {
    width: 48px;
    height: 48px;
    background: #07C160;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s;
}

.other-login__wechat:hover {
    transform: scale(1.05);
}

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

.other-login__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 0;
    height: 50px;
    padding: 0 12px;
    border: 1px solid #E5E6EB;
    border-radius: 8px;
    background: #FFFFFF;
    color: #1D2129;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.other-login__item:hover,
.other-login__item:focus-visible {
    border-color: var(--color-primary);
    background: rgba(255, 122, 69, 0.05);
    box-shadow: 0 6px 18px rgba(255, 122, 69, 0.12);
    color: #1D2129;
    outline: none;
}

.other-login__item:disabled,
.other-login__item.is-loading {
    cursor: wait;
    opacity: 0.65;
}

.other-login__icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 19px;
    line-height: 1;
}

.other-login__item--wechat .other-login__icon {
    color: #20B85A;
}

.other-login__item--alipay .other-login__icon {
    color: #1677FF;
}

.style3-wechat-login-layer {
    overflow: hidden;
    border-radius: 8px !important;
    box-shadow: 0 24px 64px rgba(29, 33, 41, 0.22) !important;
}

.style3-wechat-login-layer .layui-layer-title {
    height: 50px;
    padding: 0 56px 0 20px;
    border-bottom: 1px solid #E5E6EB;
    background: #FFFFFF;
    color: #1D2129;
    font-size: 16px;
    font-weight: 600;
    line-height: 50px;
}

.style3-wechat-login-layer .layui-layer-content {
    height: calc(100% - 50px) !important;
    background: #F7F8FA;
}

.style3-wechat-login-qrcode {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 16px 18px 18px;
    box-sizing: border-box;
}

.style3-wechat-login-qrcode__frame {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    border: 0;
    border-radius: 6px;
    background: #FFFFFF;
}

.style3-wechat-login-qrcode__text {
    flex: 0 0 auto;
    margin: 14px 0 0;
    color: #86909C;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.pwd-update{
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
/* ==================== 页脚版权（BEM: footer） ==================== */
.footer {
    position: absolute;
    bottom: 24px;
    left: 12.5%;
    z-index: 10;
    color: #FFFFFF;
    font-size: 14px;
    opacity: 0.9;
}

/* ==================== 响应式适配 ==================== */
@media screen and (max-width: 1024px) {
    .main {
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        min-height: calc(100vh - 94px);
        padding: 24px 20px 40px;
    }
    .content {
        text-align: center;
    }
    .content__features {
        justify-content: center;
    }
    .card {
        width: 90%;
        max-width: 400px;
    }
}

@media screen and (max-width: 480px) {
    .main {
        min-height: calc(100vh - 90px);
        padding: 20px 12px 32px;
    }
}

/* 登录页专属壳层覆盖：仅修正这三个页面的滚动容器 */
body.login-page-body {
    min-width: 0;
}

#page.login-page-shell {
    min-width: 0 !important;
    overflow-x: visible;
    overflow-y: visible;
}
