* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #f4f4f4;
    height: 100%;
    width: 100%;
}

.login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: #f4f4f4;
}

.login-wrapper {
    width: 100%;
    max-width: 1200px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    display: flex;
    overflow: hidden;
    margin-bottom: 30px;
    min-height: 600px;
}

/* 左侧产品介绍 */
.product-showcase {
    flex: 1;
    background: linear-gradient(135deg, #1E9FFF 0%, #0077cc 100%);
    padding: 60px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.product-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.showcase-content {
    position: relative;
    z-index: 2;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.brand-logo h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-intro {
    margin-bottom: 60px;
}

.product-intro h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 15px;
}

.product-intro p {
    font-size: 18px;
    opacity: 0.9;
    line-height: 1.6;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-content p {
    font-size: 14px;
    opacity: 0.8;
    margin: 0;
    line-height: 1.5;
}

/* 右侧登录区域 */
.login-area {
    flex: 0 0 550px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
}

.login-area .login-box {
    width: 100%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 40px 30px;
    margin: 0;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: #333;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.login-header p {
    color: #666;
    font-size: 14px;
}

/* Tab切换 */
.login-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.tab-item {
    flex: 1;
    text-align: center;
    padding: 15px 0;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-item.active {
    color: #1E9FFF;
    border-bottom-color: #1E9FFF;
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 登录方式切换 */
.login-methods {
    margin-bottom: 25px;
}

.method-tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 25px;
}

.method-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.method-tab.active {
    background: #1E9FFF;
    color: white;
}

.method-content {
    display: none;
}

.method-content.active {
    display: block;
}

/* 表单项 */
.form-item {
    margin-bottom: 20px;
}

.form-input {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-input:focus {
    outline: none;
    border-color: #1E9FFF;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(30, 159, 255, 0.1);
}

.code-item {
    display: flex;
    gap: 10px;
}

.code-item .form-input {
    flex: 1;
}

.code-btn {
    height: 44px;
    padding: 0 16px;
    border: 1px solid #1E9FFF;
    background: #fff;
    color: #1E9FFF;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.code-btn:hover {
    background: #1E9FFF;
    color: #fff;
}

/* 表单选项 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #1E9FFF;
}

.forget-password {
    color: #1E9FFF;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.forget-password:hover {
    opacity: 0.8;
}

/* 提交按钮 */
.submit-btn {
    width: 100%;
    height: 44px;
    border: none;
    border-radius: 8px;
    background: #1E9FFF;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #0077cc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 159, 255, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* 第三方登录 */
.third-party-login {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #f0f0f0;
}

.divider {
    text-align: center;
    position: relative;
    margin-bottom: 20px;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #f0f0f0;
}

.divider span {
    background: #fff;
    padding: 0 15px;
    position: relative;
    color: #999;
    font-size: 14px;
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: all 0.3s ease;
}

.social-btn:hover {
    border-color: #1E9FFF;
    color: #1E9FFF;
    transform: translateY(-1px);
}

.social-btn.wechat:hover {
    background: #07c160;
    border-color: #07c160;
    color: #fff;
}

.social-btn.alipay:hover {
    background: #1677ff;
    border-color: #1677ff;
    color: #fff;
}

/* 协议 */
.form-agreement {
    margin-bottom: 25px;
}

.agreement-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    line-height: 1.5;
}

.agree-checkbox {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: #1E9FFF;
}

.agreement-label a {
    color: #1E9FFF;
    text-decoration: none;
}

.agreement-label a:hover {
    text-decoration: underline;
}

/* 底部版权 */
.footer {
    text-align: center;
    color: #999;
    font-size: 14px;
    padding: 20px;
}

.footer a {
    color: #1E9FFF;
    text-decoration: none;
    font-weight: 500;
}

.footer a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .login-wrapper {
        max-width: 900px;
        flex-direction: column;
    }

    .product-showcase {
        flex: none;
        padding: 40px;
    }

    .login-area {
        flex: none;
        padding: 40px;
    }

    .brand-logo {
        justify-content: center;
    }

    .product-intro {
        text-align: center;
    }

    .feature-list {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .login-container {
        padding: 15px;
    }

    .login-wrapper {
        border-radius: 12px;
    }

    .product-showcase {
        padding: 30px 20px;
    }

    .login-area {
        padding: 30px 20px;
    }

    .login-area .login-box {
        padding: 30px 20px;
    }

    .login-header h1 {
        font-size: 22px;
    }

    .brand-logo h1 {
        font-size: 28px;
    }

    .product-intro h2 {
        font-size: 28px;
    }

    .feature-item {
        padding: 15px;
        gap: 15px;
    }

    .method-tabs {
        flex-direction: column;
        gap: 4px;
    }

    .code-item {
        flex-direction: column;
        gap: 10px;
    }

    .code-btn {
        width: 100%;
    }

    .social-login {
        flex-direction: column;
        gap: 10px;
    }

    .form-options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 10px;
    }

    .product-showcase {
        padding: 20px 15px;
    }

    .login-area {
        padding: 20px 15px;
    }

    .login-area .login-box {
        padding: 25px 15px;
    }

    .login-tabs {
        margin-bottom: 25px;
    }

    .tab-item {
        font-size: 15px;
    }

    .brand-logo {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .feature-icon {
        font-size: 24px;
    }

    .feature-content h4 {
        font-size: 16px;
    }
}

.layui-layer-setwin .layui-layer-close2 {
    width: 30px !important;
    height: 30px !important;
}