﻿/* 隐藏默认布局 */
.vertical-menu,
.page-side,
#sidebar-menu,
.sidebar-sticky,
.nav-down-menu,
.menus-lis,
.left-side-menu,
.side-menu,
.sidebar,
.leftside-menu,
aside,
nav.sidebar,
.app-sidebar,
.navbar,
.page-header,
.topbar,
.header,
.main-header,
.top-menu,
.navbar-custom,
header {
    display: none !important;
}

/* 基础重置 */
html, body {
    overflow: hidden !important;
    height: 100vh !important;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    background-color: #f5f7fa;
}

body.login {
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    height: 100vh !important;
}

#main-wrapper,
.body_wrapper,
.mf_body,
.mf_signup_fullwidth,
.mf_signup_fullwidth_two {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.login .page-wrapper,
.login .main-wrapper,
.login #main-wrapper {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* 背景容器 */
.login-page-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 4vw;
    background-repeat: no-repeat;
    background-position: left center;
    background-size: cover;
    position: fixed;
    inset: 0;
    z-index: 1;
}

/* 页面左上角品牌区 */
.sz-page-brand {
    position: absolute;
    top: 14px;
    left: 38px;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 760px;
    z-index: 3;
    pointer-events: none;
}

.sz-page-brand-logo {
    height: 46px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.sz-page-brand-divider {
    color: rgba(78, 89, 105, 0.28);
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

.sz-page-brand-text {
    color: #4e5969;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 500;
    letter-spacing: 0.1px;
    text-shadow: 0 1px 0 rgba(255,255,255,0.35);
}

/* 登录卡片 */
.sz-login-card {
    display: flex;
    width: 704px;
    min-height: 429px;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    z-index: 2;
    animation: fadeInRight 0.35s ease-out;
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(12px); }
    to { opacity: 1; transform: translateX(0); }
}

/* 左侧 */
.sz-left {
    flex: 1;
    padding: 28px 36px 25px;
    display: flex;
    flex-direction: column;
}

/* 统一提示挂载区 */
#szAlertMount:empty {
    display: none;
}

#szAlertMount {
    width: 100%;
}

/* 提示 */
.sz-alert {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-bottom: 12px;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.55;
    font-weight: 500;
    opacity: 0;
    transform: translateY(-8px);
    animation: szAlertIn .35s ease forwards;
    overflow: hidden;
    box-sizing: border-box;
    word-break: break-word;
}

.sz-alert::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    box-sizing: border-box;
}

.sz-alert::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background: currentColor;
    opacity: 0.16;
    transform-origin: left center;
    animation: szAlertBar linear forwards;
    animation-duration: var(--alert-duration, 2600ms);
}

.sz-alert-error {
    background: #fff7f7;
    color: #b42318;
    border: 1px solid #fde2e2;
}

.sz-alert-error::before {
    content: "!";
    color: #b42318;
    border: 1px solid rgba(180, 35, 24, 0.28);
}

.sz-alert-success {
    background: #f4fbf6;
    color: #15803d;
    border: 1px solid #d9f0df;
}

.sz-alert-success::before {
    content: "\2713";
    color: #15803d;
    border: 1px solid rgba(21, 128, 61, 0.28);
}

.sz-alert.is-hiding {
    animation: szAlertOut .38s ease forwards;
}

.sz-alert.is-hiding::after {
    animation: none;
    opacity: 0;
}

@keyframes szAlertIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes szAlertOut {
    from {
        opacity: 1;
        transform: translateY(0);
        max-height: 120px;
        margin-bottom: 12px;
        padding-top: 9px;
        padding-bottom: 9px;
    }
    to {
        opacity: 0;
        transform: translateY(-6px);
        max-height: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
        border-width: 0;
    }
}

@keyframes szAlertBar {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

/* 顶部 */
.sz-tabs-header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f1f2f5;
    margin-bottom: 20px;
    padding-bottom: 9px;
}

.sz-tabs {
    display: flex;
    align-items: center;
    position: relative;
}

.sz-tab {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
    z-index: 2;
}

.sz-tab:hover {
    color: #165dff;
}

.sz-tab:focus,
.sz-tab:active {
    outline: none !important;
    box-shadow: none !important;
}

.sz-tab.active {
    color: #165dff;
}

.sz-tab.active::after {
    display: none;
}

.sz-tab-indicator {
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 0;
    height: 3px;
    border-radius: 999px;
    background: #165dff;
    opacity: 0;
    pointer-events: none;
    transition:
        left 0.28s cubic-bezier(0.4, 0, 0.2, 1),
        width 0.28s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.2s ease;
}

.sz-tab-divider {
    width: 1px;
    height: 14px;
    background: #dcdfe6;
    margin: 0 15px;
}

.sz-register-link {
    margin-left: auto;
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}

.sz-register-link a {
    color: #165dff;
    text-decoration: none;
}

/* 内容 */
.tab-content {
    min-height: 268px;
    display: flex;
    flex-direction: column;
}

.tab-pane {
    width: 100%;
}

/* 表单 */
.sz-form-group {
    margin-bottom: 15px;
}

.sz-label {
    display: block;
    margin-bottom: 7px;
    font-size: 15px;
    font-weight: 600;
    color: #4e5969;
}

/* 输入框 */
.sz-input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border-radius: 4px;
    border: 1px solid transparent;
    background: #f0f4fb;
    font-size: 16px;
    font-weight: 500;
    color: #1d2129;
    box-sizing: border-box;
    outline: none;
    transition: all 0.25s ease;
}

.sz-input::placeholder {
    color: #a0a7b4;
    font-weight: 400;
    font-size: 15px;
}

.sz-input:focus {
    background: #fff;
    border-color: #165dff;
    box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.06);
}

/* 组合输入框 */
.sz-input-group {
    display: flex;
    align-items: center;
    min-height: 48px;
    background: #f0f4fb;
    border-radius: 4px;
    border: 1px solid transparent;
    overflow: hidden;
    transition: all 0.25s ease;
}

.sz-input-group:focus-within {
    background: #fff;
    border-color: #165dff;
    box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.06);
}

.sz-input-group .sz-input {
    height: 46px;
    background: transparent;
    border: none;
    box-shadow: none;
}

.sz-input-group-prepend {
    width: 112px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.sz-input-group-prepend select {
    width: 100%;
    height: 48px;
    border: none;
    background: transparent;
    padding: 0 9px 0 13px;
    font-size: 15px;
    font-weight: 500;
    color: #1d2129;
    outline: none;
}

.sz-input-divider {
    width: 1px;
    height: 20px;
    background: #dcdfe6;
    flex-shrink: 0;
}

.sz-btn-code {
    background: transparent;
    border: none;
    color: #165dff;
    font-size: 14px;
    cursor: pointer;
    padding: 0 13px;
    white-space: nowrap;
    font-weight: 600;
}

.sz-btn-code:hover,
.sz-btn-code:focus,
.sz-btn-code:active {
    background: transparent;
    color: #0e4dd8;
    outline: none;
    box-shadow: none;
}

.sz-btn-code:disabled,
.sz-btn-code[disabled],
.sz-btn-code:disabled:hover,
.sz-btn-code[disabled]:hover {
    background: transparent;
    color: #86909c;
    cursor: not-allowed;
    opacity: 1;
}

/* 验证区 */
.sz-verify-wrapper {
    position: relative;
    border: 1px solid #e5e6eb;
    background: #fcfcfc;
    border-radius: 4px;
    padding: 7px 9px 7px 11px;
    box-sizing: border-box;
}

.sz-verify-wrapper::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #165dff;
    border-radius: 4px 0 0 4px;
}

/* 链接 */
.sz-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2px;
    margin-bottom: 16px;
    gap: 13px;
}

.sz-links span,
.sz-links a {
    font-size: 14px;
    color: #165dff;
    text-decoration: none;
    cursor: pointer;
}

.sz-links span:hover,
.sz-links a:hover {
    color: #0e4dd8;
}

/* 按钮 */
.sz-submit-btn {
    width: 100%;
    height: 48px;
    border-radius: 4px;
    background: #165dff;
    border: none;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s ease;
    margin-top: 0;
}

.sz-submit-btn:hover {
    background: #0e4dd8;
}

/* 右侧 */
.sz-right {
    width: 250px;
    border-left: 1px solid #efefef;
    padding: 26px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
}

/* 顶部气泡 */
.sz-qr-bubble {
    width: 100%;
    max-width: 186px;
    min-height: 34px;
    margin: 0 auto 16px;
    padding: 7px 10px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #e5e6eb;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    font-size: 12px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2px;
    text-align: center;
    position: relative;
}

.sz-qr-bubble i {
    margin-right: 2px;
    font-style: normal;
    font-size: 12px;
    line-height: 1;
}

.sz-qr-bubble span {
    color: #00b42a;
    white-space: nowrap;
}

.sz-qr-bubble-gray {
    color: #86909c !important;
}

.sz-qr-bubble::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 8px;
    height: 8px;
    background: #fff;
    border-right: 1px solid #e5e6eb;
    border-bottom: 1px solid #e5e6eb;
    transform: translateX(-50%) rotate(45deg);
}

/* 二维码框 */
.sz-qr-area {
    position: relative;
    width: 142px;
    height: 142px;
    margin: 10px auto 14px;
    background: #fff;
    box-sizing: border-box;
}

.sz-qr-area::before,
.sz-qr-area::after,
.sz-qr-inner::before,
.sz-qr-inner::after {
    content: '';
    position: absolute;
    width: 11px;
    height: 11px;
    border: 2px solid #bcdcff;
    border-radius: 2px;
    z-index: 3;
}

.sz-qr-area::before { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.sz-qr-area::after { top: -2px; right: -2px; border-left: none; border-bottom: none; }
.sz-qr-inner::before { bottom: -2px; left: -2px; border-right: none; border-top: none; }
.sz-qr-inner::after { bottom: -2px; right: -2px; border-left: none; border-top: none; }

/* 占位块 */
.sz-qr-placeholder {
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 1px dashed #c9d7f2;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 8px;
    box-sizing: border-box;
    z-index: 1;
}

.sz-qr-placeholder-title {
    font-size: 13px;
    font-weight: 700;
    color: #2f3a4f;
    line-height: 1.4;
    margin-bottom: 6px;
}

.sz-qr-placeholder-desc {
    font-size: 11px;
    line-height: 1.5;
    color: #8b96a8;
}

/* 真实二维码图片 */
.sz-qr-real-img {
    position: absolute;
    top: 6px;
    left: 6px;
    width: calc(100% - 12px);
    height: calc(100% - 12px);
    object-fit: cover;
    display: block;
    background: #fff;
    border-radius: 2px;
    z-index: 1;
}

/* 二维码说明 */
.sz-qr-text {
    display: block;
    width: 100%;
    max-width: 190px;
    margin: 0 auto 18px;
    font-size: 13px;
    line-height: 1.5;
    color: #165dff;
    text-decoration: none;
    text-align: center;
}

/* 激励语 */
.sz-motto-wrap {
    width: 100%;
    max-width: 190px;
    margin: 0 auto;
    text-align: center;
}

.sz-motto-label {
    font-size: 12px;
    color: #b1b7c3;
    letter-spacing: 1px;
    margin-bottom: 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sz-motto-label::before,
.sz-motto-label::after {
    content: '';
    flex: 1;
    border-top: 1px solid #edf1f5;
    margin: 0 10px;
}

.sz-motto {
    min-height: 40px;
    padding: 10px 14px;
    border-radius: 10px;
    background: linear-gradient(180deg, #f7faff 0%, #f2f7ff 100%);
    border: 1px solid #e6efff;
    color: #3b4a66;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.sz-motto.is-show {
    animation: szMottoFadeIn .45s ease;
}

@keyframes szMottoFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式 */
@media (max-width: 1200px) {
    .login-page-container {
        padding-right: 7vw;
    }

    .sz-page-brand {
        top: 18px;
        left: 20px;
        max-width: 560px;
    }

    .sz-page-brand-logo {
        height: 30px;
        max-width: 108px;
    }

    .sz-page-brand-text {
        font-size: 14px;
    }
}

@media (max-width: 900px) {
    .login-page-container {
        justify-content: center;
        padding-right: 0;
        padding-left: 0;
    }

    .sz-login-card {
        width: 470px;
        min-height: auto;
    }

    .sz-right {
        display: none;
    }

    .sz-left {
        padding: 25px 23px;
    }

    .sz-page-brand {
        top: 16px;
        left: 16px;
        right: 16px;
        max-width: none;
    }

    .sz-page-brand-logo {
        height: 26px;
        max-width: 96px;
    }

    .sz-page-brand-divider {
        font-size: 16px;
    }

    .sz-page-brand-text {
        font-size: 13px;
        line-height: 1.5;
    }
}

@media (max-width: 640px) {
    .sz-page-brand {
        display: none;
    }
}

@media (max-width: 480px) {
    .login-page-container {
        padding: 0 12px;
    }

    .sz-login-card {
        width: 100%;
    }

    .sz-left {
        padding: 20px 16px;
    }

    .sz-tabs-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .sz-register-link {
        width: 100%;
        margin-left: 0;
    }

    .sz-tab {
        font-size: 17px;
    }

    .sz-label {
        font-size: 14px;
    }

    .sz-input,
    .sz-input-group,
    .sz-input-group-prepend select,
    .sz-submit-btn {
        height: 46px;
    }

    .sz-input-group .sz-input {
        height: 44px;
    }
}
