* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #6c5ce7;
    font-family: 'Microsoft Yahei', sans-serif;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    display: flex;
    width: 1000px;
    max-width: 100%;
    height: 700px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.auth-left {
    flex: 1;
    background: #6c5ce7;
    color: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><path fill="rgba(255,255,255,0.05)" d="M45,-45C65.3,-29.7,92.3,-14.8,95.5,2.9C98.7,20.6,78,41.3,57.7,56.5C37.3,71.7,17.3,81.4,0.5,80.9C-16.3,80.4,-32.7,69.7,-47.1,54.5C-61.5,39.3,-74,19.7,-74.9,-0.7C-75.8,-21.1,-65.2,-42.2,-50.8,-57.5C-36.4,-72.8,-18.2,-82.4,-1.3,-80.8C15.6,-79.3,31.3,-66.7,45,-45Z"></path></svg>');
    background-size: contain;
    animation: rotate 30s linear infinite;
    z-index: 0;
}

.auth-logo {
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.auth-logo img {
    height: 60px;
}

.auth-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.auth-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.auth-features {
    list-style: none;
    position: relative;
    z-index: 1;
}

.auth-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-features i {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

.auth-right {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.auth-tab {
    padding: 10px 20px;
    font-size: 1.1rem;
    color: #666;
    cursor: pointer;
    position: relative;
}

.auth-tab.active {
    color: #6c5ce7;
    font-weight: 600;
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #6c5ce7;
    border-radius: 3px;
}

.auth-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
    outline: none;
}

.captcha-group {
    display: flex;
    gap: 10px;
}

.captcha-input {
    flex: 1;
}

.captcha-image {
    width: 120px;
    height: 45px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.captcha-image img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.btn-submit {
    width: 100%;
    background: #6c5ce7;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-submit:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 14px;
}

.auth-footer a {
    color: #6c5ce7;
    text-decoration: none;
    font-weight: 500;
}

.error-message {
    color: #ff4757;
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    padding: 10px;
    background: rgba(255, 71, 87, 0.1);
    border-radius: 6px;
}

.social-login {
    margin-top: 20px;
    text-align: center;
}

.social-login p {
    color: #666;
    margin-bottom: 15px;
    position: relative;
}

.social-login p::before,
.social-login p::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: #eee;
}

.social-login p::before {
    left: 0;
}

.social-login p::after {
    right: 0;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-social {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-wechat {
    background: #07C160;
}

.btn-wechat:hover {
    background: #06ae56;
    transform: translateY(-3px);
}

.btn-qq {
    background: #12B7F5;
}

.btn-qq:hover {
    background: #0fa7e0;
    transform: translateY(-3px);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
        height: auto;
    }

    .auth-left {
        padding: 30px 20px;
    }

    .auth-title {
        font-size: 2rem;
    }

    .auth-right {
        padding: 30px 20px;
    }
}

/* 扫码登录弹框样式 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    width: 380px;
    max-width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #000;
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 10px 10px;
    text-align: center;
}

.qrcode-container {
    width: 350px;
    height: 350px;
    margin: 0 auto 0px;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
}

.qrcode-placeholder {
    color: #999;
    font-size: 14px;
}

.modal-footer {
    padding: 0 20px 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}