/* 登录注册弹窗样式 */
.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.login-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.login-modal-content {
    position: relative;
    display: flex;
    width: 900px;
    max-width: 90%;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* 左侧品牌区 */
.login-modal-left {
    flex: 1;
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
    padding: 50px 40px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-modal-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.brand-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.login-modal-brand h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

.login-modal-slogan {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.6;
}

.login-modal-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

.feature-icon {
    font-size: 24px;
}

/* 装饰圆形 */
.login-modal-decoration {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: modalPulse 3s ease-in-out infinite;
}

.circle-1 {
    width: 120px;
    height: 120px;
    top: 20px;
    right: 20px;
    animation-delay: 0s;
}

.circle-2 {
    width: 80px;
    height: 80px;
    bottom: 20px;
    left: 20px;
    animation-delay: 0.5s;
}

.circle-3 {
    width: 60px;
    height: 60px;
    top: 50%;
    left: 50%;
    animation-delay: 1s;
}

@keyframes modalPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.15); }
}

/* 右侧表单区 */
.login-modal-right {
    flex: 1;
    padding: 50px 40px;
    background: #fff;
    position: relative;
}

.login-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: #F3F4F6;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-modal-close:hover {
    background: #E5E7EB;
    color: #1F2937;
}

/* 标签页 */
.login-modal-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    border-bottom: 2px solid #E5E7EB;
}

.modal-tab {
    padding: 12px 25px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #6B7280;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.modal-tab.active {
    color: #8B5CF6;
}

.modal-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
}

.modal-tab:hover:not(.active) {
    color: #1F2937;
}

/* 表单样式 */
.modal-form {
    display: none;
}

.modal-form.active {
    display: block;
}

.modal-form-group {
    margin-bottom: 20px;
}

.modal-form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s;
    outline: none;
}

.modal-form-group input:focus {
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.modal-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.modal-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6B7280;
    cursor: pointer;
}

.modal-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.modal-forgot {
    color: #8B5CF6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.modal-forgot:hover {
    color: #6D28D9;
}

.modal-submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

.modal-error {
    margin-top: 15px;
    padding: 12px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 8px;
    color: #DC2626;
    font-size: 14px;
    display: none;
}

.modal-error.show {
    display: block;
}

/* 响应式 */
@media (max-width: 768px) {
    .login-modal-content {
        flex-direction: column;
        max-width: 95%;
    }
    
    .login-modal-left {
        padding: 30px 20px;
    }
    
    .login-modal-right {
        padding: 30px 20px;
    }
    
    .brand-icon {
        font-size: 36px;
    }
    
    .login-modal-brand h2 {
        font-size: 24px;
    }
}
