body {
    padding-top: 0;
    margin: 0;
    background: transparent;
}

.login-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
    background: transparent;
}

.login-page-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    z-index: 0;
}

.login-page-bg--mobile {
    display: none;
}

.login-page-overlay {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    height: 100%;
    display: flex;
    flex-direction: column;
    pointer-events: none;
    background: transparent;
}

.login-page-overlay > * {
    pointer-events: auto;
}

/* ========== Banner 固定区域（PC 1920×180 / 手机 1080×450）浮于底图 ========== */
.login-page-banner-slot {
    width: 100%;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: relative;
    z-index: 2;
    background: transparent;
}

.login-page-banner-slot--fixed {
    aspect-ratio: 1920 / 180;
}

.login-page-banner-slot--content {
    aspect-ratio: 1920 / 180;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-page-banner-slot--content .login-page-banner--meeting,
.login-page-banner-slot--content .login-page-banner--text {
    width: 100%;
    height: 100%;
    min-height: auto;
    padding: 0 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.login-page-banner--image,
.login-page-banner--image picture {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.login-page-banner--image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    margin: 0;
    padding: 0;
}

.login-page-banner--text,
.login-page-banner--meeting {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    text-align: center;
    background: transparent;
}

.login-page-banner--text {
    line-height: 1.8;
    overflow: auto;
}

.login-page-banner--text p {
    margin: 0 0 8px;
}

.login-page-meeting-title {
    font-size: var(--login-title-size, 28px);
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px;
    color: var(--login-title-color-start, #1a1a1a);
}

.login-page-meeting-title.is-gradient {
    background: linear-gradient(90deg, var(--login-title-color-start, #1a1a1a) 0%, var(--login-title-color-end, #2563eb) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.login-page-meeting-meta {
    font-size: var(--login-meta-size, 14px);
    line-height: 1.75;
    margin: 0 0 4px;
}

.login-page-meeting-meta .meta-label {
    color: var(--login-meta-label-color, #666666);
}

.login-page-meeting-meta .meta-value {
    color: var(--login-meta-value-color, #333333);
}

/* ========== 登录卡片：PC 右侧垂直居中（参考设计图） ========== */
.login-page-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 7% 0 0;
    box-sizing: border-box;
    min-height: 0;
}

.login-page-card {
    --login-icon-col-width: 42px;
    width: 400px;
    max-width: 100%;
    background: #fff;
    border-radius: 10px;
    box-shadow:
        0 0 0 1px rgba(37, 99, 235, 0.06),
        0 0 20px rgba(37, 99, 235, 0.14),
        0 0 40px rgba(59, 130, 246, 0.10),
        0 8px 32px rgba(37, 99, 235, 0.12);
    padding: 28px 30px 22px;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

/* 覆盖 frontend.css 中 .login-section / .user-section 的默认样式，不影响其他页面 */
.login-page-card.user-section.login-section {
    margin: 0;
    width: 400px;
    max-width: 100%;
    border-radius: 10px;
    background: #fff;
    padding: 28px 30px 22px;
}

.login-page-card.login-section .login-main {
    padding: 0;
}

.login-page-card-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #2563eb;
    margin: 0 0 14px;
}

.login-page-divider {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    color: #9ca3af;
    font-size: 12px;
}

.login-page-divider::before,
.login-page-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.login-page-divider span {
    padding: 0 10px;
    white-space: nowrap;
}

/* 三种登录方式：单行不换行 */
.login-page-tabs {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: stretch;
    gap: clamp(2px, 0.6vw, 8px);
    margin-bottom: 20px;
    width: 100%;
}

.login-page-tabs a {
    flex: 1 1 0;
    min-width: 0;
    display: block;
    padding: clamp(5px, 1vw, 7px) clamp(2px, 0.8vw, 8px);
    font-size: clamp(10px, 2.4vw, 13px);
    line-height: 1.3;
    color: #6b7280;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.login-page-tabs a:hover {
    color: #2563eb;
}

.login-page-tabs a.active {
    color: #2563eb;
    font-weight: 600;
    border-bottom-color: #2563eb;
}

.login-page-card .form-group {
    position: relative;
    margin-bottom: 18px;
}

.login-page-card .form-group > .msg-box {
    position: static;
    display: block;
    width: 100%;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
    line-height: 1.3;
}

.login-page-card .form-group.has-error > .msg-box {
    height: auto;
    margin-top: 6px;
}

.login-page-card .form-group > .msg-box.n-bottom .msg-wrap {
    position: static !important;
    top: auto !important;
    bottom: auto !important;
    margin-top: 0 !important;
}

.login-page-card .form-group > .msg-box .n-error {
    display: block;
    padding: 0;
    font-size: 12px;
    line-height: 1.3;
    color: #ef4444;
}

.login-page-card .form-group.has-error .input-wrap {
    border-radius: 6px;
    margin-bottom: 2px;
    animation: login-page-field-error-breathe 1.6s ease-in-out infinite;
}

.login-page-card .form-group.has-error .login-page-field-prefix {
    border-color: #ef4444;
    color: #ef4444;
}

.login-page-card .form-group.has-error .input-wrap > .form-control,
.login-page-card .form-group.has-error .input-wrap--captcha .input-group > .form-control {
    border-color: #ef4444;
}

.login-page-card .form-group.has-error .input-wrap--captcha .btn-captcha {
    border-color: #ef4444;
    box-shadow: inset 0 0 0 1px #ef4444;
}

@keyframes login-page-field-error-breathe {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.45);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
    }
}

.login-page-card .control-label {
    display: none;
}

.login-page-card .form-control {
    height: 46px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 15px;
    box-shadow: none;
}

.login-page-card .input-wrap {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.login-page-card .login-page-field-prefix {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--login-icon-col-width);
    min-width: var(--login-icon-col-width);
    flex-shrink: 0;
    color: #9ca3af;
    font-size: 16px;
    line-height: 1;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-right: none;
    border-radius: 6px 0 0 6px;
    box-sizing: border-box;
    height: 46px;
}

.login-page-card .login-page-field-prefix .fa {
    display: block;
    line-height: 1;
    text-align: center;
}

.login-page-card .login-page-field-prefix .fa-mobile {
    font-size: 22px;
}

.login-page-card .input-wrap > .form-control {
    flex: 1;
    min-width: 0;
    padding-left: 12px;
    border-left: none;
    border-radius: 0 6px 6px 0;
}

.login-page-card .input-wrap--captcha {
    position: relative;
}

.login-page-card .input-wrap--captcha .input-group {
    display: flex;
    width: 100%;
    align-items: stretch;
    position: relative;
}

.login-page-card .input-wrap--captcha .input-group > .form-control {
    flex: 1;
    min-width: 0;
    width: auto;
    padding-left: 12px;
    border-left: none;
    border-radius: 0;
    height: 46px;
}

.login-page-card .input-wrap--captcha .input-group-btn {
    display: flex;
    flex-shrink: 0;
    width: auto;
}

.login-page-card .input-group-btn .btn-captcha {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    line-height: 1;
    border-radius: 0 6px 6px 0;
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
    font-size: 13px;
    padding: 0 10px;
    white-space: nowrap;
    min-width: 88px;
    box-sizing: border-box;
}

.login-page-card .btn-login {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: opacity 0.2s;
}

.login-page-card .btn-login:hover {
    opacity: 0.92;
    color: #fff;
}

.login-page-footer {
    text-align: center;
    font-size: 11px;
    color: #9ca3af;
    margin: 16px 0 0;
    line-height: 1.5;
}

.login-page-wechat {
    text-align: center;
    padding: 4px 0 12px;
}

.login-page-wechat #wechat-qrcode {
    width: 180px;
    height: 180px;
    margin: 0 auto 10px;
}

.login-page-wechat #wechat-qrcode img {
    width: 100%;
    height: 100%;
}

.login-page-wechat-tip {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
    padding: 0 8px;
}

/* ========== 手机端 ========== */
@media screen and (max-width: 991px) {
    html,
    body {
        background: transparent !important;
    }

    .login-page {
        position: relative;
        min-height: 100vh;
        height: auto;
        overflow-x: hidden;
        overflow-y: auto;
        background: transparent;
    }

    .login-page-bg--pc {
        display: none;
    }

    .login-page-bg--mobile {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        min-height: 100%;
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center top;
        z-index: 0;
    }

    .login-page-overlay {
        position: relative;
        z-index: 1;
        min-height: 100vh;
        height: auto;
        display: block;
        background: transparent;
    }

    .login-page-banner-slot {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 2;
        margin: 0;
        background: transparent !important;
        box-shadow: none;
    }

    .login-page-banner-slot--fixed,
    .login-page-banner-slot--content {
        aspect-ratio: 1080 / 450;
        background: transparent !important;
    }

    .login-page-banner-slot--content {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .login-page-banner-slot--content .login-page-banner--meeting,
    .login-page-banner-slot--content .login-page-banner--text {
        padding: 0 16px;
        justify-content: center;
        align-items: center;
        text-align: center;
        background: transparent !important;
    }

    .login-page-banner--meeting,
    .login-page-banner--text,
    .login-page-banner--image {
        background: transparent !important;
    }

    .login-page-banner--text {
        overflow: hidden;
    }

    .login-page-meeting-title {
        font-size: var(--login-title-size-mobile, var(--login-title-size, 16px));
    }

    .login-page-meeting-meta {
        font-size: var(--login-meta-size-mobile, var(--login-meta-size, 11px));
    }

    .login-page-main {
        position: relative;
        z-index: 3;
        flex: none;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        padding: calc(100vw * 450 / 1080 + 6px) 18px 20px;
        min-height: 0;
        overflow: visible;
        background: transparent;
    }

    .login-page-card {
        width: 100%;
        max-width: 400px;
        padding: 22px 18px 18px;
    }

    .login-page-card.user-section.login-section {
        padding: 22px 18px 18px;
    }
}

@media (min-width: 992px) {
    .login-page-overlay {
        position: relative;
    }

    .login-page-main {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        flex: none;
        align-items: center;
        justify-content: flex-end;
        padding: 0 7% 0 0;
        pointer-events: none;
        z-index: 3;
    }

    .login-page-main .login-page-card {
        pointer-events: auto;
        transform: translate(-50px, 30px);
    }

    .login-page-card.user-section.login-section {
        width: 400px;
    }
}

@media (min-width: 1600px) {
    .login-page-card {
        width: 420px;
    }

    .login-page-card.user-section.login-section {
        width: 420px;
    }

    .login-page-main {
        padding-right: 8%;
    }
}

/* ========== 微信绑定手机号弹窗 ========== */
.layui-layer.login-page-bind-layer {
    border-radius: 10px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(37, 99, 235, 0.06),
        0 8px 32px rgba(37, 99, 235, 0.15);
}

.layui-layer.login-page-bind-layer .layui-layer-title {
    height: 48px;
    line-height: 48px;
    font-size: 16px;
    font-weight: 600;
    color: #2563eb;
    background: #fff;
    border-bottom: 1px solid #f3f4f6;
    text-align: center;
    padding: 0;
}

.layui-layer.login-page-bind-layer .layui-layer-content {
    padding: 0;
    overflow: visible;
    height: auto !important;
}

.layui-layer.login-page-bind-layer .login-page-bind-mobile.login-page-card {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 20px 24px 24px;
    border-radius: 0;
    box-shadow: none;
}

.layui-layer.login-page-bind-layer .login-page-bind-mobile .form-group:last-child {
    margin-bottom: 0;
}

/* 弹窗内不受 frontend.css .login-section 旧样式干扰 */
.layui-layer.login-page-bind-layer .login-page-bind-mobile .n-bootstrap .n-right,
.layui-layer.login-page-bind-layer .login-page-bind-mobile .n-bootstrap .n-bottom {
    position: static;
    top: auto;
    left: auto;
    width: auto;
    text-align: left;
}
